var/cache/dev/twig/98/98cd034c225dfea4798cf7fb88d52d41.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/partnerprogram_page.html.twig */
  14. class __TwigTemplate_b41be7d64e339b5f39ba2f65f6158993 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/partnerprogram_page.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/partnerprogram_page.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/partnerprogram_page.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.         <div class=\"magazine-landing-placeholder\"></div>
  66.         ";
  67.         // line 11
  68.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""partnerprogram-block", ["allowed" => ["snippet"], "limits" => ["snippet" => 1]]);
  69.         // line 16
  70.         echo "
  71.     </div>
  72. ";
  73.         
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  75.         
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  77.     }
  78.     public function getTemplateName()
  79.     {
  80.         return "default/partnerprogram_page.html.twig";
  81.     }
  82.     public function isTraitable()
  83.     {
  84.         return false;
  85.     }
  86.     public function getDebugInfo()
  87.     {
  88.         return array (  84 => 16,  82 => 11,  78 => 9,  68 => 8,  58 => 6,  55 => 4,  52 => 2,  50 => 1,  37 => 6,);
  89.     }
  90.     public function getSourceContext()
  91.     {
  92.         return new Source("{% if clubsite or (editmode and document.path is defined and '/SeikoClub/' in document.path) %}
  93.     {% set _layout = 'seikoclub/layout.html.twig' %}
  94. {% else %}
  95.     {% set _layout = '@CoreShopFrontend/layout.html.twig' %}
  96. {% endif %}
  97. {% extends _layout %}
  98. {% block content %}
  99.     <div class=\"container\">
  100.         <div class=\"magazine-landing-placeholder\"></div>
  101.         {{ pimcore_areablock('partnerprogram-block', {
  102.             'allowed' : ['snippet'],
  103.             'limits' : {
  104.                 'snippet': 1,
  105.             },
  106.         }) }}
  107.     </div>
  108. {% endblock %}
  109. ""default/partnerprogram_page.html.twig""/home/zoltan/public_html/boutique-v2/templates/default/partnerprogram_page.html.twig");
  110.     }
  111.     
  112.     public function checkSecurity()
  113.     {
  114.         static $tags = array("if" => 1"set" => 2);
  115.         static $filters = array();
  116.         static $functions = array("pimcore_areablock" => 11);
  117.         try {
  118.             $this->sandbox->checkSecurity(
  119.                 ['if''set'],
  120.                 [],
  121.                 ['pimcore_areablock']
  122.             );
  123.         } catch (SecurityError $e) {
  124.             $e->setSourceContext($this->source);
  125.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  126.                 $e->setTemplateLine($tags[$e->getTagName()]);
  127.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  128.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  129.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  130.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  131.             }
  132.             throw $e;
  133.         }
  134.     }
  135. }