var/cache/dev/twig/9a/9aa19bc53e46c4753ae3f54d54aed9ab.php line 48

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_e709e198aed4699b87809d07111e567e 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.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "layouts/layout.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/tenant_switches.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/tenant_switches.html.twig"));
  38.         $this->parent $this->loadTemplate("layouts/layout.html.twig""content/tenant_switches.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 3
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 4
  54.         echo "
  55. <div class=\"row\">
  56.     <div class=\"col-12\">
  57.         <h1>";
  58.         // line 8
  59.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline");
  60.         echo "</h1>
  61.         <h4>Checkout Tenants</h4>
  62.         ";
  63.         // line 13
  64.         $context['_parent'] = $context;
  65.         $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); })()));
  66.         foreach ($context['_seq'] as $context["checkoutTenant"] => $context["desc"]) {
  67.             // line 14
  68.             echo "            <a href=\"?change-checkout-tenant=";
  69.             echo twig_escape_filter($this->env$context["checkoutTenant"], "html"nulltrue);
  70.             echo "\" class=\"btn btn-block ";
  71.             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") : (""));
  72.             echo " }}\" type=\"button\">
  73.                 ";
  74.             // line 15
  75.             echo twig_escape_filter($this->env$context["checkoutTenant"], "html"nulltrue);
  76.             echo "
  77.                 ";
  78.             // line 17
  79.             if ($context["desc"]) {
  80.                 // line 18
  81.                 echo "                    <br/><small>";
  82.                 echo twig_escape_filter($this->env$context["desc"], "html"nulltrue);
  83.                 echo "</small>
  84.                 ";
  85.             }
  86.             // line 20
  87.             echo "            </a>
  88.         ";
  89.         }
  90.         $_parent $context['_parent'];
  91.         unset($context['_seq'], $context['_iterated'], $context['checkoutTenant'], $context['desc'], $context['_parent'], $context['loop']);
  92.         $context array_intersect_key($context$_parent) + $_parent;
  93.         // line 22
  94.         echo "
  95.         <br/><br/>
  96.         <h4>Assortment Tenants</h4>
  97.         ";
  98.         // line 27
  99.         $context['_parent'] = $context;
  100.         $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); })()));
  101.         foreach ($context['_seq'] as $context["assortmentTenant"] => $context["desc"]) {
  102.             // line 28
  103.             echo "            <a href=\"?change-assortment-tenant=";
  104.             echo twig_escape_filter($this->env$context["assortmentTenant"], "html"nulltrue);
  105.             echo "\" class=\"btn btn-block ";
  106.             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") : (""));
  107.             echo " }}\" type=\"button\">
  108.                 ";
  109.             // line 29
  110.             echo twig_escape_filter($this->env$context["assortmentTenant"], "html"nulltrue);
  111.             echo "
  112.                 ";
  113.             // line 31
  114.             if ($context["desc"]) {
  115.                 // line 32
  116.                 echo "                    <br/><small>";
  117.                 echo twig_escape_filter($this->env$context["desc"], "html"nulltrue);
  118.                 echo "</small>
  119.                 ";
  120.             }
  121.             // line 34
  122.             echo "            </a>
  123.         ";
  124.         }
  125.         $_parent $context['_parent'];
  126.         unset($context['_seq'], $context['_iterated'], $context['assortmentTenant'], $context['desc'], $context['_parent'], $context['loop']);
  127.         $context array_intersect_key($context$_parent) + $_parent;
  128.         // line 36
  129.         echo "
  130.     </div>
  131. </div><!-- end row -->
  132. ";
  133.         
  134.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  135.         
  136.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  137.     }
  138.     public function getTemplateName()
  139.     {
  140.         return "content/tenant_switches.html.twig";
  141.     }
  142.     public function isTraitable()
  143.     {
  144.         return false;
  145.     }
  146.     public function getDebugInfo()
  147.     {
  148.         return array (  151 => 36,  144 => 34,  138 => 32,  136 => 31,  131 => 29,  124 => 28,  120 => 27,  113 => 22,  106 => 20,  100 => 18,  98 => 17,  93 => 15,  86 => 14,  82 => 13,  74 => 8,  68 => 4,  58 => 3,  35 => 1,);
  149.     }
  150.     public function getSourceContext()
  151.     {
  152.         return new Source("{% extends 'layouts/layout.html.twig' %}
  153. {% block content %}
  154. <div class=\"row\">
  155.     <div class=\"col-12\">
  156.         <h1>{{ pimcore_input('headline') }}</h1>
  157.         <h4>Checkout Tenants</h4>
  158.         {% for checkoutTenant, desc in checkoutTenants %}
  159.             <a href=\"?change-checkout-tenant={{ checkoutTenant }}\" class=\"btn btn-block {{ checkoutTenant == currentCheckoutTenant ? 'btn-success' : '' }} }}\" type=\"button\">
  160.                 {{ checkoutTenant }}
  161.                 {% if desc %}
  162.                     <br/><small>{{ desc }}</small>
  163.                 {% endif %}
  164.             </a>
  165.         {% endfor %}
  166.         <br/><br/>
  167.         <h4>Assortment Tenants</h4>
  168.         {% for assortmentTenant, desc in assortmentTenants %}
  169.             <a href=\"?change-assortment-tenant={{ assortmentTenant }}\" class=\"btn btn-block {{ assortmentTenant == currentAssortmentTenant ? 'btn-success' : '' }} }}\" type=\"button\">
  170.                 {{ assortmentTenant }}
  171.                 {% if desc %}
  172.                     <br/><small>{{ desc }}</small>
  173.                 {% endif %}
  174.             </a>
  175.         {% endfor %}
  176.     </div>
  177. </div><!-- end row -->
  178. {% endblock %}""content/tenant_switches.html.twig""/www/htdocs/w0189996/pimcore-demo/templates/content/tenant_switches.html.twig");
  179.     }
  180. }