var/cache/dev/twig/f3/f345c72bd5cee776e1d200bcde5e6eb73b1c0df52b8d3cbeebe5b10cc991424a.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\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* areas/footer-brick/partials/_column_product_categories.html.twig */
  16. class __TwigTemplate_e3ed414b1fe33c8768b72a65003ecdc6dd4d0c7d4022229138b058534bbbda56 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = []): iterable
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/footer-brick/partials/_column_product_categories.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/footer-brick/partials/_column_product_categories.html.twig"));
  40.         // line 1
  41.         yield "<div class=\"px-5 pb-4 -mx-5 border-b border-white md:pb-6 sm:mx-0 sm:px-0 border-opacity-10 sm:border-none sm:pb-0\"
  42.     x-data=\"{ open: false }\"
  43.     >
  44.     <div class=\"flex items-center justify-between cursor-pointer sm:mb-6 sm:cursor-none\"
  45.          @click=\"open = !open\"
  46.          :class=\"{ 'mb-6' : open }\"
  47.     >
  48.         <h4 class=\"text-lg md:text-2xl\">";
  49.         // line 8
  50.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Onze oplossingen"), "html"nulltrue);
  51.         yield "</h4>
  52.         <span
  53.             class=\"flex items-center justify-center w-5 h-3 transition-all duration-300 sm:hidden shrink-0\"
  54.             :class=\"{ 'rotate-180' : open }\"
  55.         >
  56.             <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 17 10\">
  57.                 <path fill=\"#8A8D94\" fill-rule=\"evenodd\"
  58.                         d=\"m.389 2.36 6.73 6.963c.24.25.576.39.926.39.35 0 .685-.14.925-.39l6.732-6.963a1.206 1.206 0 0 0-.067-1.749l-.113-.09a1.297 1.297 0 0 0-1.67.154l-5.807 6.01L2.239.677A1.295 1.295 0 0 0 .456.612 1.204 1.204 0 0 0 .39 2.36H.389Z\"/>
  59.             </svg>
  60.         </span>
  61.     </div>
  62.     <div class=\"block overflow-hidden max-h-0 sm:max-h-max\"
  63.          :style=\"open ? `max-height: 100%` : ``\"
  64.     >
  65.         ";
  66.         // line 22
  67.         if ( !Twig\Extension\CoreExtension::testEmpty($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""product-categories"))) {
  68.             // line 23
  69.             yield "            <ul>
  70.                 ";
  71.             // line 24
  72.             $context['_parent'] = $context;
  73.             $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""product-categories"));
  74.             foreach ($context['_seq'] as $context["_key"] => $context["productCategory"]) {
  75.                 // line 25
  76.                 yield "                    <li>
  77.                         ";
  78.                 // line 26
  79.                 if ((CoreExtension::getAttribute($this->env$this->source$context["productCategory"], "page", [], "any"truetruetrue26) && CoreExtension::getAttribute($this->env$this->source$context["productCategory"], "page", [], "any"falsefalsetrue26))) {
  80.                     // line 27
  81.                     yield "                            <a href=\"";
  82.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\UrlExtension']->trimUrl((((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["productCategory"], "page", [], "any"falsetruetrue27), "url", [], "any"truetruetrue27) &&  !(null === CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["productCategory"], "page", [], "any"falsetruetrue27), "url", [], "any"falsefalsetrue27)))) ? (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["productCategory"], "page", [], "any"falsetruetrue27), "url", [], "any"falsefalsetrue27)) : (null))), "html"nulltrue);
  83.                     yield "\" class=\"flex items-center mr-3 hover:text-blue\">
  84.                                 ";
  85.                     // line 28
  86.                     if (CoreExtension::getAttribute($this->env$this->source$context["productCategory"], "icon", [], "any"falsefalsetrue28)) {
  87.                         // line 29
  88.                         yield "                                    ";
  89.                         yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["productCategory"], "icon", [], "any"falsefalsetrue29), "thumbnail", ["default"], "method"falsefalsetrue29), "html", [["pictureAttributes" => ["class" => "inline w-6 h-6 mr-3"]]], "method"falsefalsetrue29), 29$this->source);
  90.                         // line 33
  91.                         yield "
  92.                                 ";
  93.                     }
  94.                     // line 35
  95.                     yield "                                ";
  96.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["productCategory"], "getTitle", [], "method"falsefalsetrue35), 35$this->source), "html"nulltrue);
  97.                     yield "
  98.                             </a>
  99.                         ";
  100.                 }
  101.                 // line 38
  102.                 yield "                    </li>
  103.                 ";
  104.             }
  105.             $_parent $context['_parent'];
  106.             unset($context['_seq'], $context['_key'], $context['productCategory'], $context['_parent']);
  107.             $context array_intersect_key($context$_parent) + $_parent;
  108.             // line 40
  109.             yield "            </ul>
  110.         ";
  111.         }
  112.         // line 42
  113.         yield "    </div>
  114. </div>
  115. ";
  116.         
  117.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  118.         
  119.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  120.         yield from [];
  121.     }
  122.     /**
  123.      * @codeCoverageIgnore
  124.      */
  125.     public function getTemplateName(): string
  126.     {
  127.         return "areas/footer-brick/partials/_column_product_categories.html.twig";
  128.     }
  129.     /**
  130.      * @codeCoverageIgnore
  131.      */
  132.     public function isTraitable(): bool
  133.     {
  134.         return false;
  135.     }
  136.     /**
  137.      * @codeCoverageIgnore
  138.      */
  139.     public function getDebugInfo(): array
  140.     {
  141.         return array (  122 => 42,  118 => 40,  111 => 38,  104 => 35,  100 => 33,  97 => 29,  95 => 28,  90 => 27,  88 => 26,  85 => 25,  81 => 24,  78 => 23,  76 => 22,  59 => 8,  50 => 1,);
  142.     }
  143.     public function getSourceContext(): Source
  144.     {
  145.         return new Source("<div class=\"px-5 pb-4 -mx-5 border-b border-white md:pb-6 sm:mx-0 sm:px-0 border-opacity-10 sm:border-none sm:pb-0\"
  146.     x-data=\"{ open: false }\"
  147.     >
  148.     <div class=\"flex items-center justify-between cursor-pointer sm:mb-6 sm:cursor-none\"
  149.          @click=\"open = !open\"
  150.          :class=\"{ 'mb-6' : open }\"
  151.     >
  152.         <h4 class=\"text-lg md:text-2xl\">{{ \"Onze oplossingen\"|trans }}</h4>
  153.         <span
  154.             class=\"flex items-center justify-center w-5 h-3 transition-all duration-300 sm:hidden shrink-0\"
  155.             :class=\"{ 'rotate-180' : open }\"
  156.         >
  157.             <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 17 10\">
  158.                 <path fill=\"#8A8D94\" fill-rule=\"evenodd\"
  159.                         d=\"m.389 2.36 6.73 6.963c.24.25.576.39.926.39.35 0 .685-.14.925-.39l6.732-6.963a1.206 1.206 0 0 0-.067-1.749l-.113-.09a1.297 1.297 0 0 0-1.67.154l-5.807 6.01L2.239.677A1.295 1.295 0 0 0 .456.612 1.204 1.204 0 0 0 .39 2.36H.389Z\"/>
  160.             </svg>
  161.         </span>
  162.     </div>
  163.     <div class=\"block overflow-hidden max-h-0 sm:max-h-max\"
  164.          :style=\"open ? `max-height: 100%` : ``\"
  165.     >
  166.         {% if pimcore_relations(\"product-categories\") is not empty %}
  167.             <ul>
  168.                 {% for productCategory in pimcore_relations(\"product-categories\") %}
  169.                     <li>
  170.                         {% if productCategory.page is defined and productCategory.page %}
  171.                             <a href=\"{{ (productCategory.page.url ?? null) | trimUrl }}\" class=\"flex items-center mr-3 hover:text-blue\">
  172.                                 {% if productCategory.icon %}
  173.                                     {{ productCategory.icon.thumbnail('default').html({
  174.                                         'pictureAttributes':{
  175.                                             'class': \"inline w-6 h-6 mr-3\"
  176.                                         }
  177.                                     })|raw }}
  178.                                 {% endif %}
  179.                                 {{ productCategory.getTitle() }}
  180.                             </a>
  181.                         {% endif %}
  182.                     </li>
  183.                 {% endfor %}
  184.             </ul>
  185.         {% endif %}
  186.     </div>
  187. </div>
  188. ""areas/footer-brick/partials/_column_product_categories.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/footer-brick/partials/_column_product_categories.html.twig");
  189.     }
  190.     
  191.     public function checkSecurity()
  192.     {
  193.         static $tags = ["if" => 22"for" => 24];
  194.         static $filters = ["escape" => 8"trans" => 8"trimUrl" => 27"raw" => 33];
  195.         static $functions = ["pimcore_relations" => 22];
  196.         try {
  197.             $this->sandbox->checkSecurity(
  198.                 ['if''for'],
  199.                 ['escape''trans''trimUrl''raw'],
  200.                 ['pimcore_relations'],
  201.                 $this->source
  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. }