var/cache/dev/twig/2e/2e2b2ea3fefdf2db13c5835c1e7fb31d.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. /* content/tenant_switches.html.twig */
  14. class __TwigTemplate_34d9da803d34ee37befcd64484c4bcc6 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 1
  31.         return "layouts/layout.html.twig";
  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""content/tenant_switches.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""content/tenant_switches.html.twig"));
  40.         $this->parent $this->loadTemplate("layouts/layout.html.twig""content/tenant_switches.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 4
  56.         echo "
  57. <div class=\"row\">
  58.     <div class=\"col-12\">
  59.         <h1>";
  60.         // line 8
  61.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline");
  62.         echo "</h1>
  63.         <h4>Checkout Tenants</h4>
  64.         ";
  65.         // line 13
  66.         $context['_parent'] = $context;
  67.         $context['_seq'] = twig_ensure_traversable((isset($context["checkoutTenants"]) || array_key_exists("checkoutTenants"$context) ? $context["checkoutTenants"] : (function () { throw new RuntimeError('Variable "checkoutTenants" does not exist.'13$this->source); })()));
  68.         foreach ($context['_seq'] as $context["checkoutTenant"] => $context["desc"]) {
  69.             // line 14
  70.             echo "            <a href=\"?change-checkout-tenant=";
  71.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["checkoutTenant"], 14$this->source), "html"nulltrue);
  72.             echo "\" class=\"btn btn-block ";
  73.             echo ((($context["checkoutTenant"] == (isset($context["currentCheckoutTenant"]) || array_key_exists("currentCheckoutTenant"$context) ? $context["currentCheckoutTenant"] : (function () { throw new RuntimeError('Variable "currentCheckoutTenant" does not exist.'14$this->source); })()))) ? ("btn-success") : (""));
  74.             echo " }}\" type=\"button\">
  75.                 ";
  76.             // line 15
  77.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["checkoutTenant"], 15$this->source), "html"nulltrue);
  78.             echo "
  79.                 ";
  80.             // line 17
  81.             if ($context["desc"]) {
  82.                 // line 18
  83.                 echo "                    <br/><small>";
  84.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["desc"], 18$this->source), "html"nulltrue);
  85.                 echo "</small>
  86.                 ";
  87.             }
  88.             // line 20
  89.             echo "            </a>
  90.         ";
  91.         }
  92.         $_parent $context['_parent'];
  93.         unset($context['_seq'], $context['_iterated'], $context['checkoutTenant'], $context['desc'], $context['_parent'], $context['loop']);
  94.         $context array_intersect_key($context$_parent) + $_parent;
  95.         // line 22
  96.         echo "
  97.         <br/><br/>
  98.         <h4>Assortment Tenants</h4>
  99.         ";
  100.         // line 27
  101.         $context['_parent'] = $context;
  102.         $context['_seq'] = twig_ensure_traversable((isset($context["assortmentTenants"]) || array_key_exists("assortmentTenants"$context) ? $context["assortmentTenants"] : (function () { throw new RuntimeError('Variable "assortmentTenants" does not exist.'27$this->source); })()));
  103.         foreach ($context['_seq'] as $context["assortmentTenant"] => $context["desc"]) {
  104.             // line 28
  105.             echo "            <a href=\"?change-assortment-tenant=";
  106.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["assortmentTenant"], 28$this->source), "html"nulltrue);
  107.             echo "\" class=\"btn btn-block ";
  108.             echo ((($context["assortmentTenant"] == (isset($context["currentAssortmentTenant"]) || array_key_exists("currentAssortmentTenant"$context) ? $context["currentAssortmentTenant"] : (function () { throw new RuntimeError('Variable "currentAssortmentTenant" does not exist.'28$this->source); })()))) ? ("btn-success") : (""));
  109.             echo " }}\" type=\"button\">
  110.                 ";
  111.             // line 29
  112.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["assortmentTenant"], 29$this->source), "html"nulltrue);
  113.             echo "
  114.                 ";
  115.             // line 31
  116.             if ($context["desc"]) {
  117.                 // line 32
  118.                 echo "                    <br/><small>";
  119.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["desc"], 32$this->source), "html"nulltrue);
  120.                 echo "</small>
  121.                 ";
  122.             }
  123.             // line 34
  124.             echo "            </a>
  125.         ";
  126.         }
  127.         $_parent $context['_parent'];
  128.         unset($context['_seq'], $context['_iterated'], $context['assortmentTenant'], $context['desc'], $context['_parent'], $context['loop']);
  129.         $context array_intersect_key($context$_parent) + $_parent;
  130.         // line 36
  131.         echo "
  132.     </div>
  133. </div><!-- end row -->
  134. ";
  135.         
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  137.         
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  139.     }
  140.     /**
  141.      * @codeCoverageIgnore
  142.      */
  143.     public function getTemplateName()
  144.     {
  145.         return "content/tenant_switches.html.twig";
  146.     }
  147.     /**
  148.      * @codeCoverageIgnore
  149.      */
  150.     public function isTraitable()
  151.     {
  152.         return false;
  153.     }
  154.     /**
  155.      * @codeCoverageIgnore
  156.      */
  157.     public function getDebugInfo()
  158.     {
  159.         return array (  153 => 36,  146 => 34,  140 => 32,  138 => 31,  133 => 29,  126 => 28,  122 => 27,  115 => 22,  108 => 20,  102 => 18,  100 => 17,  95 => 15,  88 => 14,  84 => 13,  76 => 8,  70 => 4,  60 => 3,  37 => 1,);
  160.     }
  161.     public function getSourceContext()
  162.     {
  163.         return new Source("{% extends 'layouts/layout.html.twig' %}
  164. {% block content %}
  165. <div class=\"row\">
  166.     <div class=\"col-12\">
  167.         <h1>{{ pimcore_input('headline') }}</h1>
  168.         <h4>Checkout Tenants</h4>
  169.         {% for checkoutTenant, desc in checkoutTenants %}
  170.             <a href=\"?change-checkout-tenant={{ checkoutTenant }}\" class=\"btn btn-block {{ checkoutTenant == currentCheckoutTenant ? 'btn-success' : '' }} }}\" type=\"button\">
  171.                 {{ checkoutTenant }}
  172.                 {% if desc %}
  173.                     <br/><small>{{ desc }}</small>
  174.                 {% endif %}
  175.             </a>
  176.         {% endfor %}
  177.         <br/><br/>
  178.         <h4>Assortment Tenants</h4>
  179.         {% for assortmentTenant, desc in assortmentTenants %}
  180.             <a href=\"?change-assortment-tenant={{ assortmentTenant }}\" class=\"btn btn-block {{ assortmentTenant == currentAssortmentTenant ? 'btn-success' : '' }} }}\" type=\"button\">
  181.                 {{ assortmentTenant }}
  182.                 {% if desc %}
  183.                     <br/><small>{{ desc }}</small>
  184.                 {% endif %}
  185.             </a>
  186.         {% endfor %}
  187.     </div>
  188. </div><!-- end row -->
  189. {% endblock %}""content/tenant_switches.html.twig""/var/www/dev-10/templates/content/tenant_switches.html.twig");
  190.     }
  191.     
  192.     public function checkSecurity()
  193.     {
  194.         static $tags = array("for" => 13"if" => 17);
  195.         static $filters = array("escape" => 14);
  196.         static $functions = array("pimcore_input" => 8);
  197.         try {
  198.             $this->sandbox->checkSecurity(
  199.                 ['for''if'],
  200.                 ['escape'],
  201.                 ['pimcore_input']
  202.             );
  203.         } catch (SecurityError $e) {
  204.             $e->setSourceContext($this->source);
  205.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  206.                 $e->setTemplateLine($tags[$e->getTagName()]);
  207.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  208.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  209.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  210.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  211.             }
  212.             throw $e;
  213.         }
  214.     }
  215. }