2018-01-07 04:55:48 +10:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>{{config.cartTitle}} - {{title}}</title>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
{{#if admin}}
|
|
|
|
<link rel="icon" type="image/png" href="/images/favicon.png" />
|
|
|
|
<!--[if IE]><link rel="SHORTCUT ICON" href="/images/favicon.png"/><![endif]-->
|
|
|
|
{{else}}
|
|
|
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
|
|
|
<!--[if IE]><link rel="SHORTCUT ICON" href="/favicon.ico"/><![endif]-->
|
|
|
|
{{/if}}
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
|
|
{{#if metaDescription}}
|
|
|
|
<meta name="description" content="{{metaDescription}}">
|
|
|
|
{{else}}
|
|
|
|
<meta name="description" content="{{config.cartDescription}}">
|
|
|
|
{{/if}}
|
|
|
|
<meta name="keywords" content="{{config.cartTitle}}">
|
2019-12-26 13:23:21 +10:00
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha256-L/W5Wfqfa0sdBNIKN9cG6QA5F2qx4qICmU2VgLruv9Y=" crossorigin="anonymous" />
|
2019-12-26 20:32:28 +10:00
|
|
|
<link rel="stylesheet" href="/stylesheets/pushy{{config.env}}.css">
|
2019-12-27 13:37:38 +10:00
|
|
|
{{#if admin}}
|
2018-01-07 04:55:48 +10:00
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.20.2/codemirror.min.css" />
|
2019-12-27 13:37:38 +10:00
|
|
|
{{/if}}
|
2019-12-30 22:28:37 +10:00
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css" integrity="sha256-+N4/V/SbAFiW1MPBCXnfnP9QSN3+Keu+NlB+0ev/YKQ=" crossorigin="anonymous" />
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tokenfield/0.12.0/css/bootstrap-tokenfield.min.css" integrity="sha256-4qBzeX420hElp9/FzsuqUNqVobcClz1BjnXoxUDSYQ0=" crossorigin="anonymous" />
|
2018-02-17 23:30:28 +10:00
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
2018-01-07 04:55:48 +10:00
|
|
|
<link rel="stylesheet" href="/stylesheets/codemirror-style.min.css">
|
|
|
|
<link rel="stylesheet" href="/stylesheets/style{{config.env}}.css">
|
|
|
|
{{#if admin}}
|
|
|
|
<link rel="stylesheet" href="/stylesheets/admin{{config.env}}.css">
|
|
|
|
{{/if}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
|
2019-12-30 22:28:37 +10:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/esm/popper.min.js" integrity="sha256-g491Yv8nsEVSfQ6aonhVVFXoX5vF2uJQIU0hVNRg4JQ=" crossorigin="anonymous"></script>
|
2019-12-26 13:23:21 +10:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha256-WqU1JavFxSAMcLP2WIOI+GB2zWmShMI82mTpLDcqFUg=" crossorigin="anonymous"></script>
|
2019-12-27 13:37:38 +10:00
|
|
|
{{#if admin}}
|
2019-12-30 22:28:37 +10:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.20.2/codemirror.min.js" integrity="sha256-K1exjHe1X4MP24jRizgBaSbUDUrNhFDRSwGoEYGmtJE=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.20.2/mode/css/css.min.js" integrity="sha256-D5oJ11cOmRhXSYWELwG2U/XYH3YveZJr9taRYLZ2DSM=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.20.2/mode/xml/xml.min.js" integrity="sha256-ERFGS58tayDq5kkyNwd/89iZZ+HglMH7eYXxG1hxTvA=" crossorigin="anonymous"></script>
|
2019-12-27 13:37:38 +10:00
|
|
|
{{/if}}
|
2019-12-30 22:28:37 +10:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.7/js/tether.min.js" integrity="sha256-4lietOiwRDBKx1goZZbRiwB06L+/bPYEGDIKZt82bgg=" crossorigin="anonymous"></script>
|
2018-01-07 04:55:48 +10:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/1000hz-bootstrap-validator/0.11.9/validator.min.js"></script>
|
|
|
|
<script src="/javascripts/jquery.bootpag.min.js"></script>
|
|
|
|
<script src="/javascripts/cssbeautify.min.js"></script>
|
2019-12-06 17:09:13 +10:00
|
|
|
<script src="/javascripts/common{{config.env}}.js"></script>
|
2018-01-07 04:55:48 +10:00
|
|
|
<script src="/javascripts/expressCart{{config.env}}.js"></script>
|
2019-12-06 17:09:13 +10:00
|
|
|
{{#if admin}}
|
|
|
|
<script src="/javascripts/admin{{config.env}}.js"></script>
|
|
|
|
{{/if}}
|
2019-12-30 22:28:37 +10:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tokenfield/0.12.0/bootstrap-tokenfield.min.js" integrity="sha256-jdwX0QzXB7z7Xc7Vz0ovtIHWO5qIZWg0aLcGv44JDgE=" crossorigin="anonymous"></script>
|
2018-01-07 04:55:48 +10:00
|
|
|
<!-- SEO data -->
|
|
|
|
<link rel="canonical" href="{{config.baseUrl}}" />
|
|
|
|
<meta name="referrer" content="origin" />
|
|
|
|
<meta property="og:site_name" content="{{config.cartTitle}}" />
|
|
|
|
<meta property="og:type" content="website" />
|
|
|
|
<meta property="og:title" content="{{title}}" />
|
|
|
|
<meta property="og:url" content="{{config.baseUrl}}" />
|
|
|
|
<meta name="twitter:card" content="summary" />
|
|
|
|
<meta name="twitter:title" content="{{title}}" />
|
|
|
|
<meta name="twitter:url" content="{{config.baseUrl}}" />
|
|
|
|
<script type="application/ld+json">
|
|
|
|
{
|
|
|
|
"@context": "http://schema.org",
|
|
|
|
"@type": "WebSite",
|
|
|
|
"publisher": "{{config.cartTitle}}",
|
|
|
|
"url": "{{config.baseUrl}}"
|
|
|
|
}
|
|
|
|
</script>
|
2019-12-26 13:23:21 +10:00
|
|
|
<!-- SEO data -->
|
2018-01-07 04:55:48 +10:00
|
|
|
{{#if config.googleAnalytics}}{{{config.googleAnalytics}}}{{/if}}
|
|
|
|
{{#if config.customCss}}<style>{{{config.customCss}}}</style>{{/if}}
|
2018-02-14 06:21:22 +10:00
|
|
|
{{#if admin}}
|
|
|
|
<link rel="stylesheet" href="/stylesheets/admin{{config.env}}.css">
|
|
|
|
{{else}}
|
2019-12-19 14:15:51 +10:00
|
|
|
{{#if config.theme}}
|
|
|
|
<link rel="stylesheet" href="/{{config.theme}}/style{{config.env}}.css">
|
|
|
|
<script src="/{{config.theme}}/index{{config.env}}.js"></script>
|
|
|
|
{{/if}}
|
2018-02-14 06:21:22 +10:00
|
|
|
{{/if}}
|
2018-01-07 04:55:48 +10:00
|
|
|
</head>
|
|
|
|
{{#if admin}}
|
|
|
|
<body class="admin">
|
|
|
|
{{else}}
|
|
|
|
<body>
|
|
|
|
{{/if}}
|
2019-12-28 16:06:33 +10:00
|
|
|
<nav class="navbar navbar-expand-lg justify-content-between mainNavBar">
|
2019-12-30 16:56:45 +10:00
|
|
|
{{#if admin}}
|
2019-12-30 16:58:07 +10:00
|
|
|
<a class="navbar-brand" href="/admin"><img class="img-fluid" src="/images/logo-admin.png"></a>
|
2019-12-30 16:56:45 +10:00
|
|
|
{{else}}
|
2019-12-28 15:43:20 +10:00
|
|
|
<a class="navbar-brand" href="/">{{@root.config.cartTitle}}</a>
|
2019-12-30 16:56:45 +10:00
|
|
|
{{/if}}
|
2019-12-28 15:43:20 +10:00
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarMenu" aria-controls="navbarMenu" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<i class="fa fa-bars" aria-hidden="true"></i>
|
2019-12-28 16:06:33 +10:00
|
|
|
</button>
|
2019-12-28 15:43:20 +10:00
|
|
|
<div id="navbarText">
|
2019-12-26 13:23:21 +10:00
|
|
|
<ul class="navbar-nav ml-auto">
|
2019-12-30 17:19:04 +10:00
|
|
|
{{#unless admin}}
|
2019-12-26 13:23:21 +10:00
|
|
|
{{#ifCond @root.config.enableLanguages "!=" false}}
|
2019-12-28 16:14:13 +10:00
|
|
|
<div class="dropdown">
|
|
|
|
<button class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
{{ @root.__ "Languages" }}
|
|
|
|
</button>
|
|
|
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
2019-12-26 13:23:21 +10:00
|
|
|
{{#availableLanguages}}
|
2019-12-28 16:14:13 +10:00
|
|
|
<li><a class="dropdown-item" href="/lang/{{this}}">{{@root.__ this}}</a></li>
|
2019-12-26 13:23:21 +10:00
|
|
|
{{/availableLanguages}}
|
2019-12-28 16:14:13 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-12-26 13:23:21 +10:00
|
|
|
{{/ifCond}}
|
2019-12-30 17:19:04 +10:00
|
|
|
{{/unless}}
|
2019-12-26 13:23:21 +10:00
|
|
|
{{#unless admin}}
|
|
|
|
{{#if @root.session.cart}}
|
2019-12-30 22:03:50 +10:00
|
|
|
<li class="nav-item"><a href="/checkout/cart" class="btn menu-btn"><i class="fa fa-shopping-cart" aria-hidden="true"></i> {{ @root.__ "Cart" }} <span class="badge badge-danger" id="cart-count">{{@root.session.totalCartItems}}</span></a></li>
|
2018-01-07 04:55:48 +10:00
|
|
|
{{else}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<li class="nav-item"><a href="/checkout/cart" class="btn menu-btn"><i class="fa fa-shopping-cart" aria-hidden="true"></i> {{ @root.__ "Cart" }} <span class="badge badge-danger" id="cart-count">0</span></a></li>
|
2019-12-21 12:46:48 +10:00
|
|
|
{{/if}}
|
2019-12-26 13:23:21 +10:00
|
|
|
{{/unless}}
|
|
|
|
{{#if admin}}
|
|
|
|
{{#if @root.session.user}}
|
|
|
|
<li class="nav-item"><a href="/admin/logout"><i class="fa fa-sign-out" aria-hidden="true"> </i>Logout</a></li>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2018-01-07 04:55:48 +10:00
|
|
|
<div class="site-overlay"></div>
|
|
|
|
{{#unless admin}}
|
|
|
|
{{#ifCond page '!=' 'checkout'}}
|
|
|
|
{{#ifCond page '!=' 'pay'}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<div id="cart" class="col-md-12 pad-left-12 top-pad-10 pushy pushy-right">
|
2019-12-21 12:46:48 +10:00
|
|
|
<div class="row {{checkout}}">
|
2019-12-26 13:23:21 +10:00
|
|
|
<div class="col-sm-12 text-right">
|
|
|
|
<button class="pushy-link btn btn-outline-primary" type="button">X</button>
|
2019-12-21 12:46:48 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div id="cart" class="col-md-12">
|
|
|
|
{{> (getTheme 'cart')}}
|
|
|
|
<div class="row">
|
|
|
|
{{#if @root.session.cart}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<button class="btn btn-outline-danger pull-left" id="empty-cart" type="button">{{ @root.__ "Empty cart" }}</button>
|
|
|
|
<a href="/checkout/information" class="btn btn-outline-primary pull-right">Checkout</a>
|
2019-12-21 12:46:48 +10:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-07 04:55:48 +10:00
|
|
|
</div>
|
|
|
|
{{/ifCond}}
|
|
|
|
{{/ifCond}}
|
|
|
|
{{/unless}}
|
|
|
|
<div class="container-fluid content-body" id="container">
|
|
|
|
<div class="row">
|
|
|
|
{{#if admin}}
|
|
|
|
{{{body}}}
|
|
|
|
{{else}}
|
|
|
|
{{{body}}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<input type="hidden" id="input_notify_message" value="{{message}}">
|
|
|
|
<input type="hidden" id="input_notify_messageType" value="{{messageType}}">
|
|
|
|
<input type="hidden" id="cartCheckout" value="{{checkout}}">
|
2019-11-03 19:34:20 +10:00
|
|
|
<input type="hidden" id="cartTheme" value="{{@root.config.theme}}">
|
2018-01-07 04:55:48 +10:00
|
|
|
<div id="notify_message"></div>
|
|
|
|
{{#if showFooter}}
|
|
|
|
<footer class="footer">
|
|
|
|
<div class="container-fluid">
|
2019-11-01 19:13:14 +10:00
|
|
|
{{#isNull @root.config.footerHtml}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<h5 class="text-center">Powered by expressCart</h5>
|
2018-01-07 04:55:48 +10:00
|
|
|
{{else}}
|
2019-11-01 19:13:14 +10:00
|
|
|
{{{@root.config.footerHtml}}}
|
2018-01-07 04:55:48 +10:00
|
|
|
{{/isNull}}
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
{{/if}}
|
|
|
|
<script src="/javascripts/pushy.min.js"></script>
|
|
|
|
</body>
|
2019-11-06 18:31:25 +10:00
|
|
|
</html>
|