header_html_file.go 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. {{if $.Data.ModuleShopEnabled}}
  19. <!-- Shop basket texts -->
  20. <script type="text/javascript">
  21. var ShopBasketName = 'Basket';
  22. var ShopBasketTableProduct = 'Product';
  23. var ShopBasketTablePrice = 'Price';
  24. var ShopBasketTableQuantity = 'Quantity';
  25. var ShopBasketTableSum = 'Sum';
  26. var ShopBasketTotal = 'Total sum:';
  27. var ShopBasketBtnContinue = 'Continue Shopping';
  28. var ShopBasketBtnOrder = 'Make order';
  29. var ShopBasketEmpty = 'Your basket currently empty...';
  30. var ShopOrderLabelLastName = 'Last Name';
  31. var ShopOrderLabelFirstName = 'First Name';
  32. var ShopOrderLabelMiddleName = 'Middle Name';
  33. var ShopOrderLabelMobilePhone = 'Mobile Phone';
  34. var ShopOrderLabelEmailAddress = 'Email Address';
  35. var ShopOrderLabelDelivery = 'Delivery';
  36. var ShopOrderLabelComment = 'Comment';
  37. var ShopOrderRequiredLastName = {{$.Data.ShopOrderRequiredLastName}};
  38. var ShopOrderRequiredFirstName = {{$.Data.ShopOrderRequiredFirstName}};
  39. var ShopOrderRequiredMiddleName = {{$.Data.ShopOrderRequiredMiddleName}};
  40. var ShopOrderRequiredMobilePhone = {{$.Data.ShopOrderRequiredMobilePhone}};
  41. var ShopOrderRequiredEmailAddress = {{$.Data.ShopOrderRequiredEmailAddress}};
  42. var ShopOrderRequiredDelivery = {{$.Data.ShopOrderRequiredDelivery}};
  43. var ShopOrderRequiredComment = {{$.Data.ShopOrderRequiredComment}};
  44. var ShopOrderError = 'Error!';
  45. var ShopOrderErrorDisabled = 'Sorry, we are currently not accept new orders, please try little later';
  46. var ShopOrderErrorBasketEmpty = 'Your basket is empty';
  47. var ShopOrderErrorSomethingWrong = 'We cannot process your order, something is wrong...';
  48. var ShopOrderEmptyLastName = 'Please enter your last name';
  49. var ShopOrderEmptyFirstName = 'Please enter your first name';
  50. var ShopOrderEmptyMiddleName = 'Please enter your middle name';
  51. var ShopOrderEmptyMobilePhone = 'Please enter your mobile phone';
  52. var ShopOrderEmptyEmailAddress = 'Please enter your email address';
  53. var ShopOrderEmptyDelivery = 'Please enter delivery comment';
  54. var ShopOrderEmptyComment = 'Please enter order comment';
  55. var ShopOrderNotCorrectMobilePhone = 'For example: +15417543010';
  56. var ShopOrderNotCorrectEmailAddress = 'For example: example@gmail.com';
  57. var ShopOrderSuccess = '<b>Thank you for your order! We will call you shortly</b>';
  58. </script>
  59. {{end}}
  60. </head>
  61. <body id="body" class="fixed-top-bar">
  62. <div id="sys-modal-shop-basket-placeholder"></div>
  63. <div id="wrap">
  64. <nav id="navbar-top" class="navbar navbar-expand-lg navbar-light bg-light">
  65. <div class="container">
  66. <a class="navbar-brand" href="/">Fave {{$.System.InfoVersion}}</a>
  67. <button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
  68. {{if $.Data.ModuleShopEnabled}}
  69. <span id="basket-mobile-btn" class="badge badge-pill badge-primary">{{$.Data.ShopBasketProductsCount}}</span>
  70. {{end}}
  71. <span class="navbar-toggler-icon"></span>
  72. </button>
  73. <div class="collapse navbar-collapse" id="navbarResponsive">
  74. <ul class="navbar-nav ml-auto">
  75. <li class="nav-item{{if eq $.Data.Page.Alias "/"}} active{{end}}">
  76. <a class="nav-link" href="/">Home</a>
  77. </li>
  78. <li class="nav-item">
  79. <a class="nav-link{{if eq $.Data.Page.Alias "/another/"}} active{{end}}" href="/another/">Another</a>
  80. </li>
  81. <li class="nav-item">
  82. <a class="nav-link{{if eq $.Data.Page.Alias "/about/"}} active{{end}}" href="/about/">About</a>
  83. </li>
  84. {{if $.Data.ModuleBlogEnabled}}
  85. <li class="nav-item">
  86. <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>
  87. </li>
  88. {{end}}
  89. {{if $.Data.ModuleShopEnabled}}
  90. <li class="nav-item">
  91. <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>
  92. </li>
  93. {{end}}
  94. <li class="nav-item">
  95. <a class="nav-link{{if eq $.Data.Module "404"}} active{{end}}" href="/not-existent-page/">404</a>
  96. </li>
  97. {{if $.Data.ModuleShopEnabled}}
  98. <li class="nav-item">
  99. <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>
  100. </li>
  101. <li class="currency-changer">
  102. <select class="form-control" onchange="document.location='/shop/basket/currency/'+this.value+'/';">
  103. {{range $.Data.Shop.Currencies}}
  104. <option value="{{.Id}}"{{if eq .Id $.Data.Shop.CurrentCurrency.Id}} selected{{end}}>{{.Code}}</option>
  105. {{end}}
  106. </select>
  107. </li>
  108. {{end}}
  109. </ul>
  110. </div>
  111. </div>
  112. </nav>
  113. <div id="main">
  114. <div class="bg-fave">
  115. <div class="container">
  116. <h1 class="text-left text-white m-0 p-0 py-5">{{$.Data.CachedBlock2}}</h1>
  117. </div>
  118. </div>
  119. {{$.Data.CachedBlock3}}
  120. <div class="container clear-top">
  121. <div class="row pt-4">
  122. {{if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-category")}}
  123. <div class="col-sm-5 col-md-4 col-lg-3">
  124. {{template "sidebar-left.html" .}}
  125. </div>
  126. {{end}}
  127. {{if or (eq $.Data.Module "shop-product")}}
  128. <div class="col-md-12">
  129. {{else}}
  130. <div class="col-sm-7 col-md-8 col-lg-9">
  131. {{end}}`)