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