<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* base.html.twig */
class __TwigTemplate_99f991a6f44cd182e0566f2dd81b31590b0e25d27f5a406d5180d6bfb7db7414 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'metaDescription' => [$this, 'block_metaDescription'],
'title' => [$this, 'block_title'],
'CSS' => [$this, 'block_CSS'],
'mainCSS' => [$this, 'block_mainCSS'],
'googleTags' => [$this, 'block_googleTags'],
'bodyClass' => [$this, 'block_bodyClass'],
'loaderStyle' => [$this, 'block_loaderStyle'],
'loaderText' => [$this, 'block_loaderText'],
'body' => [$this, 'block_body'],
'mainJS' => [$this, 'block_mainJS'],
'JS' => [$this, 'block_JS'],
'modals' => [$this, 'block_modals'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
// line 1
echo "<!DOCTYPE html>
<html lang=\"";
// line 2
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 2, $this->source); })()), "request", [], "any", false, false, false, 2), "locale", [], "any", false, false, false, 2), "_"), 0, [], "array", false, false, false, 2), "html", null, true);
echo "\">
<head>
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
<meta name=\"description\" content=\"";
// line 6
$this->displayBlock('metaDescription', $context, $blocks);
echo "\">
<meta name=\"author\" content=\"Maturin\">
<link rel=\"shortcut icon\" type=\"image/png\" href=\"https://maturin.ca/favicon.png\"/>
<link rel=\"icon\" type=\"image/png\" href=\"https://maturin.ca/favicon.png\"/>
<link rel=\"apple-touch-icon\" href=\"https://maturin.ca/favicon.png\">
<title>";
// line 11
$this->displayBlock('title', $context, $blocks);
echo "</title>
";
// line 13
$this->displayBlock('CSS', $context, $blocks);
// line 15
echo "
";
// line 16
$this->displayBlock('mainCSS', $context, $blocks);
// line 36
echo " <script src=\"/assets/admin/js/modernizr.min.js\"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-128702569-1\"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-128702569-1');
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-T88BGD9');</script>
<!-- End Google Tag Manager -->
";
// line 54
$this->displayBlock('googleTags', $context, $blocks);
// line 56
echo " </head>
<body class=\"";
// line 57
$this->displayBlock('bodyClass', $context, $blocks);
echo "\">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-T88BGD9\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
";
// line 63
if ((isset($context["loader"]) || array_key_exists("loader", $context))) {
// line 64
echo " <div class=\"se-pre-con\" id=\"se-pre-con\" style=\"";
$this->displayBlock('loaderStyle', $context, $blocks);
echo "\">
";
// line 65
$this->displayBlock('loaderText', $context, $blocks);
// line 66
echo " </div>
";
} else {
// line 68
echo " <div class=\"se-pre-con\" id=\"se-pre-con\" style=\"display: none\">
</div>
";
}
// line 72
echo "
";
// line 73
$this->displayBlock('body', $context, $blocks);
// line 74
echo "
";
// line 76
echo " <script>
window.addToCartNotification = 0;
function addToCart()
{
console.log('Base add to cart called');
event.preventDefault();
var type= this.getAttribute(\"data-type\");
var id= this.getAttribute(\"data-id\");
var quantityWidget = this.getAttribute('data-quantity');
if(quantityWidget && document.getElementById(quantityWidget)){
var quantity = document.getElementById(quantityWidget).value;
}else
var quantity = 1;
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function()
{
console.log(xmlHttp.readyState);
if(xmlHttp.readyState == 4 && xmlHttp.status == 200)
{
var total = parseInt(document.getElementById('menu-cart-count').innerHTML);
document.getElementById('menu-cart-count').innerHTML = total+1;
document.getElementById('menu-cart-count').style.display = 'block';;
window.addToCartNotification++;
var json = JSON.parse(xmlHttp.responseText);
console.log(json);
if(document.getElementById('menu_subtotal_cart'))
document.getElementById('menu_subtotal_cart').innerHTML = json.totalCart;
if(document.getElementById('mobile_menu_subtotal_cart'))
document.getElementById('mobile_menu_subtotal_cart').innerHTML = json.totalCart;
}
}
var subscribe = this.getAttribute('data-subscribe');
if( subscribe )
xmlHttp.open(\"post\", '/API/cart/add/'+id+'/'+quantity+'/'+subscribe);
else
xmlHttp.open(\"post\", '/API/cart/add/'+id+'/'+quantity);
xmlHttp.send();
/*
\$.ajax({
url: Routing.generate('addToCart', {id: id, quantity: quantity}),
method: 'POST',
dataType: 'json',
complete: _this.addedToCart
});
*/
}
var classname = document.getElementsByClassName(\"add-to-cart\");
for (var i = 0; i < classname.length; i++) {
if(!classname[i].classList.contains(\"binded\")){
var classString = classname[i].className;
var newClass = classString.concat(\" binded\");
classname[i].className = newClass;
classname[i].addEventListener('click', addToCart, false);
}
}
</script>
";
// line 145
echo " <input type=\"hidden\" id=\"userLocale\" value='";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 145, $this->source); })()), "request", [], "any", false, false, false, 145), "locale", [], "any", false, false, false, 145), "html", null, true);
echo "'>
<!-- END wrapper -->
";
// line 149
$this->displayBlock('mainJS', $context, $blocks);
// line 158
echo "
";
// line 159
$this->displayBlock('JS', $context, $blocks);
// line 161
echo "
";
// line 162
$this->displayBlock('modals', $context, $blocks);
// line 166
echo " <div id=\"flashMessages\" style=\"position:absolute;top: -200px;\">
";
// line 167
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 167, $this->source); })()), "request", [], "any", false, false, false, 167), "hasPreviousSession", [], "any", false, false, false, 167)) {
// line 168
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 168, $this->source); })()), "session", [], "any", false, false, false, 168), "flashbag", [], "any", false, false, false, 168), "all", [], "method", false, false, false, 168));
foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
// line 169
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["messages"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 170
echo " <div class=\"flashMessage flash-";
echo twig_escape_filter($this->env, $context["type"], "html", null, true);
echo "\" data-type=\"";
echo twig_escape_filter($this->env, $context["type"], "html", null, true);
echo "\">
";
// line 171
echo twig_escape_filter($this->env, $context["message"], "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 174
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['type'], $context['messages'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 175
echo " ";
}
// line 176
echo " </div>
<script src=\"/assets/admin/seo/optimization.js\"></script>
";
// line 178
if (( !(isset($context["hideChat"]) || array_key_exists("hideChat", $context)) && (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 178, $this->source); })()), "environment", [], "any", false, false, false, 178) != "dev"))) {
// line 179
echo " <script>
(function() {
var wa = document.createElement('script'); wa.type = 'text/javascript'; wa.async = true;
wa.src = 'https://d10lpsik1i8c69.cloudfront.net/w.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wa, s);
})();
</script>
<script type='text/javascript' data-cfasync='false'>window.purechatApi = { l: [], t: [], on: function () { this.l.push(arguments); } }; (function () { var done = false; var script = document.createElement('script'); script.async = true; script.type = 'text/javascript'; script.src = 'https://app.purechat.com/VisitorWidget/WidgetScript'; document.getElementsByTagName('HEAD').item(0).appendChild(script); script.onreadystatechange = script.onload = function (e) { if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) { var w = new PCWidget({c: 'fed674ea-4346-4843-82df-3fd025dbcfb0', f: true }); done = true; } }; })();</script>
";
}
// line 195
echo " </body>
</html>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 6
public function block_metaDescription($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 11
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Maturin - Dashboard";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 13
public function block_CSS($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "CSS"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "CSS"));
// line 14
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 16
public function block_mainCSS($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainCSS"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainCSS"));
// line 17
echo " <link href=\"/assets/frontend/css/responsive.css?ver=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 17, $this->source); })()), "cssVersion", [], "any", false, false, false, 17), "html", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\" media=\"all\">
<link href=\"";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/admin/dashboard.css"), "html", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\" />
<link href=\"/assets/admin/css/icons.css\" rel=\"stylesheet\" type=\"text/css\" />
<link href=\"";
// line 20
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/base.css"), "html", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\" />
<script src=\"";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/fosjsrouting/js/router.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 22
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
echo "\"></script>
<style>
#mainSearch {
background-color: white!important;
color: black!important;
}
#mainSearch::placeholder {
color: black!important;
}
#btn-main-search { color: black!important }
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 54
public function block_googleTags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "googleTags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "googleTags"));
// line 55
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 57
public function block_bodyClass($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClass"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClass"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 64
public function block_loaderStyle($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "loaderStyle"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "loaderStyle"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 65
public function block_loaderText($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "loaderText"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "loaderText"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 73
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 149
public function block_mainJS($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainJS"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainJS"));
// line 150
echo " ";
// line 151
echo " <script src=\"/assets/frontend/js/jquery-3.1.1.min.js\"></script>
<script src=\"";
// line 152
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/fosjsrouting/js/router.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 153
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
echo "\"></script>
<script src=\"";
// line 154
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/bazingajstranslation/js/translator.min.js"), "html", null, true);
echo "\"></script>
<!-- <script src=\"";
// line 155
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bazinga_jstranslation_js");
echo "\"></script> -->
<script src=\"";
// line 156
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/base.js"), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 159
public function block_JS($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "JS"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "JS"));
// line 160
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 162
public function block_modals($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modals"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modals"));
// line 163
echo " ";
$this->loadTemplate("admin/modals/viewNotification.html.twig", "base.html.twig", 163)->display($context);
// line 164
echo " ";
$this->loadTemplate("admin/modals/newMessage.html.twig", "base.html.twig", 164)->display($context);
// line 165
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 592 => 165, 589 => 164, 586 => 163, 576 => 162, 566 => 160, 556 => 159, 544 => 156, 540 => 155, 536 => 154, 532 => 153, 528 => 152, 525 => 151, 523 => 150, 513 => 149, 495 => 73, 477 => 65, 459 => 64, 441 => 57, 431 => 55, 421 => 54, 397 => 22, 393 => 21, 389 => 20, 384 => 18, 379 => 17, 369 => 16, 359 => 14, 349 => 13, 330 => 11, 312 => 6, 300 => 195, 282 => 179, 280 => 178, 276 => 176, 273 => 175, 267 => 174, 258 => 171, 251 => 170, 246 => 169, 241 => 168, 239 => 167, 236 => 166, 234 => 162, 231 => 161, 229 => 159, 226 => 158, 224 => 149, 216 => 145, 146 => 76, 143 => 74, 141 => 73, 138 => 72, 132 => 68, 128 => 66, 126 => 65, 121 => 64, 119 => 63, 110 => 57, 107 => 56, 105 => 54, 85 => 36, 83 => 16, 80 => 15, 78 => 13, 73 => 11, 65 => 6, 58 => 2, 55 => 1,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html lang=\"{{ app.request.locale|split('_')[0] }}\">
<head>
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
<meta name=\"description\" content=\"{% block metaDescription %}{% endblock %}\">
<meta name=\"author\" content=\"Maturin\">
<link rel=\"shortcut icon\" type=\"image/png\" href=\"https://maturin.ca/favicon.png\"/>
<link rel=\"icon\" type=\"image/png\" href=\"https://maturin.ca/favicon.png\"/>
<link rel=\"apple-touch-icon\" href=\"https://maturin.ca/favicon.png\">
<title>{% block title %}Maturin - Dashboard{% endblock %}</title>
{% block CSS %}
{% endblock %}
{% block mainCSS %}
<link href=\"/assets/frontend/css/responsive.css?ver={{global.cssVersion}}\" rel=\"stylesheet\" type=\"text/css\" media=\"all\">
<link href=\"{{asset('build/admin/dashboard.css')}}\" rel=\"stylesheet\" type=\"text/css\" />
<link href=\"/assets/admin/css/icons.css\" rel=\"stylesheet\" type=\"text/css\" />
<link href=\"{{asset('build/base.css')}}\" rel=\"stylesheet\" type=\"text/css\" />
<script src=\"{{ asset('bundles/fosjsrouting/js/router.min.js') }}\"></script>
<script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\"></script>
<style>
#mainSearch {
background-color: white!important;
color: black!important;
}
#mainSearch::placeholder {
color: black!important;
}
#btn-main-search { color: black!important }
</style>
{% endblock %}
<script src=\"/assets/admin/js/modernizr.min.js\"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-128702569-1\"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-128702569-1');
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-T88BGD9');</script>
<!-- End Google Tag Manager -->
{% block googleTags %}
{% endblock %}
</head>
<body class=\"{% block bodyClass %}{% endblock%}\">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-T88BGD9\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% if loader is defined %}
<div class=\"se-pre-con\" id=\"se-pre-con\" style=\"{% block loaderStyle %}{% endblock %}\">
{% block loaderText %}{% endblock %}
</div>
{% else %}
<div class=\"se-pre-con\" id=\"se-pre-con\" style=\"display: none\">
</div>
{% endif %}
{% block body %}{% endblock %}
{# To fix a issue with mobile we do the cart adding in pure JS #}
<script>
window.addToCartNotification = 0;
function addToCart()
{
console.log('Base add to cart called');
event.preventDefault();
var type= this.getAttribute(\"data-type\");
var id= this.getAttribute(\"data-id\");
var quantityWidget = this.getAttribute('data-quantity');
if(quantityWidget && document.getElementById(quantityWidget)){
var quantity = document.getElementById(quantityWidget).value;
}else
var quantity = 1;
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function()
{
console.log(xmlHttp.readyState);
if(xmlHttp.readyState == 4 && xmlHttp.status == 200)
{
var total = parseInt(document.getElementById('menu-cart-count').innerHTML);
document.getElementById('menu-cart-count').innerHTML = total+1;
document.getElementById('menu-cart-count').style.display = 'block';;
window.addToCartNotification++;
var json = JSON.parse(xmlHttp.responseText);
console.log(json);
if(document.getElementById('menu_subtotal_cart'))
document.getElementById('menu_subtotal_cart').innerHTML = json.totalCart;
if(document.getElementById('mobile_menu_subtotal_cart'))
document.getElementById('mobile_menu_subtotal_cart').innerHTML = json.totalCart;
}
}
var subscribe = this.getAttribute('data-subscribe');
if( subscribe )
xmlHttp.open(\"post\", '/API/cart/add/'+id+'/'+quantity+'/'+subscribe);
else
xmlHttp.open(\"post\", '/API/cart/add/'+id+'/'+quantity);
xmlHttp.send();
/*
\$.ajax({
url: Routing.generate('addToCart', {id: id, quantity: quantity}),
method: 'POST',
dataType: 'json',
complete: _this.addedToCart
});
*/
}
var classname = document.getElementsByClassName(\"add-to-cart\");
for (var i = 0; i < classname.length; i++) {
if(!classname[i].classList.contains(\"binded\")){
var classString = classname[i].className;
var newClass = classString.concat(\" binded\");
classname[i].className = newClass;
classname[i].addEventListener('click', addToCart, false);
}
}
</script>
{# end dirty fix add to cart #}
<input type=\"hidden\" id=\"userLocale\" value='{{ app.request.locale }}'>
<!-- END wrapper -->
{% block mainJS %}
{# To use the Routing System in the Javascript #}
<script src=\"/assets/frontend/js/jquery-3.1.1.min.js\"></script>
<script src=\"{{ asset('bundles/fosjsrouting/js/router.min.js') }}\"></script>
<script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\"></script>
<script src=\"{{ asset('bundles/bazingajstranslation/js/translator.min.js') }}\"></script>
<!-- <script src=\"{{ url('bazinga_jstranslation_js') }}\"></script> -->
<script src=\"{{ asset('build/base.js') }}\"></script>
{% endblock %}
{% block JS %}
{% endblock %}
{% block modals %}
{% include ('admin/modals/viewNotification.html.twig') %}
{% include ('admin/modals/newMessage.html.twig') %}
{% endblock %}
<div id=\"flashMessages\" style=\"position:absolute;top: -200px;\">
{% if app.request.hasPreviousSession %}
{% for type, messages in app.session.flashbag.all() %}
{% for message in messages %}
<div class=\"flashMessage flash-{{ type }}\" data-type=\"{{type}}\">
{{ message }}
</div>
{% endfor %}
{% endfor %}
{% endif %}
</div>
<script src=\"/assets/admin/seo/optimization.js\"></script>
{% if hideChat is not defined and app.environment != 'dev' %}
<script>
(function() {
var wa = document.createElement('script'); wa.type = 'text/javascript'; wa.async = true;
wa.src = 'https://d10lpsik1i8c69.cloudfront.net/w.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wa, s);
})();
</script>
<script type='text/javascript' data-cfasync='false'>window.purechatApi = { l: [], t: [], on: function () { this.l.push(arguments); } }; (function () { var done = false; var script = document.createElement('script'); script.async = true; script.type = 'text/javascript'; script.src = 'https://app.purechat.com/VisitorWidget/WidgetScript'; document.getElementsByTagName('HEAD').item(0).appendChild(script); script.onreadystatechange = script.onload = function (e) { if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) { var w = new PCWidget({c: 'fed674ea-4346-4843-82df-3fd025dbcfb0', f: true }); done = true; } }; })();</script>
{% endif %}
</body>
</html>
", "base.html.twig", "/var/www/html/Markego/templates/base.html.twig");
}
}