var/cache/dev/twig/5b/5b690f395dd4c82bbb2c6f76b2c7e8669bbdebebd0aca8043e8d25e723f1967d.php line 51

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. /* CoreBundle::pageTemplateDefault.html.twig */
  14. class __TwigTemplate_a42fd0c58785fa9025babf6567b052df5c193a0313677be6de21b8307438bd5f extends \Twig\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.             'scripts' => [$this'block_scripts'],
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""CoreBundle::pageTemplateDefault.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""CoreBundle::pageTemplateDefault.html.twig"));
  34.         // line 1
  35.         echo "<!DOCTYPE html>
  36. <html lang=\"";
  37.         // line 2
  38.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'2$this->source); })()), "request", [], "any"falsefalsefalse2), "locale", [], "any"falsefalsefalse2), "html"nulltrue);
  39.         echo "\">
  40. ";
  41.         // line 3
  42.         echo twig_include($this->env$context"Includes/headDefault.html.twig");
  43.         echo "
  44. <body class=\"brand-";
  45.         // line 4
  46.         if ((isset($context["siteName"]) || array_key_exists("siteName"$context))) {
  47.             echo twig_escape_filter($this->envtwig_lower_filter($this->env, (isset($context["siteName"]) || array_key_exists("siteName"$context) ? $context["siteName"] : (function () { throw new RuntimeError('Variable "siteName" does not exist.'4$this->source); })())), "html"nulltrue);
  48.         }
  49.         echo " ";
  50.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'4$this->source); })())) {
  51.             echo "editmode";
  52.         }
  53.         echo "\">
  54. <header class=\"main-header\">
  55.     <div class=\"navigation\">
  56.         <div class=\"nav-bg has-background\">
  57.             <div class=\"main-content flex-col box-align-center nav-wrapper\">
  58.                 ";
  59.         // line 9
  60.         echo twig_include($this->env$context"Includes/NavMain.html.twig");
  61.         echo "
  62.             </div>
  63.         </div>
  64.     </div>
  65. </header>
  66. <main>
  67.     ";
  68.         // line 15
  69.         $this->displayBlock("content"$context$blocks);
  70.         echo "
  71. </main>
  72. ";
  73.         // line 17
  74.         echo $this->env->getFunction('pimcore_inc')->getCallable()((((("/" . (isset($context["siteName"]) || array_key_exists("siteName"$context) ? $context["siteName"] : (function () { throw new RuntimeError('Variable "siteName" does not exist.'17$this->source); })())) . "/") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'17$this->source); })()), "request", [], "any"falsefalsefalse17), "locale", [], "any"falsefalsefalse17)) . "/includes/footer"));
  75.         echo "
  76. ";
  77.         // line 19
  78.         if ((((isset($context["enabledWebsiteFeatures"]) || array_key_exists("enabledWebsiteFeatures"$context)) && twig_get_attribute($this->env$this->source, ($context["enabledWebsiteFeatures"] ?? null), "sidebarCart", [], "array"truetruefalse19)) && (twig_get_attribute($this->env$this->source, (isset($context["enabledWebsiteFeatures"]) || array_key_exists("enabledWebsiteFeatures"$context) ? $context["enabledWebsiteFeatures"] : (function () { throw new RuntimeError('Variable "enabledWebsiteFeatures" does not exist.'19$this->source); })()), "sidebarCart", [], "array"falsefalsefalse19) == true))) {
  79.             // line 20
  80.             echo "    ";
  81.             echo twig_include($this->env$context"Includes/SidebarCart.html.twig");
  82.             echo "
  83. ";
  84.         }
  85.         // line 22
  86.         echo "
  87. ";
  88.         // line 23
  89.         $this->loadTemplate("Partials/AgeVerification.html.twig""CoreBundle::pageTemplateDefault.html.twig"23)->display($context);
  90.         // line 24
  91.         echo "
  92. ";
  93.         // line 26
  94.         $this->displayBlock('scripts'$context$blocks);
  95.         // line 30
  96.         echo "<script>var country = '";
  97.         if ((isset($context["country"]) || array_key_exists("country"$context))) {
  98.             echo twig_escape_filter($this->env, (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'30$this->source); })()), "html"nulltrue);
  99.         } else {
  100.             echo "DE";
  101.         }
  102.         echo "';</script>
  103. </body>
  104. </html>
  105. ";
  106.         $this->env->getExtension('Phive\Twig\Extensions\Deferred\DeferredExtension')->resolve($this$context$blocks);
  107.         
  108.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  109.         
  110.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  111.     }
  112.     public function block_scripts($context, array $blocks = [])
  113.     {
  114.         $this->env->getExtension('Phive\Twig\Extensions\Deferred\DeferredExtension')->defer($this'scripts');
  115.     }
  116.     // line 26
  117.     public function block_scripts_deferred($context, array $blocks = [])
  118.     {
  119.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""scripts"));
  121.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""scripts"));
  123.         // line 27
  124.         echo $this->env->getFunction('pimcore_head_script')->getCallable()();
  125.         echo "
  126. ";
  127.         // line 28
  128.         echo twig_include($this->env$context"Includes/footerScripts.html.twig");
  129.         echo "
  130. ";
  131.         
  132.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  133.         
  134.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  135.         $this->env->getExtension('Phive\Twig\Extensions\Deferred\DeferredExtension')->resolve($this$context$blocks);
  136.     }
  137.     public function getTemplateName()
  138.     {
  139.         return "CoreBundle::pageTemplateDefault.html.twig";
  140.     }
  141.     public function isTraitable()
  142.     {
  143.         return false;
  144.     }
  145.     public function getDebugInfo()
  146.     {
  147.         return array (  144 => 28,  140 => 27,  131 => 26,  106 => 30,  104 => 26,  101 => 24,  99 => 23,  96 => 22,  90 => 20,  88 => 19,  83 => 17,  78 => 15,  69 => 9,  55 => 4,  51 => 3,  47 => 2,  44 => 1,);
  148.     }
  149.     public function getSourceContext()
  150.     {
  151.         return new Source("<!DOCTYPE html>
  152. <html lang=\"{{ app.request.locale }}\">
  153. {{ include('Includes/headDefault.html.twig') }}
  154. <body class=\"brand-{% if siteName is defined %}{{ siteName|lower }}{% endif %} {% if editmode %}editmode{% endif %}\">
  155. <header class=\"main-header\">
  156.     <div class=\"navigation\">
  157.         <div class=\"nav-bg has-background\">
  158.             <div class=\"main-content flex-col box-align-center nav-wrapper\">
  159.                 {{ include('Includes/NavMain.html.twig') }}
  160.             </div>
  161.         </div>
  162.     </div>
  163. </header>
  164. <main>
  165.     {{ block('content') }}
  166. </main>
  167. {{ pimcore_inc('/' ~ siteName ~ '/' ~ app.request.locale ~ '/includes/footer') }}
  168. {% if enabledWebsiteFeatures is defined and enabledWebsiteFeatures['sidebarCart'] is defined and enabledWebsiteFeatures['sidebarCart'] == true %}
  169.     {{ include('Includes/SidebarCart.html.twig') }}
  170. {% endif %}
  171. {% include 'Partials/AgeVerification.html.twig' %}
  172. {# output scripts added before #}
  173. {% block scripts deferred %}
  174. {{ pimcore_head_script() }}
  175. {{ include('Includes/footerScripts.html.twig') }}
  176. {% endblock %}
  177. <script>var country = '{% if country is defined %}{{ country }}{% else %}DE{% endif %}';</script>
  178. </body>
  179. </html>
  180. ""CoreBundle::pageTemplateDefault.html.twig""/var/www/share/test.develey/src/CoreBundle/Resources/views/pageTemplateDefault.html.twig");
  181.     }
  182. }