header.html 6.3 KB

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