<?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;
/* product.html.twig */
class __TwigTemplate_a478bb22f2d3bf237c78d64520528809 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "product.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "product.html.twig"));
// line 1
$context["isPortal"] = (array_key_exists("isPortal", $context) && (isset($context["isPortal"]) || array_key_exists("isPortal", $context) ? $context["isPortal"] : (function () { throw new RuntimeError('Variable "isPortal" does not exist.', 1, $this->source); })()));
// line 2
if (( !array_key_exists("document", $context) || !(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 2, $this->source); })()))) {
// line 3
echo " ";
$context["document"] = Pimcore\Model\Document::getById(1);
}
// line 5
echo "
<!DOCTYPE html>
<html lang=\"en\">
<meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\" />
<meta http-equiv=\"Pragma\" content=\"no-cache\" />
<meta http-equiv=\"Expires\" content=\"0\" />
";
// line 13
$this->loadTemplate("Includes/head/headPart1.html.twig", "product.html.twig", 13)->display(twig_array_merge($context, ["document" => (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 13, $this->source); })())]));
// line 14
echo "
";
// line 15
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("website/static/css/slick.css")], "method", false, false, true, 15);
// line 16
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("website/static/css/slick-theme.css")], "method", false, false, true, 16);
// line 17
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("website/static/css/app.css")], "method", false, false, true, 17);
// line 18
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("website/static/css/image-picker.css")], "method", false, false, true, 18);
// line 19
echo "
";
// line 20
$this->loadTemplate("Includes/head/headPart2.html.twig", "product.html.twig", 20)->display($context);
// line 21
echo "
";
// line 22
$this->loadTemplate("Includes/head/headPart3.html.twig", "product.html.twig", 22)->display($context);
// line 23
echo "
<body class=\"\">
<!-- main container of all the page elements -->
<div id=\"wrapper\">
<!-- header of the page -->
";
// line 29
$this->loadTemplate("Includes/topnav.html.twig", "product.html.twig", 29)->display(twig_array_merge($context, ["country" => (isset($context["country"]) || array_key_exists("country", $context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.', 29, $this->source); })()), "locale" => (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 29, $this->source); })()), "params" => (isset($context["params"]) || array_key_exists("params", $context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.', 29, $this->source); })()), "preview" => "preview"]));
// line 30
echo "
<main id=\"main\" role=\"main\">
";
// line 33
$this->displayBlock("content", $context, $blocks);
echo "
</main>
</div>
<!-- footer of the page -->
";
// line 38
$context["navStartNode"] = $this->extensions['App\Twig\AppExtension']->getNavStartNode();
// line 39
echo "
";
// line 40
echo $this->env->getFunction('pimcore_inc')->getCallable()((("/" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 40, $this->source); })()), "getKey", [], "method", false, false, true, 40), 40, $this->source)) . "/en_us/shared/footer"));
echo "
</body>
<script>
\$(document).ready(function(){
\$('a[href*=\"en_US\"]').each(function() {
this.href = this.href.replace('en_US','en_us');
})
})
</script>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "product.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 114 => 40, 111 => 39, 109 => 38, 101 => 33, 96 => 30, 94 => 29, 86 => 23, 84 => 22, 81 => 21, 79 => 20, 76 => 19, 74 => 18, 72 => 17, 70 => 16, 68 => 15, 65 => 14, 63 => 13, 53 => 5, 49 => 3, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% set isPortal = ((isPortal is defined) and isPortal) %}
{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
<!DOCTYPE html>
<html lang=\"en\">
<meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\" />
<meta http-equiv=\"Pragma\" content=\"no-cache\" />
<meta http-equiv=\"Expires\" content=\"0\" />
{% include 'Includes/head/headPart1.html.twig' with {'document': document} %}
{% do pimcore_head_link().appendStylesheet(asset('website/static/css/slick.css')) %}
{% do pimcore_head_link().appendStylesheet(asset('website/static/css/slick-theme.css')) %}
{% do pimcore_head_link().appendStylesheet(asset('website/static/css/app.css')) %}
{% do pimcore_head_link().appendStylesheet(asset('website/static/css/image-picker.css')) %}
{% include 'Includes/head/headPart2.html.twig' %}
{% include 'Includes/head/headPart3.html.twig' %}
<body class=\"\">
<!-- main container of all the page elements -->
<div id=\"wrapper\">
<!-- header of the page -->
{% include 'Includes/topnav.html.twig' with {'country': country, 'locale' : locale, 'params':params, 'preview':'preview'} %}
<main id=\"main\" role=\"main\">
{{ block('content') }}
</main>
</div>
<!-- footer of the page -->
{% set navStartNode = getNavStartNode() %}
{{ pimcore_inc('/' ~ navStartNode.getKey() ~ '/en_us/shared/footer') }}
</body>
<script>
\$(document).ready(function(){
\$('a[href*=\"en_US\"]').each(function() {
this.href = this.href.replace('en_US','en_us');
})
})
</script>
</html>
", "product.html.twig", "/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/product.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "if" => 2, "include" => 13, "do" => 15);
static $filters = array();
static $functions = array("pimcore_document" => 3, "pimcore_head_link" => 15, "asset" => 15, "getNavStartNode" => 38, "pimcore_inc" => 40);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'include', 'do'],
[],
['pimcore_document', 'pimcore_head_link', 'asset', 'getNavStartNode', 'pimcore_inc']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}