var/cache/dev/twig/bc/bc420ff0d9d772f2dca8e2af050dbeb2.php line 35

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* cart.html.twig */
  14. class __TwigTemplate_6748d2c1aa4d98b3011776a0ab184ff9 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""cart.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""cart.html.twig"));
  35.         // line 1
  36.         echo "
  37. <!DOCTYPE html>
  38. ";
  39.         // line 3
  40.         $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); })()));
  41.         // line 4
  42.         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); })()))) {
  43.             // line 5
  44.             echo "  ";
  45.             $context["document"] = Pimcore\Model\Document::getById(1);
  46.         }
  47.         // line 7
  48.         echo "<html lang=\"en\">
  49. ";
  50.         // line 10
  51.         $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); })())]));
  52.         // line 11
  53.         echo "<!-- Include layout-specific css files here -->
  54. ";
  55.         // line 12
  56.         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"falsefalsetrue12);
  57.         // line 13
  58.         echo "
  59. ";
  60.         // line 14
  61.         $this->loadTemplate("Includes/head/headPart2.html.twig""cart.html.twig"14)->display($context);
  62.         // line 15
  63.         echo "
  64. ";
  65.         // line 16
  66.         $this->loadTemplate("Includes/head/headPart3.html.twig""cart.html.twig"16)->display($context);
  67.         // line 17
  68.         echo "<body>
  69.   <!-- main container of all the page elements -->
  70.   <div id=\"wrapper\">
  71.     
  72.     ";
  73.         // line 21
  74.         $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"]));
  75.         // line 22
  76.         echo "    <!-- contain main informative part of the site -->
  77.     <main id=\"main\" role=\"main\">
  78.       ";
  79.         // line 24
  80.         $this->displayBlock("content"$context$blocks);
  81.         echo "
  82.     </main>
  83.     <!-- footer of the page -->
  84.     ";
  85.         // line 27
  86.         $context["navStartNode"] = $this->extensions['App\Twig\AppExtension']->getNavStartNode();
  87.         // line 28
  88.         echo "
  89.     ";
  90.         // line 29
  91.         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"falsefalsetrue29), 29$this->source)) . "/en_us/shared/footer"));
  92.         echo "
  93.   </div>
  94. </body>
  95. <script>
  96. \$(document).ready(function(){
  97.   \$('a[href*=\"en_US\"]').each(function() {
  98.     this.href = this.href.replace('en_US','en_us');
  99.   })
  100. })
  101. </script>
  102. </html>";
  103.         
  104.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  105.         
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  107.     }
  108.     /**
  109.      * @codeCoverageIgnore
  110.      */
  111.     public function getTemplateName()
  112.     {
  113.         return "cart.html.twig";
  114.     }
  115.     /**
  116.      * @codeCoverageIgnore
  117.      */
  118.     public function isTraitable()
  119.     {
  120.         return false;
  121.     }
  122.     /**
  123.      * @codeCoverageIgnore
  124.      */
  125.     public function getDebugInfo()
  126.     {
  127.         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,);
  128.     }
  129.     public function getSourceContext()
  130.     {
  131.         return new Source("
  132. <!DOCTYPE html>
  133. {% set isPortal = ((isPortal is defined) and isPortal) %}
  134. {% if not document is defined or not document %}
  135.   {% set document = pimcore_document(1) %}
  136. {% endif %}
  137. <html lang=\"en\">
  138. {% include 'Includes/head/headPart1.html.twig' with {'document': document} %}
  139. <!-- Include layout-specific css files here -->
  140. {% do pimcore_head_link().appendStylesheet(asset('website/static/css/app.css')) %}
  141. {% include 'Includes/head/headPart2.html.twig' %}
  142. {% include 'Includes/head/headPart3.html.twig' %}
  143. <body>
  144.   <!-- main container of all the page elements -->
  145.   <div id=\"wrapper\">
  146.     
  147.     {% include 'Includes/topnav.html.twig' with {'country': country, 'locale' : locale, 'params':'', 'preview':'preview'} %}
  148.     <!-- contain main informative part of the site -->
  149.     <main id=\"main\" role=\"main\">
  150.       {{ block('content') }}
  151.     </main>
  152.     <!-- footer of the page -->
  153.     {% set navStartNode = getNavStartNode() %}
  154.     {{ pimcore_inc('/' ~ navStartNode.getKey() ~ '/en_us/shared/footer') }}
  155.   </div>
  156. </body>
  157. <script>
  158. \$(document).ready(function(){
  159.   \$('a[href*=\"en_US\"]').each(function() {
  160.     this.href = this.href.replace('en_US','en_us');
  161.   })
  162. })
  163. </script>
  164. </html>""cart.html.twig""/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/cart.html.twig");
  165.     }
  166.     
  167.     public function checkSecurity()
  168.     {
  169.         static $tags = array("set" => 3"if" => 4"include" => 10"do" => 12);
  170.         static $filters = array();
  171.         static $functions = array("pimcore_document" => 5"pimcore_head_link" => 12"asset" => 12"getNavStartNode" => 27"pimcore_inc" => 29);
  172.         try {
  173.             $this->sandbox->checkSecurity(
  174.                 ['set''if''include''do'],
  175.                 [],
  176.                 ['pimcore_document''pimcore_head_link''asset''getNavStartNode''pimcore_inc']
  177.             );
  178.         } catch (SecurityError $e) {
  179.             $e->setSourceContext($this->source);
  180.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  181.                 $e->setTemplateLine($tags[$e->getTagName()]);
  182.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  183.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  184.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  185.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  186.             }
  187.             throw $e;
  188.         }
  189.     }
  190. }