var/cache/dev/twig/15/15ba1ba686388859a8cd865c6b6577d4.php line 58

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/article.html.twig */
  14. class __TwigTemplate_52e161da4f0c3795c14e1e63c2edf527 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/article.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/article.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/article.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 class=\"container\">
  65.         ";
  66.         // line 10
  67.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""articleblock", ["allowed" => ["article"], "limits" => ["article" => 1]]);
  68.         // line 15
  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/article.html.twig";
  80.     }
  81.     public function isTraitable()
  82.     {
  83.         return false;
  84.     }
  85.     public function getDebugInfo()
  86.     {
  87.         return array (  83 => 15,  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 class=\"container\">
  99.         {{ pimcore_areablock('articleblock', {
  100.             'allowed' : ['article'],
  101.             'limits' : {
  102.                 'article': 1,
  103.             }
  104.         }) }}
  105.     </div>
  106. {% endblock %}""default/article.html.twig""/home/zoltan/public_html/boutique-v2/templates/default/article.html.twig");
  107.     }
  108.     
  109.     public function checkSecurity()
  110.     {
  111.         static $tags = array("if" => 1"set" => 2);
  112.         static $filters = array();
  113.         static $functions = array("pimcore_areablock" => 10);
  114.         try {
  115.             $this->sandbox->checkSecurity(
  116.                 ['if''set'],
  117.                 [],
  118.                 ['pimcore_areablock']
  119.             );
  120.         } catch (SecurityError $e) {
  121.             $e->setSourceContext($this->source);
  122.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  123.                 $e->setTemplateLine($tags[$e->getTagName()]);
  124.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  125.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  126.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  127.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  128.             }
  129.             throw $e;
  130.         }
  131.     }
  132. }