<?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;
/* cart.html.twig */
class __TwigTemplate_6748d2c1aa4d98b3011776a0ab184ff9 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", "cart.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "cart.html.twig"));
// line 1
echo "
<!DOCTYPE html>
";
// line 3
$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.', 3, $this->source); })()));
// line 4
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.', 4, $this->source); })()))) {
// line 5
echo " ";
$context["document"] = Pimcore\Model\Document::getById(1);
}
// line 7
echo "<html lang=\"en\">
";
// line 10
$this->loadTemplate("Includes/head/headPart1.html.twig", "cart.html.twig", 10)->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.', 10, $this->source); })())]));
// line 11
echo "<!-- Include layout-specific css files here -->
";
// line 12
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, 12);
// line 13
echo "
";
// line 14
$this->loadTemplate("Includes/head/headPart2.html.twig", "cart.html.twig", 14)->display($context);
// line 15
echo "
";
// line 16
$this->loadTemplate("Includes/head/headPart3.html.twig", "cart.html.twig", 16)->display($context);
// line 17
echo "<body>
<!-- main container of all the page elements -->
<div id=\"wrapper\">
";
// line 21
$this->loadTemplate("Includes/topnav.html.twig", "cart.html.twig", 21)->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.', 21, $this->source); })()), "locale" => (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 21, $this->source); })()), "params" => "", "preview" => "preview"]));
// line 22
echo " <!-- contain main informative part of the site -->
<main id=\"main\" role=\"main\">
";
// line 24
$this->displayBlock("content", $context, $blocks);
echo "
</main>
<!-- footer of the page -->
";
// line 27
$context["navStartNode"] = $this->extensions['App\Twig\AppExtension']->getNavStartNode();
// line 28
echo "
";
// line 29
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.', 29, $this->source); })()), "getKey", [], "method", false, false, true, 29), 29, $this->source)) . "/en_us/shared/footer"));
echo "
</div>
</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 "cart.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 102 => 29, 99 => 28, 97 => 27, 91 => 24, 87 => 22, 85 => 21, 79 => 17, 77 => 16, 74 => 15, 72 => 14, 69 => 13, 67 => 12, 64 => 11, 62 => 10, 57 => 7, 53 => 5, 51 => 4, 49 => 3, 45 => 1,);
}
public function getSourceContext()
{
return new Source("
<!DOCTYPE html>
{% set isPortal = ((isPortal is defined) and isPortal) %}
{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
<html lang=\"en\">
{% include 'Includes/head/headPart1.html.twig' with {'document': document} %}
<!-- Include layout-specific css files here -->
{% do pimcore_head_link().appendStylesheet(asset('website/static/css/app.css')) %}
{% include 'Includes/head/headPart2.html.twig' %}
{% include 'Includes/head/headPart3.html.twig' %}
<body>
<!-- main container of all the page elements -->
<div id=\"wrapper\">
{% include 'Includes/topnav.html.twig' with {'country': country, 'locale' : locale, 'params':'', 'preview':'preview'} %}
<!-- contain main informative part of the site -->
<main id=\"main\" role=\"main\">
{{ block('content') }}
</main>
<!-- footer of the page -->
{% set navStartNode = getNavStartNode() %}
{{ pimcore_inc('/' ~ navStartNode.getKey() ~ '/en_us/shared/footer') }}
</div>
</body>
<script>
\$(document).ready(function(){
\$('a[href*=\"en_US\"]').each(function() {
this.href = this.href.replace('en_US','en_us');
})
})
</script>
</html>", "cart.html.twig", "/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/cart.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 3, "if" => 4, "include" => 10, "do" => 12);
static $filters = array();
static $functions = array("pimcore_document" => 5, "pimcore_head_link" => 12, "asset" => 12, "getNavStartNode" => 27, "pimcore_inc" => 29);
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;
}
}
}