header_html_file.go 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. package template
  2. var VarHeaderHtmlFile = []byte(`<!doctype html>
  3. <html lang="en">
  4. <head>
  5. <!-- Required meta tags -->
  6. <meta charset="utf-8">
  7. <meta name="theme-color" content="#205081" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  9. <!-- Bootstrap CSS -->
  10. <link rel="stylesheet" href="{{$.System.PathCssBootstrap}}">
  11. <link rel="stylesheet" href="{{$.System.PathCssLightGallery}}">
  12. <title>{{$.Data.CachedBlock1}}</title>
  13. <meta name="keywords" content="{{$.Data.Page.MetaKeywords}}" />
  14. <meta name="description" content="{{$.Data.Page.MetaDescription}}" />
  15. <link rel="shortcut icon" href="{{$.System.PathIcoFav}}" type="image/x-icon" />
  16. <!-- Template CSS file from template folder -->
  17. <link rel="stylesheet" href="{{$.System.PathThemeStyles}}">
  18. </head>
  19. <body id="body" class="fixed-top-bar">
  20. <div id="sys-modal-shop-basket-placeholder"></div>
  21. <div id="wrap">
  22. <nav id="navbar-top" class="navbar navbar-expand-lg navbar-light bg-light">
  23. <div class="container">
  24. <a class="navbar-brand" href="/">Fave {{$.System.InfoVersion}}</a>
  25. <button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
  26. <span id="basket-mobile-btn" class="badge badge-pill badge-primary">{{$.Data.ShopBasketProductsCount}}</span>
  27. <span class="navbar-toggler-icon"></span>
  28. </button>
  29. <div class="collapse navbar-collapse" id="navbarResponsive">
  30. <ul class="navbar-nav ml-auto">
  31. <li class="nav-item{{if eq $.Data.Page.Alias "/"}} active{{end}}">
  32. <a class="nav-link" href="/">Home</a>
  33. </li>
  34. <li class="nav-item">
  35. <a class="nav-link{{if eq $.Data.Page.Alias "/another/"}} active{{end}}" href="/another/">Another</a>
  36. </li>
  37. <li class="nav-item">
  38. <a class="nav-link{{if eq $.Data.Page.Alias "/about/"}} active{{end}}" href="/about/">About</a>
  39. </li>
  40. <li class="nav-item">
  41. <a class="nav-link{{if or (eq $.Data.Module "blog") (eq $.Data.Module "blog-post") (eq $.Data.Module "blog-category")}} active{{end}}" href="/blog/">Blog</a>
  42. </li>
  43. <li class="nav-item">
  44. <a class="nav-link{{if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-product") (eq $.Data.Module "shop-category")}} active{{end}}" href="/shop/">Shop</a>
  45. </li>
  46. <li class="nav-item">
  47. <a class="nav-link{{if eq $.Data.Module "404"}} active{{end}}" href="/not-existent-page/">404</a>
  48. </li>
  49. <li class="nav-item">
  50. <a id="basket-nav-btn" class="nav-link" href="" onclick="window&&window.frontend&&frontend.ShopBasketBtnCollapse()&&frontend.ShopBasketOpen(this);return false;">Basket <span class="badge badge-pill badge-primary">{{$.Data.ShopBasketProductsCount}}</span></a>
  51. </li>
  52. <li class="currency-changer">
  53. <select class="form-control" onchange="document.location='/shop/basket/currency/'+this.value+'/';">
  54. {{range $.Data.Shop.Currencies}}
  55. <option value="{{.Id}}"{{if eq .Id $.Data.Shop.CurrentCurrency.Id}} selected{{end}}>{{.Code}}</option>
  56. {{end}}
  57. </select>
  58. </li>
  59. </ul>
  60. </div>
  61. </div>
  62. </nav>
  63. <div id="main">
  64. <div class="bg-fave">
  65. <div class="container">
  66. <h1 class="text-left text-white m-0 p-0 py-5">{{$.Data.CachedBlock2}}</h1>
  67. </div>
  68. </div>
  69. {{$.Data.CachedBlock3}}
  70. <div class="container clear-top">
  71. <div class="row pt-4">
  72. {{if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-category")}}
  73. <div class="col-sm-5 col-md-4 col-lg-3">
  74. {{template "sidebar-left.html" .}}
  75. </div>
  76. {{end}}
  77. {{if or (eq $.Data.Module "shop-product")}}
  78. <div class="col-md-12">
  79. {{else}}
  80. <div class="col-sm-7 col-md-8 col-lg-9">
  81. {{end}}`)