123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- package template
- var VarHeaderHtmlFile = []byte(`<!doctype html>
- <html lang="en">
- <head>
- <!-- Required meta tags -->
- <meta charset="utf-8">
- <meta name="theme-color" content="#205081" />
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <!-- Bootstrap CSS -->
- <link rel="stylesheet" href="{{$.System.PathCssBootstrap}}">
- <link rel="stylesheet" href="{{$.System.PathCssLightGallery}}">
- <title>{{$.Data.CachedBlock1}}</title>
- <meta name="keywords" content="{{$.Data.Page.MetaKeywords}}" />
- <meta name="description" content="{{$.Data.Page.MetaDescription}}" />
- <link rel="shortcut icon" href="{{$.System.PathIcoFav}}" type="image/x-icon" />
- <!-- Template CSS file from template folder -->
- <link rel="stylesheet" href="{{$.System.PathThemeStyles}}">
- {{if $.Data.ModuleShopEnabled}}
- <!-- Shop basket texts -->
- <script type="text/javascript">
- var ShopBasketName = 'Basket';
- var ShopBasketTableProduct = 'Product';
- var ShopBasketTablePrice = 'Price';
- var ShopBasketTableQuantity = 'Quantity';
- var ShopBasketTableSum = 'Sum';
- var ShopBasketTotal = 'Total sum:';
- var ShopBasketBtnContinue = 'Continue Shopping';
- var ShopBasketBtnOrder = 'Make order';
- var ShopBasketEmpty = 'Your basket currently empty...';
- var ShopOrderLabelLastName = 'Last Name';
- var ShopOrderLabelFirstName = 'First Name';
- var ShopOrderLabelMiddleName = 'Middle Name';
- var ShopOrderLabelMobilePhone = 'Mobile Phone';
- var ShopOrderLabelEmailAddress = 'Email Address';
- var ShopOrderLabelDelivery = 'Delivery';
- var ShopOrderLabelComment = 'Comment';
- var ShopOrderRequiredLastName = {{$.Data.ShopOrderRequiredLastName}};
- var ShopOrderRequiredFirstName = {{$.Data.ShopOrderRequiredFirstName}};
- var ShopOrderRequiredMiddleName = {{$.Data.ShopOrderRequiredMiddleName}};
- var ShopOrderRequiredMobilePhone = {{$.Data.ShopOrderRequiredMobilePhone}};
- var ShopOrderRequiredEmailAddress = {{$.Data.ShopOrderRequiredEmailAddress}};
- var ShopOrderRequiredDelivery = {{$.Data.ShopOrderRequiredDelivery}};
- var ShopOrderRequiredComment = {{$.Data.ShopOrderRequiredComment}};
- var ShopOrderError = 'Error!';
- var ShopOrderErrorDisabled = 'Sorry, we are currently not accept new orders, please try little later';
- var ShopOrderErrorBasketEmpty = 'Your basket is empty';
- var ShopOrderErrorSomethingWrong = 'We cannot process your order, something is wrong...';
- var ShopOrderEmptyLastName = 'Please enter your last name';
- var ShopOrderEmptyFirstName = 'Please enter your first name';
- var ShopOrderEmptyMiddleName = 'Please enter your middle name';
- var ShopOrderEmptyMobilePhone = 'Please enter your mobile phone';
- var ShopOrderEmptyEmailAddress = 'Please enter your email address';
- var ShopOrderEmptyDelivery = 'Please enter delivery comment';
- var ShopOrderEmptyComment = 'Please enter order comment';
- var ShopOrderNotCorrectMobilePhone = 'For example: +15417543010';
- var ShopOrderNotCorrectEmailAddress = 'For example: example@gmail.com';
- var ShopOrderSuccess = '<b>Thank you for your order! We will call you shortly</b>';
- </script>
- {{end}}
- </head>
- <body id="body" class="fixed-top-bar">
- <div id="sys-modal-shop-basket-placeholder"></div>
- <div id="wrap">
- <nav id="navbar-top" class="navbar navbar-expand-lg navbar-light bg-light">
- <div class="container">
- <a class="navbar-brand" href="/">Fave {{$.System.InfoVersion}}</a>
- <button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
- {{if $.Data.ModuleShopEnabled}}
- <span id="basket-mobile-btn" class="badge badge-pill badge-primary">{{$.Data.ShopBasketProductsCount}}</span>
- {{end}}
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarResponsive">
- <ul class="navbar-nav ml-auto">
- <li class="nav-item{{if eq $.Data.Page.Alias "/"}} active{{end}}">
- <a class="nav-link" href="/">Home</a>
- </li>
- <li class="nav-item">
- <a class="nav-link{{if eq $.Data.Page.Alias "/another/"}} active{{end}}" href="/another/">Another</a>
- </li>
- <li class="nav-item">
- <a class="nav-link{{if eq $.Data.Page.Alias "/about/"}} active{{end}}" href="/about/">About</a>
- </li>
- {{if $.Data.ModuleBlogEnabled}}
- <li class="nav-item">
- <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>
- </li>
- {{end}}
- {{if $.Data.ModuleShopEnabled}}
- <li class="nav-item">
- <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>
- </li>
- {{end}}
- <li class="nav-item">
- <a class="nav-link{{if eq $.Data.Module "404"}} active{{end}}" href="/not-existent-page/">404</a>
- </li>
- {{if $.Data.ModuleShopEnabled}}
- <li class="nav-item">
- <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>
- </li>
- <li class="currency-changer">
- <select class="form-control" onchange="document.location='/shop/basket/currency/'+this.value+'/';">
- {{range $.Data.Shop.Currencies}}
- <option value="{{.Id}}"{{if eq .Id $.Data.Shop.CurrentCurrency.Id}} selected{{end}}>{{.Code}}</option>
- {{end}}
- </select>
- </li>
- {{end}}
- </ul>
- </div>
- </div>
- </nav>
- <div id="main">
- <div class="bg-fave">
- <div class="container">
- <h1 class="text-left text-white m-0 p-0 py-5">{{$.Data.CachedBlock2}}</h1>
- </div>
- </div>
- {{$.Data.CachedBlock3}}
- <div class="container clear-top">
- <div class="row pt-4">
- {{if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-category")}}
- <div class="col-sm-5 col-md-4 col-lg-3">
- {{template "sidebar-left.html" .}}
- </div>
- {{end}}
- {{if or (eq $.Data.Module "shop-product")}}
- <div class="col-md-12">
- {{else}}
- <div class="col-sm-7 col-md-8 col-lg-9">
- {{end}}`)
|