var/cache/dev/twig/e7/e7da7fa4165af6bf1601602b362f2909.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. /* product.html.twig */
  14. class __TwigTemplate_a478bb22f2d3bf237c78d64520528809 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""product.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""product.html.twig"));
  35.         // line 1
  36.         $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); })()));
  37.         // line 2
  38.         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); })()))) {
  39.             // line 3
  40.             echo "  ";
  41.             $context["document"] = Pimcore\Model\Document::getById(1);
  42.         }
  43.         // line 5
  44.         echo "
  45. <!DOCTYPE html>
  46. <html lang=\"en\">
  47. <meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\" />
  48. <meta http-equiv=\"Pragma\" content=\"no-cache\" />
  49. <meta http-equiv=\"Expires\" content=\"0\" />
  50. ";
  51.         // line 13
  52.         $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); })())]));
  53.         // line 14
  54.         echo "
  55. ";
  56.         // line 15
  57.         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"falsefalsetrue15);
  58.         // line 16
  59.         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"falsefalsetrue16);
  60.         // line 17
  61.         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"falsefalsetrue17);
  62.         // line 18
  63.         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"falsefalsetrue18);
  64.         // line 19
  65.         echo "
  66. ";
  67.         // line 20
  68.         $this->loadTemplate("Includes/head/headPart2.html.twig""product.html.twig"20)->display($context);
  69.         // line 21
  70.         echo "
  71. ";
  72.         // line 22
  73.         $this->loadTemplate("Includes/head/headPart3.html.twig""product.html.twig"22)->display($context);
  74.         // line 23
  75.         echo "
  76. <body class=\"\">
  77.   <!-- main container of all the page elements -->
  78.   <div id=\"wrapper\">
  79.     <!-- header of the page -->
  80.     
  81.     ";
  82.         // line 29
  83.         $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"]));
  84.         // line 30
  85.         echo "    
  86.    <main id=\"main\" role=\"main\">
  87.       
  88.       ";
  89.         // line 33
  90.         $this->displayBlock("content"$context$blocks);
  91.         echo "
  92.     </main>
  93.   </div>
  94.   <!-- footer of the page -->
  95. ";
  96.         // line 38
  97.         $context["navStartNode"] = $this->extensions['App\Twig\AppExtension']->getNavStartNode();
  98.         // line 39
  99.         echo "
  100. ";
  101.         // line 40
  102.         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"falsefalsetrue40), 40$this->source)) . "/en_us/shared/footer"));
  103.         echo "
  104. </body>
  105. <script>
  106. \$(document).ready(function(){
  107.   \$('a[href*=\"en_US\"]').each(function() {
  108.     this.href = this.href.replace('en_US','en_us');
  109.   })
  110. })
  111. </script>
  112. </html>
  113. ";
  114.         
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  116.         
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  118.     }
  119.     /**
  120.      * @codeCoverageIgnore
  121.      */
  122.     public function getTemplateName()
  123.     {
  124.         return "product.html.twig";
  125.     }
  126.     /**
  127.      * @codeCoverageIgnore
  128.      */
  129.     public function isTraitable()
  130.     {
  131.         return false;
  132.     }
  133.     /**
  134.      * @codeCoverageIgnore
  135.      */
  136.     public function getDebugInfo()
  137.     {
  138.         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,);
  139.     }
  140.     public function getSourceContext()
  141.     {
  142.         return new Source("{% set isPortal = ((isPortal is defined) and isPortal) %}
  143. {% if not document is defined or not document %}
  144.   {% set document = pimcore_document(1) %}
  145. {% endif %}
  146. <!DOCTYPE html>
  147. <html lang=\"en\">
  148. <meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\" />
  149. <meta http-equiv=\"Pragma\" content=\"no-cache\" />
  150. <meta http-equiv=\"Expires\" content=\"0\" />
  151. {% include 'Includes/head/headPart1.html.twig' with {'document': document} %}
  152. {% do pimcore_head_link().appendStylesheet(asset('website/static/css/slick.css')) %}
  153. {% do pimcore_head_link().appendStylesheet(asset('website/static/css/slick-theme.css')) %}
  154. {% do pimcore_head_link().appendStylesheet(asset('website/static/css/app.css')) %}
  155. {% do pimcore_head_link().appendStylesheet(asset('website/static/css/image-picker.css')) %}
  156. {% include 'Includes/head/headPart2.html.twig' %}
  157. {% include 'Includes/head/headPart3.html.twig' %}
  158. <body class=\"\">
  159.   <!-- main container of all the page elements -->
  160.   <div id=\"wrapper\">
  161.     <!-- header of the page -->
  162.     
  163.     {% include 'Includes/topnav.html.twig' with {'country': country, 'locale' : locale, 'params':params, 'preview':'preview'} %}
  164.     
  165.    <main id=\"main\" role=\"main\">
  166.       
  167.       {{ block('content') }}
  168.     </main>
  169.   </div>
  170.   <!-- footer of the page -->
  171. {% set navStartNode = getNavStartNode() %}
  172. {{ pimcore_inc('/' ~ navStartNode.getKey() ~ '/en_us/shared/footer') }}
  173. </body>
  174. <script>
  175. \$(document).ready(function(){
  176.   \$('a[href*=\"en_US\"]').each(function() {
  177.     this.href = this.href.replace('en_US','en_us');
  178.   })
  179. })
  180. </script>
  181. </html>
  182. ""product.html.twig""/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/product.html.twig");
  183.     }
  184.     
  185.     public function checkSecurity()
  186.     {
  187.         static $tags = array("set" => 1"if" => 2"include" => 13"do" => 15);
  188.         static $filters = array();
  189.         static $functions = array("pimcore_document" => 3"pimcore_head_link" => 15"asset" => 15"getNavStartNode" => 38"pimcore_inc" => 40);
  190.         try {
  191.             $this->sandbox->checkSecurity(
  192.                 ['set''if''include''do'],
  193.                 [],
  194.                 ['pimcore_document''pimcore_head_link''asset''getNavStartNode''pimcore_inc']
  195.             );
  196.         } catch (SecurityError $e) {
  197.             $e->setSourceContext($this->source);
  198.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  199.                 $e->setTemplateLine($tags[$e->getTagName()]);
  200.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  201.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  202.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  203.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  204.             }
  205.             throw $e;
  206.         }
  207.     }
  208. }