var/cache/dev/twig/19/19a7109921cfd0eb5973e81719f9f8cf859de6ebcd0d3e01a5217d15e8b04b02.php line 105

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. /* @SyliusShop/Product/index.html.twig */
  14. class __TwigTemplate_8d216844271f1183fe9707edf901499b625f4fe7bf3870e6344d11f0236c7774 extends \Twig\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.             'stylesheets' => [$this'block_stylesheets'],
  24.             'javascripts' => [$this'block_javascripts'],
  25.             'title' => [$this'block_title'],
  26.             'breadcrumb' => [$this'block_breadcrumb'],
  27.             'content' => [$this'block_content'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "@SyliusShop/layout.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/index.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/index.html.twig"));
  42.         // line 3
  43.         $context["taxon"] = $this->extensions['App\Twig\TaxonExtension']->getTaxonBySlug(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "attributes", [], "any"falsefalsefalse3), "get", [=> "slug"], "method"falsefalsefalse3), twig_get_attribute($this->env$this->source, (isset($context["sylius"]) || array_key_exists("sylius"$context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.'3$this->source); })()), "localeCode", [], "any"falsefalsefalse3));
  44.         // line 4
  45.         $context["menuTaxons"] = $this->extensions['App\Twig\TaxonExtension']->getMenuTaxonBySlug((isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'4$this->source); })()), twig_get_attribute($this->env$this->source, (isset($context["sylius"]) || array_key_exists("sylius"$context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.'4$this->source); })()), "localeCode", [], "any"falsefalsefalse4));
  46.         // line 1
  47.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/Product/index.html.twig"1);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  51.         
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  53.     }
  54.     // line 6
  55.     public function block_stylesheets($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  62.         // line 7
  63.         echo "    ";
  64.         $this->displayParentBlock("stylesheets"$context$blocks);
  65.         echo "
  66.     ";
  67.         // line 8
  68.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("shop-category-view"null"bootstrapTheme");
  69.         echo "
  70. ";
  71.         
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  73.         
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  75.     }
  76.     // line 11
  77.     public function block_javascripts($context, array $blocks = [])
  78.     {
  79.         $macros $this->macros;
  80.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  84.         // line 12
  85.         echo "    ";
  86.         $this->displayParentBlock("javascripts"$context$blocks);
  87.         echo "
  88.     ";
  89.         // line 13
  90.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("shop-category-view"null"bootstrapTheme");
  91.         echo "
  92. ";
  93.         
  94.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  95.         
  96.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  97.     }
  98.     // line 16
  99.     public function block_title($context, array $blocks = [])
  100.     {
  101.         $macros $this->macros;
  102.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  103.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  104.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  105.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  106.         // line 17
  107.         echo "    ";
  108.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("dedi_sylius_seo_plugin.title", ["resource" => (($context["taxon"]) ?? ((($context["product"]) ?? (twig_get_attribute($this->env$this->source, (isset($context["sylius"]) || array_key_exists("sylius"$context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.'17$this->source); })()), "channel", [], "any"falsefalsefalse17))))), "title" => (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'17$this->source); })())]);
  109.         echo "
  110. ";
  111.         
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  113.         
  114.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  115.     }
  116.     // line 20
  117.     public function block_breadcrumb($context, array $blocks = [])
  118.     {
  119.         $macros $this->macros;
  120.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  121.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  122.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  123.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  124.         // line 21
  125.         echo "    ";
  126.         $this->loadTemplate("@SyliusShop/Taxon/_breadcrumb.html.twig""@SyliusShop/Product/index.html.twig"21)->display($context);
  127.         
  128.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  129.         
  130.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  131.     }
  132.     // line 24
  133.     public function block_content($context, array $blocks = [])
  134.     {
  135.         $macros $this->macros;
  136.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  138.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  139.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  140.         // line 25
  141.         echo "    ";
  142.         // line 26
  143.         echo "
  144.     ";
  145.         // line 27
  146.         $this->loadTemplate("@SyliusShop/_tracking/data_layer.html.twig""@SyliusShop/Product/index.html.twig"27)->display($context);
  147.         // line 28
  148.         echo "
  149.     ";
  150.         // line 30
  151.         if ((twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'30$this->source); })()), "isRoot", [], "method"falsefalsefalse30) && twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'30$this->source); })()), "code", [], "any"falsefalsefalse30))) {
  152.             // line 31
  153.             echo "        <div class=\"catalog catalog-all\">
  154.             ";
  155.             // line 32
  156.             $this->loadTemplate("@SyliusShop/Product/Index/_all_categories.html.twig""@SyliusShop/Product/index.html.twig"32)->display(twig_array_merge($context, ["taxon" => (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'32$this->source); })())]));
  157.             // line 33
  158.             echo "        </div>
  159.     ";
  160.         } elseif ((twig_get_attribute($this->env$this->source,         // line 34
  161. (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'34$this->source); })()), "parent", [], "any"falsefalsefalse34) &&  !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'34$this->source); })()), "parent", [], "any"falsefalsefalse34), "isRoot", [], "method"falsefalsefalse34))) {
  162.             // line 35
  163.             echo "
  164.         <div class=\"row taxons\">
  165.             <div class=\"d-none d-md-block col-md-4 col-lg-3 col-xl-3 col-xxl-2\">
  166.                 ";
  167.             // line 38
  168.             $this->loadTemplate("@SyliusShop/Product/Index/_sidebar.html.twig""@SyliusShop/Product/index.html.twig"38)->display($context);
  169.             // line 39
  170.             echo "            </div>
  171.             <div class=\"col-12 col-md-8 col-lg-9 col-xxl-10\">
  172.                 <h1 class=\"taxon-title\">";
  173.             // line 41
  174.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'41$this->source); })()), "name", [], "any"falsefalsefalse41), "html"nulltrue);
  175.             echo "</h1>
  176.                 ";
  177.             // line 42
  178.             if (twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'42$this->source); })()), "description", [], "any"falsefalsefalse42)) {
  179.                 // line 43
  180.                 echo "                    <div class=\"taxon-description\">";
  181.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'43$this->source); })()), "description", [], "any"falsefalsefalse43), "html"nulltrue);
  182.                 echo "</div>
  183.                 ";
  184.             }
  185.             // line 45
  186.             echo "
  187.                 ";
  188.             // line 46
  189.             $context["taxonChildren"] = twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'46$this->source); })()), "children", [], "any"falsefalsefalse46);
  190.             // line 47
  191.             echo "                ";
  192.             if (twig_length_filter($this->env, (isset($context["taxonChildren"]) || array_key_exists("taxonChildren"$context) ? $context["taxonChildren"] : (function () { throw new RuntimeError('Variable "taxonChildren" does not exist.'47$this->source); })()))) {
  193.                 // line 48
  194.                 echo "                    <h4 class=\"title d-md-none\">";
  195.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.taxon.subtaxons"), "html"nulltrue);
  196.                 echo "</h4>
  197.                     <div class=\"subtaxons row row-cols-2 g-3 mb-5 row-cols-sm-3 d-md-none\">
  198.                         ";
  199.                 // line 51
  200.                 $context['_parent'] = $context;
  201.                 $context['_seq'] = twig_ensure_traversable((isset($context["taxonChildren"]) || array_key_exists("taxonChildren"$context) ? $context["taxonChildren"] : (function () { throw new RuntimeError('Variable "taxonChildren" does not exist.'51$this->source); })()));
  202.                 foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  203.                     // line 52
  204.                     echo "                            ";
  205.                     if (twig_get_attribute($this->env$this->source$context["child"], "enabled", [], "any"falsefalsefalse52)) {
  206.                         // line 53
  207.                         echo "                                <div class=\"subtaxons-item col\">
  208.                                     <a class=\"subtaxons-link d-flex align-items-center h-100 p-3 border rounded link-no-decoration cfs-7 lh-1 fw-normal\" href=\"";
  209.                         // line 54
  210.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_index", ["slug" => ((twig_get_attribute($this->env$this->source$context["child"], "redirect", [], "any"falsefalsefalse54)) ? (twig_get_attribute($this->env$this->source$context["child"], "redirect", [], "any"falsefalsefalse54)) : (twig_get_attribute($this->env$this->source$context["child"], "slug", [], "any"falsefalsefalse54))), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["child"], "translation", [], "any"falsefalsefalse54), "locale", [], "any"falsefalsefalse54)]), "html"nulltrue);
  211.                         echo "\">";
  212.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["child"], "name", [], "any"falsefalsefalse54), "html"nulltrue);
  213.                         echo "</a>
  214.                                 </div>
  215.                             ";
  216.                     }
  217.                     // line 57
  218.                     echo "                        ";
  219.                 }
  220.                 $_parent $context['_parent'];
  221.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  222.                 $context array_intersect_key($context$_parent) + $_parent;
  223.                 // line 58
  224.                 echo "                    </div>
  225.                 ";
  226.             }
  227.             // line 60
  228.             echo "
  229.                 ";
  230.             // line 61
  231.             $this->loadTemplate("@SyliusShop/Product/Index/_main.html.twig""@SyliusShop/Product/index.html.twig"61)->display(twig_array_merge($context, ["taxon" => (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'61$this->source); })())]));
  232.             // line 62
  233.             echo "            </div>
  234.         </div>
  235.     ";
  236.         } elseif ((twig_get_attribute($this->env$this->source,         // line 64
  237. (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'64$this->source); })()), "parent", [], "any"falsefalsefalse64) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'64$this->source); })()), "parent", [], "any"falsefalsefalse64), "isRoot", [], "method"falsefalsefalse64))) {
  238.             // line 65
  239.             echo "        <div class=\"catalog catalog-taxon\">
  240.             ";
  241.             // line 67
  242.             echo "            <div class=\"taxon mb-4\">
  243.                 <h1 class=\"custom-display-4 text-center\">";
  244.             // line 68
  245.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'68$this->source); })()), "name", [], "any"falsefalsefalse68), "html"nulltrue);
  246.             echo "</h1>
  247.                 ";
  248.             // line 69
  249.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'69$this->source); })()), "description", [], "any"falsefalsefalse69))) {
  250.                 // line 70
  251.                 echo "                    <div class=\"description\">
  252.                         ";
  253.                 // line 71
  254.                 echo twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'71$this->source); })()), "description", [], "any"falsefalsefalse71);
  255.                 echo "
  256.                     </div>
  257.                 ";
  258.             }
  259.             // line 74
  260.             echo "            </div>
  261.             ";
  262.             // line 76
  263.             $context['_parent'] = $context;
  264.             $context['_seq'] = twig_ensure_traversable((isset($context["menuTaxons"]) || array_key_exists("menuTaxons"$context) ? $context["menuTaxons"] : (function () { throw new RuntimeError('Variable "menuTaxons" does not exist.'76$this->source); })()));
  265.             $context['loop'] = [
  266.               'parent' => $context['_parent'],
  267.               'index0' => 0,
  268.               'index'  => 1,
  269.               'first'  => true,
  270.             ];
  271.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  272.                 $length count($context['_seq']);
  273.                 $context['loop']['revindex0'] = $length 1;
  274.                 $context['loop']['revindex'] = $length;
  275.                 $context['loop']['length'] = $length;
  276.                 $context['loop']['last'] = === $length;
  277.             }
  278.             foreach ($context['_seq'] as $context["_key"] => $context["taxonItem"]) {
  279.                 // line 77
  280.                 echo "                ";
  281.                 // line 78
  282.                 echo "                ";
  283.                 $context["taxonItemImage"] =  !twig_test_empty(twig_get_attribute($this->env$this->source$context["taxonItem"], "imagesByType", [=> "catalog"], "method"falsefalsefalse78));
  284.                 // line 79
  285.                 echo "                <div class=\"taxon-item row py-4";
  286.                 if ( !twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse79)) {
  287.                     echo " mt-6";
  288.                 }
  289.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse79) % != 0)) {
  290.                     echo " bg-light";
  291.                 }
  292.                 echo "\">
  293.                     ";
  294.                 // line 80
  295.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["taxonItem"], "imagesByType", [=> "catalog"], "method"falsefalsefalse80))) {
  296.                     // line 81
  297.                     echo "                        <div class=\"taxon-item-img-wrap d-none d-lg-block col-lg-6 col-xxxxl-5 col-xxxxxl-4 ps-lg-4\">
  298.                             <a href=\"";
  299.                     // line 82
  300.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_index", ["slug" => ((twig_get_attribute($this->env$this->source$context["taxonItem"], "redirect", [], "any"falsefalsefalse82)) ? (twig_get_attribute($this->env$this->source$context["taxonItem"], "redirect", [], "any"falsefalsefalse82)) : (twig_get_attribute($this->env$this->source$context["taxonItem"], "slug", [], "any"falsefalsefalse82))), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["taxonItem"], "translation", [], "any"falsefalsefalse82), "locale", [], "any"falsefalsefalse82)]), "html"nulltrue);
  301.                     echo "\">
  302.                                 ";
  303.                     // line 84
  304.                     echo "                                ";
  305.                     // line 85
  306.                     echo "                                ";
  307.                     // line 86
  308.                     echo "                                ";
  309.                     // line 87
  310.                     echo "                                ";
  311.                     // line 88
  312.                     echo "                                <img class=\"taxon-item-img lazy\" src=\"";
  313.                     echo twig_escape_filter($this->env$this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["taxonItem"], "imagesByType", [=> "catalog"], "method"falsefalsefalse88), "first", [], "any"falsefalsefalse88), "path", [], "any"falsefalsefalse88), "app_shop_taxon_catalog_desktop_small"), "html"nulltrue);
  314.                     echo "\" data-src=\"";
  315.                     echo twig_escape_filter($this->env$this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["taxonItem"], "imagesByType", [=> "catalog"], "method"falsefalsefalse88), "first", [], "any"falsefalsefalse88), "path", [], "any"falsefalsefalse88), "app_shop_taxon_catalog_desktop"), "html"nulltrue);
  316.                     echo "\" alt=\"";
  317.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["taxonItem"], "name", [], "any"falsefalsefalse88), "html"nulltrue);
  318.                     echo "\">
  319.                             </a>
  320.                         </div>
  321.                     ";
  322.                 }
  323.                 // line 92
  324.                 echo "                    <div class=\"taxon-item-text d-flex flex-column justify-content-center col-lg-6 col-xxxxl-7 col-xxxxxl-8";
  325.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse92) % != 0)) {
  326.                     echo " order-lg-first";
  327.                 }
  328.                 echo "\">
  329.                         <div class=\"taxon-item-text-content";
  330.                 // line 93
  331.                 echo "\">
  332.                             <h2 class=\"taxon-item-title custom-display-7 mb-0 text-center d-flex flex-column justify-content-center text-lg-start\"
  333.                                 onclick=\"window.location.href='";
  334.                 // line 95
  335.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_index", ["slug" => ((twig_get_attribute($this->env$this->source$context["taxonItem"], "redirect", [], "any"falsefalsefalse95)) ? (twig_get_attribute($this->env$this->source$context["taxonItem"], "redirect", [], "any"falsefalsefalse95)) : (twig_get_attribute($this->env$this->source$context["taxonItem"], "slug", [], "any"falsefalsefalse95))), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["taxonItem"], "translation", [], "any"falsefalsefalse95), "locale", [], "any"falsefalsefalse95)]), "html"nulltrue);
  336.                 echo "'\"
  337.                                 ";
  338.                 // line 96
  339.                 if ((isset($context["taxonItemImage"]) || array_key_exists("taxonItemImage"$context) ? $context["taxonItemImage"] : (function () { throw new RuntimeError('Variable "taxonItemImage" does not exist.'96$this->source); })())) {
  340.                     echo "style=\"background-image: url(";
  341.                     echo twig_escape_filter($this->env$this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["taxonItem"], "imagesByType", [=> "catalog"], "method"falsefalsefalse96), "first", [], "any"falsefalsefalse96), "path", [], "any"falsefalsefalse96), "app_shop_taxon_catalog_mobile"), "html"nulltrue);
  342.                     echo ");\"";
  343.                 }
  344.                 // line 97
  345.                 echo "                            >
  346.                                 <span class=\"taxon-item-title-text\">";
  347.                 // line 98
  348.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["taxonItem"], "name", [], "any"falsefalsefalse98), "html"nulltrue);
  349.                 echo "</span>
  350.                             </h2>
  351.                             ";
  352.                 // line 100
  353.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["taxonItem"], "description", [], "any"falsefalsefalse100))) {
  354.                     // line 101
  355.                     echo "                                <div class=\"description fw-normal mt-3\">";
  356.                     echo twig_get_attribute($this->env$this->source$context["taxonItem"], "description", [], "any"falsefalsefalse101);
  357.                     echo "</div>
  358.                             ";
  359.                 }
  360.                 // line 103
  361.                 echo "
  362.                             ";
  363.                 // line 104
  364.                 echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_shop_products_by_label_code_and_taxon_slug", ["labelCode" => "top""taxonSlug" => ((twig_get_attribute($this->env$this->source,                 // line 106
  365. $context["taxonItem"], "redirect", [], "any"falsefalsefalse106)) ? (twig_get_attribute($this->env$this->source$context["taxonItem"], "redirect", [], "any"falsefalsefalse106)) : (twig_get_attribute($this->env$this->source$context["taxonItem"], "slug", [], "any"falsefalsefalse106))), "count" => 20"template" => "@SyliusShop/Product/Box/_top_products_slider.html.twig""taxonName" => twig_get_attribute($this->env$this->source,                 // line 109
  366. $context["taxonItem"], "name", [], "any"falsefalsefalse109), "taxonCode" => twig_get_attribute($this->env$this->source,                 // line 110
  367. $context["taxonItem"], "code", [], "any"falsefalsefalse110)]));
  368.                 // line 111
  369.                 echo "
  370.                         </div>
  371.                     </div>
  372.                     ";
  373.                 // line 118
  374.                 echo "                    ";
  375.                 // line 119
  376.                 echo "                    ";
  377.                 // line 120
  378.                 echo "
  379.                     ";
  380.                 // line 122
  381.                 echo "                    ";
  382.                 // line 123
  383.                 echo "                    ";
  384.                 // line 124
  385.                 echo "                </div>
  386.             ";
  387.                 ++$context['loop']['index0'];
  388.                 ++$context['loop']['index'];
  389.                 $context['loop']['first'] = false;
  390.                 if (isset($context['loop']['length'])) {
  391.                     --$context['loop']['revindex0'];
  392.                     --$context['loop']['revindex'];
  393.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  394.                 }
  395.             }
  396.             $_parent $context['_parent'];
  397.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taxonItem'], $context['_parent'], $context['loop']);
  398.             $context array_intersect_key($context$_parent) + $_parent;
  399.             // line 127
  400.             echo "        </div>
  401.     ";
  402.         }
  403.         
  404.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  405.         
  406.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  407.     }
  408.     public function getTemplateName()
  409.     {
  410.         return "@SyliusShop/Product/index.html.twig";
  411.     }
  412.     public function isTraitable()
  413.     {
  414.         return false;
  415.     }
  416.     public function getDebugInfo()
  417.     {
  418.         return array (  441 => 127,  425 => 124,  423 => 123,  421 => 122,  418 => 120,  416 => 119,  414 => 118,  406 => 111,  404 => 110,  403 => 109,  402 => 106,  401 => 104,  398 => 103,  392 => 101,  390 => 100,  385 => 98,  382 => 97,  376 => 96,  372 => 95,  368 => 93,  361 => 92,  349 => 88,  347 => 87,  345 => 86,  343 => 85,  341 => 84,  337 => 82,  334 => 81,  332 => 80,  322 => 79,  319 => 78,  317 => 77,  300 => 76,  296 => 74,  290 => 71,  287 => 70,  285 => 69,  281 => 68,  278 => 67,  275 => 65,  273 => 64,  269 => 62,  267 => 61,  264 => 60,  260 => 58,  254 => 57,  246 => 54,  243 => 53,  240 => 52,  236 => 51,  229 => 48,  226 => 47,  224 => 46,  221 => 45,  215 => 43,  213 => 42,  209 => 41,  205 => 39,  203 => 38,  198 => 35,  196 => 34,  193 => 33,  191 => 32,  188 => 31,  186 => 30,  182 => 28,  180 => 27,  177 => 26,  175 => 25,  165 => 24,  154 => 21,  144 => 20,  131 => 17,  121 => 16,  109 => 13,  104 => 12,  94 => 11,  82 => 8,  77 => 7,  67 => 6,  56 => 1,  54 => 4,  52 => 3,  39 => 1,);
  419.     }
  420.     public function getSourceContext()
  421.     {
  422.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  423. {% set taxon = get_taxon_by_slug(app.request.attributes.get('slug'), sylius.localeCode) %}
  424. {% set menuTaxons = get_menu_taxon_by_slug(taxon, sylius.localeCode) %}
  425. {% block stylesheets %}
  426.     {{ parent() }}
  427.     {{ encore_entry_link_tags('shop-category-view', null, 'bootstrapTheme') }}
  428. {% endblock %}
  429. {% block javascripts %}
  430.     {{ parent() }}
  431.     {{ encore_entry_script_tags('shop-category-view', null, 'bootstrapTheme') }}
  432. {% endblock %}
  433. {% block title %}
  434.     {{ sylius_template_event('dedi_sylius_seo_plugin.title', { resource: taxon ?? product ?? sylius.channel, title: taxon }) }}
  435. {% endblock %}
  436. {% block breadcrumb %}
  437.     {% include '@SyliusShop/Taxon/_breadcrumb.html.twig' %}
  438. {% endblock %}
  439. {% block content %}
  440.     {#{% include '@SyliusShop/Product/Index/_header.html.twig' %}#}
  441.     {% include '@SyliusShop/_tracking/data_layer.html.twig' %}
  442.     {% if taxon.isRoot() and taxon.code  %}
  443.         <div class=\"catalog catalog-all\">
  444.             {% include '@SyliusShop/Product/Index/_all_categories.html.twig' with { 'taxon': taxon } %}
  445.         </div>
  446.     {% elseif taxon.parent and not taxon.parent.isRoot() %}
  447.         <div class=\"row taxons\">
  448.             <div class=\"d-none d-md-block col-md-4 col-lg-3 col-xl-3 col-xxl-2\">
  449.                 {% include '@SyliusShop/Product/Index/_sidebar.html.twig' %}
  450.             </div>
  451.             <div class=\"col-12 col-md-8 col-lg-9 col-xxl-10\">
  452.                 <h1 class=\"taxon-title\">{{ taxon.name }}</h1>
  453.                 {% if taxon.description %}
  454.                     <div class=\"taxon-description\">{{ taxon.description }}</div>
  455.                 {% endif %}
  456.                 {% set taxonChildren = taxon.children  %}
  457.                 {% if taxonChildren|length %}
  458.                     <h4 class=\"title d-md-none\">{{ 'app.ui.taxon.subtaxons' | trans }}</h4>
  459.                     <div class=\"subtaxons row row-cols-2 g-3 mb-5 row-cols-sm-3 d-md-none\">
  460.                         {% for child in taxonChildren %}
  461.                             {% if child.enabled %}
  462.                                 <div class=\"subtaxons-item col\">
  463.                                     <a class=\"subtaxons-link d-flex align-items-center h-100 p-3 border rounded link-no-decoration cfs-7 lh-1 fw-normal\" href=\"{{ path('sylius_shop_product_index', {'slug': child.redirect ?: child.slug, '_locale': child.translation.locale}) }}\">{{ child.name }}</a>
  464.                                 </div>
  465.                             {% endif %}
  466.                         {% endfor %}
  467.                     </div>
  468.                 {% endif %}
  469.                 {% include '@SyliusShop/Product/Index/_main.html.twig' with { 'taxon': taxon } %}
  470.             </div>
  471.         </div>
  472.     {% elseif taxon.parent and taxon.parent.isRoot() %}
  473.         <div class=\"catalog catalog-taxon\">
  474.             {#{{ dump(taxon) }}#}
  475.             <div class=\"taxon mb-4\">
  476.                 <h1 class=\"custom-display-4 text-center\">{{ taxon.name }}</h1>
  477.                 {% if taxon.description is not empty %}
  478.                     <div class=\"description\">
  479.                         {{ taxon.description|raw }}
  480.                     </div>
  481.                 {% endif %}
  482.             </div>
  483.             {% for taxonItem in menuTaxons %}
  484.                 {#{{ dump(taxonItem) }}#}
  485.                 {% set taxonItemImage = taxonItem.imagesByType('catalog') is not empty %}
  486.                 <div class=\"taxon-item row py-4{% if not loop.first %} mt-6{% endif%}{% if loop.index is odd %} bg-light{% endif %}\">
  487.                     {% if taxonItem.imagesByType('catalog') is not empty %}
  488.                         <div class=\"taxon-item-img-wrap d-none d-lg-block col-lg-6 col-xxxxl-5 col-xxxxxl-4 ps-lg-4\">
  489.                             <a href=\"{{ path('sylius_shop_product_index', {'slug': taxonItem.redirect ?: taxonItem.slug, '_locale': taxonItem.translation.locale}) }}\">
  490.                                 {#<picture>#}
  491.                                 {#    <source srcset=\"{{ taxonItem.imagesByType('catalog').first.path|imagine_filter('app_shop_taxon_catalog_desktop') }}\" media=\"(min-width: 992px)\">#}
  492.                                 {#    <source srcset=\"{{ taxonItem.imagesByType('catalog').first.path|imagine_filter('app_shop_taxon_catalog_mobile') }}\">#}
  493.                                 {#    <img class=\"taxon-item-img\" src=\"{{ taxonItem.imagesByType('catalog').first.path|imagine_filter('app_shop_original') }}\" alt=\"{{ taxonItem.name }}\">#}
  494.                                 {#</picture>#}
  495.                                 <img class=\"taxon-item-img lazy\" src=\"{{ taxonItem.imagesByType('catalog').first.path|imagine_filter('app_shop_taxon_catalog_desktop_small') }}\" data-src=\"{{ taxonItem.imagesByType('catalog').first.path|imagine_filter('app_shop_taxon_catalog_desktop') }}\" alt=\"{{ taxonItem.name }}\">
  496.                             </a>
  497.                         </div>
  498.                     {% endif %}
  499.                     <div class=\"taxon-item-text d-flex flex-column justify-content-center col-lg-6 col-xxxxl-7 col-xxxxxl-8{% if loop.index is odd %} order-lg-first{% endif %}\">
  500.                         <div class=\"taxon-item-text-content{# p-4#}\">
  501.                             <h2 class=\"taxon-item-title custom-display-7 mb-0 text-center d-flex flex-column justify-content-center text-lg-start\"
  502.                                 onclick=\"window.location.href='{{ path('sylius_shop_product_index', {'slug': taxonItem.redirect ?: taxonItem.slug, '_locale': taxonItem.translation.locale}) }}'\"
  503.                                 {% if taxonItemImage %}style=\"background-image: url({{ taxonItem.imagesByType('catalog').first.path|imagine_filter('app_shop_taxon_catalog_mobile') }});\"{% endif %}
  504.                             >
  505.                                 <span class=\"taxon-item-title-text\">{{ taxonItem.name }}</span>
  506.                             </h2>
  507.                             {% if taxonItem.description is not empty %}
  508.                                 <div class=\"description fw-normal mt-3\">{{ taxonItem.description|raw }}</div>
  509.                             {% endif %}
  510.                             {{ render(url('app_shop_products_by_label_code_and_taxon_slug', {
  511.                                 'labelCode': 'top',
  512.                                 'taxonSlug': taxonItem.redirect ?: taxonItem.slug,
  513.                                 'count': 20,
  514.                                 'template': '@SyliusShop/Product/Box/_top_products_slider.html.twig',
  515.                                 'taxonName': taxonItem.name,
  516.                                 'taxonCode': taxonItem.code
  517.                             })) }}
  518.                         </div>
  519.                     </div>
  520.                     {#<div class=\"link\">#}
  521.                     {#    <a href=\"{{ path('sylius_shop_product_index', {'slug': taxonItem.slug, '_locale': taxonItem.translation.locale})  }}\">{{ 'app.ui.taxon.view' | trans }}</a>#}
  522.                     {#</div>#}
  523.                     {#                    <div class=\"col-12 mt-4 text-end\">#}
  524.                     {#                        <a class=\"btn btn-lg btn-outline-primary d-inline-flex align-items-center\" href=\"{{ path('sylius_shop_product_index', {'slug': taxonItem.slug, '_locale': taxonItem.translation.locale}) }}\">{{ 'app.ui.taxon.view'|trans }}<svg class=\"icon icon-xl bi-arrow-right-short  ms-2\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z\"/></svg></a>#}
  525.                     {#                    </div>#}
  526.                 </div>
  527.             {% endfor %}
  528.         </div>
  529.     {% endif %}
  530. {% endblock %}
  531. ""@SyliusShop/Product/index.html.twig""/var/www/sudekusa-shop-test/themes/BootstrapChildTheme/SyliusShopBundle/views/Product/index.html.twig");
  532.     }
  533. }