var/cache/dev/twig/cf/cf6f5a6982f2e0c610e863e380e557cf.php line 42

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