var/cache/dev/twig/da/da59f76113d1640635f97fe54706e2e6.php line 40

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. /* default/home.html.twig */
  14. class __TwigTemplate_a23b45f0f6e389c0d3fe01b3b1991b00 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->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 6
  31.         return $this->loadTemplate((isset($context["_layout"]) || array_key_exists("_layout"$context) ? $context["_layout"] : (function () { throw new RuntimeError('Variable "_layout" does not exist.'6$this->source); })()), "default/home.html.twig"6);
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/home.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/home.html.twig"));
  40.         // line 1
  41.         if (((isset($context["clubsite"]) || array_key_exists("clubsite"$context) ? $context["clubsite"] : (function () { throw new RuntimeError('Variable "clubsite" does not exist.'1$this->source); })()) || (((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'1$this->source); })()) && twig_get_attribute($this->env$this->source, ($context["document"] ?? null), "path", [], "any"truetruetrue1)) && twig_in_filter("/SeikoClub/"twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'1$this->source); })()), "path", [], "any"falsefalsetrue1))))) {
  42.             // line 2
  43.             $context["_layout"] = "seikoclub/layout.html.twig";
  44.         } else {
  45.             // line 4
  46.             $context["_layout"] = "@CoreShopFrontend/layout.html.twig";
  47.         }
  48.         // line 6
  49.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  50.         
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  52.         
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  54.     }
  55.     // line 8
  56.     public function block_content($context, array $blocks = [])
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  63.         // line 9
  64.         echo "<div id=\"wrapper\">
  65.     ";
  66.         // line 10
  67.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""homeareablock", ["limits" => ["carousel" => 1"seikoclub" => 1"seikoclubcarousel" => 1]]);
  68.         // line 16
  69.         echo "
  70. </div>
  71. ";
  72.         
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  74.         
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  76.     }
  77.     public function getTemplateName()
  78.     {
  79.         return "default/home.html.twig";
  80.     }
  81.     public function isTraitable()
  82.     {
  83.         return false;
  84.     }
  85.     public function getDebugInfo()
  86.     {
  87.         return array (  83 => 16,  81 => 10,  78 => 9,  68 => 8,  58 => 6,  55 => 4,  52 => 2,  50 => 1,  37 => 6,);
  88.     }
  89.     public function getSourceContext()
  90.     {
  91.         return new Source("{% if clubsite or (editmode and document.path is defined and '/SeikoClub/' in document.path) %}
  92.     {% set _layout = 'seikoclub/layout.html.twig' %}
  93. {% else %}
  94.     {% set _layout = '@CoreShopFrontend/layout.html.twig' %}
  95. {% endif %}
  96. {% extends _layout %}
  97. {% block content %}
  98. <div id=\"wrapper\">
  99.     {{ pimcore_areablock('homeareablock', {
  100.         'limits' : {
  101.             'carousel': 1,
  102.             'seikoclub': 1,
  103.             'seikoclubcarousel': 1,
  104.         }
  105.     }) }}
  106. </div>
  107. {% endblock %}""default/home.html.twig""/home/zoltan/public_html/boutique-v2/templates/default/home.html.twig");
  108.     }
  109.     
  110.     public function checkSecurity()
  111.     {
  112.         static $tags = array("if" => 1"set" => 2);
  113.         static $filters = array();
  114.         static $functions = array("pimcore_areablock" => 10);
  115.         try {
  116.             $this->sandbox->checkSecurity(
  117.                 ['if''set'],
  118.                 [],
  119.                 ['pimcore_areablock']
  120.             );
  121.         } catch (SecurityError $e) {
  122.             $e->setSourceContext($this->source);
  123.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  124.                 $e->setTemplateLine($tags[$e->getTagName()]);
  125.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  126.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  127.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  128.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  129.             }
  130.             throw $e;
  131.         }
  132.     }
  133. }