var/cache/dev/twig/16/166f38e3cd99b4706378ffabc36a364b9206546ba01cad6cb05154f878fd7a92.php line 98

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/Taxon/_verticalMenu.html.twig */
  14. class __TwigTemplate_593d48b1ccbdb34c15ec47e1ef917ebcffaef204d4fbbcc9f35d21ee07ba8d6b 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Taxon/_verticalMenu.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Taxon/_verticalMenu.html.twig"));
  33.         // line 1
  34.         $macros["icons"] = $this->macros["icons"] = $this->loadTemplate("@SyliusShop/Common/Macro/icons.html.twig""@SyliusShop/Taxon/_verticalMenu.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "
  37. ";
  38.         // line 3
  39.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.index.before_vertical_menu", ["taxon" => (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'3$this->source); })())]);
  40.         echo "
  41. <div class=\"row categorie-detail  pb-md-3\">
  42.     <div class=\"col-xl-4 col-md-6  order-md-2\">
  43.         <div class=\"object-fit-img h-100 pr-xl-3\">
  44.             ";
  45.         // line 8
  46.         if ((twig_length_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.'8$this->source); })()), "images", [], "any"falsefalsefalse8)) > 0)) {
  47.             // line 9
  48.             echo "                ";
  49.             if ((twig_length_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.'9$this->source); })()), "images", [], "any"falsefalsefalse9)) > 1)) {
  50.                 // line 10
  51.                 echo "                    ";
  52.                 $context["image"] = 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.'10$this->source); })()), "images", [], "any"falsefalsefalse10), 1, [], "array"falsefalsefalse10);
  53.                 // line 11
  54.                 echo "                    ";
  55.                 $context["path"] = (( !(null === twig_get_attribute($this->env$this->source, (isset($context["image"]) || array_key_exists("image"$context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.'11$this->source); })()), "path", [], "any"falsefalsefalse11))) ? ($this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->source, (isset($context["image"]) || array_key_exists("image"$context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.'11$this->source); })()), "path", [], "any"falsefalsefalse11), "app_shop_taxon_show_main")) : (""));
  56.                 // line 12
  57.                 echo "                ";
  58.             } else {
  59.                 // line 13
  60.                 echo "
  61.                     ";
  62.                 // line 14
  63.                 $context["path"] = (( !(null === twig_get_attribute($this->env$this->sourcetwig_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.'14$this->source); })()), "images", [], "any"falsefalsefalse14), "first", [], "any"falsefalsefalse14), "path", [], "any"falsefalsefalse14))) ? ($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, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'14$this->source); })()), "images", [], "any"falsefalsefalse14), "first", [], "any"falsefalsefalse14), "path", [], "any"falsefalsefalse14), "app_shop_taxon_show_main")) : (""));
  64.                 // line 15
  65.                 echo "                 ";
  66.             }
  67.             // line 16
  68.             echo "            ";
  69.         } else {
  70.             // line 17
  71.             echo "                ";
  72.             $context["path"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/img_categ.jpg");
  73.             // line 18
  74.             echo "            ";
  75.         }
  76.         // line 19
  77.         echo "            <img src=\"";
  78.         echo twig_escape_filter($this->env, (isset($context["path"]) || array_key_exists("path"$context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.'19$this->source); })()), "html"nulltrue);
  79.         echo "\" alt=\"";
  80.         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.'19$this->source); })()), "name", [], "any"falsefalsefalse19), "html"nulltrue);
  81.         echo "\" class=\"\" />
  82.         </div>
  83.     </div>
  84.     <div class=\"col-12 order-md-1\">
  85.         <div class=\"px-md-0 px-2\">
  86.           ";
  87.         // line 24
  88.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sylius_shop_partial_taxon_show_by_slug", ["slug" => 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.'24$this->source); })()), "slug", [], "any"falsefalsefalse24), "template" => "@SyliusShop/Taxon/_breadcrumb.html.twig"]));
  89.         echo "
  90.         </div>
  91.     </div>
  92.     <div class=\"col-xl-8 col-md-6 pl-xl-1  order-md-3\">
  93.         <div class=\"px-md-0  px-2\">
  94.             <h1 class=\"title-medium mb-2 lib-categ  text-center text-md-left mb-md-3 text-uppercase\">";
  95.         // line 29
  96.         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.'29$this->source); })()), "name", [], "any"falsefalsefalse29), "html"nulltrue);
  97.         echo " </h1>
  98.             <div class=\"text-grey text-regular-onlg expand-me-mobile\">
  99.                 ";
  100.         // line 31
  101.         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.'31$this->source); })()), "description", [], "any"falsefalsefalse31);
  102.         echo "
  103.             </div>
  104.         </div>
  105.     </div>
  106. </div>
  107.  ";
  108.         // line 40
  109.         if ((twig_length_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.'40$this->source); })()), "children", [], "any"falsefalsefalse40)) > 0)) {
  110.             // line 41
  111.             echo "<div class=\"ss-categ-content\">
  112.     <div class=\"title-ss-regular text-md-left text-center \">";
  113.             // line 42
  114.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.taxon.sub_categories"), "html"nulltrue);
  115.             echo "</div>
  116.     <div class=\"padding-mobile-ss\">
  117.         <div class=\" mt-md-2 ss-categ pt-3  text-regular-onlg fontsize-mobile-text categ-ss-list swiper-container\">
  118.             <div class=\"swiper-wrapper\">
  119.                 ";
  120.             // line 47
  121.             $context['_parent'] = $context;
  122.             $context['_seq'] = twig_ensure_traversable(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.'47$this->source); })()), "children", [], "any"falsefalsefalse47));
  123.             foreach ($context['_seq'] as $context["_key"] => $context["childTaxon"]) {
  124.                 // line 48
  125.                 echo "                    ";
  126.                 if (twig_get_attribute($this->env$this->source$context["childTaxon"], "enabled", [], "any"falsefalsefalse48)) {
  127.                     // line 49
  128.                     echo "                        <div class=\"swiper-slide swiper-sscateg-bit\">
  129.                             <a href=\"";
  130.                     // line 50
  131.                     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["childTaxon"], "slug", [], "any"falsefalsefalse50), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["childTaxon"], "translation", [], "any"falsefalsefalse50), "locale", [], "any"falsefalsefalse50), "id" => twig_get_attribute($this->env$this->source$context["childTaxon"], "oldId", [], "any"falsefalsefalse50)]), "html"nulltrue);
  132.                     echo "\" class=\"ss-categ-link hover-img-scale\">
  133.                             <strong>
  134.                                 ";
  135.                     // line 52
  136.                     if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["childTaxon"], "images", [], "any"falsefalsefalse52), "first", [], "any"falsefalsefalse52)) {
  137.                         // line 53
  138.                         echo "                                    ";
  139.                         $context["path_child"] = $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["childTaxon"], "images", [], "any"falsefalsefalse53), "first", [], "any"falsefalsefalse53), "path", [], "any"falsefalsefalse53), ((array_key_exists("filter"$context)) ? (_twig_default_filter((isset($context["filter"]) || array_key_exists("filter"$context) ? $context["filter"] : (function () { throw new RuntimeError('Variable "filter" does not exist.'53$this->source); })()), "app_shop_taxonchildren_show")) : ("app_shop_taxonchildren_show")));
  140.                         // line 54
  141.                         echo "                                    <img src=\"";
  142.                         echo twig_escape_filter($this->env, (isset($context["path_child"]) || array_key_exists("path_child"$context) ? $context["path_child"] : (function () { throw new RuntimeError('Variable "path_child" does not exist.'54$this->source); })()), "html"nulltrue);
  143.                         echo "\" alt=\"";
  144.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["childTaxon"], "name", [], "any"falsefalsefalse54), "html"nulltrue);
  145.                         echo "\" class=\"\" />
  146.                                 ";
  147.                     } else {
  148.                         // line 56
  149.                         echo "                                    ";
  150.                         $context["path_child"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/spacer.png");
  151.                         // line 57
  152.                         echo "                                    <img src=\"";
  153.                         echo twig_escape_filter($this->env, (isset($context["path_child"]) || array_key_exists("path_child"$context) ? $context["path_child"] : (function () { throw new RuntimeError('Variable "path_child" does not exist.'57$this->source); })()), "html"nulltrue);
  154.                         echo "\" alt=\"";
  155.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["childTaxon"], "name", [], "any"falsefalsefalse57), "html"nulltrue);
  156.                         echo "\" class=\"w-100\" />
  157.                                 ";
  158.                     }
  159.                     // line 59
  160.                     echo "
  161.                             </strong>
  162.                             <h2><span>";
  163.                     // line 61
  164.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["childTaxon"], "name", [], "any"falsefalsefalse61), "html"nulltrue);
  165.                     echo "</span></h2></a>
  166.                         </div>
  167.                     ";
  168.                 }
  169.                 // line 64
  170.                 echo "                ";
  171.             }
  172.             $_parent $context['_parent'];
  173.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childTaxon'], $context['_parent'], $context['loop']);
  174.             $context array_intersect_key($context$_parent) + $_parent;
  175.             // line 65
  176.             echo "            </div>
  177.         </div>
  178.     </div>
  179.     <div class=\"text-center content-pagination pt-md-3 pt-2\">
  180.         <div class=\"select-container position-relative\">
  181.             <div class=\"ss-prev btn2-slide-prev\"></div>
  182.             <div class=\"ss-next btn2-slide-next\"></div>
  183.             <div class=\"swiper-pagination swiper-pagination-ss\"></div>
  184.         </div>
  185.     </div>
  186. </div>
  187. ";
  188.         }
  189.         // line 78
  190.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.index.after_vertical_menu", ["taxon" => (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'78$this->source); })())]);
  191.         echo "
  192. ";
  193.         
  194.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  195.         
  196.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  197.     }
  198.     public function getTemplateName()
  199.     {
  200.         return "@SyliusShop/Taxon/_verticalMenu.html.twig";
  201.     }
  202.     public function isTraitable()
  203.     {
  204.         return false;
  205.     }
  206.     public function getDebugInfo()
  207.     {
  208.         return array (  206 => 78,  191 => 65,  185 => 64,  179 => 61,  175 => 59,  167 => 57,  164 => 56,  156 => 54,  153 => 53,  151 => 52,  146 => 50,  143 => 49,  140 => 48,  136 => 47,  128 => 42,  125 => 41,  123 => 40,  111 => 31,  106 => 29,  98 => 24,  87 => 19,  84 => 18,  81 => 17,  78 => 16,  75 => 15,  73 => 14,  70 => 13,  67 => 12,  64 => 11,  61 => 10,  58 => 9,  56 => 8,  48 => 3,  45 => 2,  43 => 1,);
  209.     }
  210.     public function getSourceContext()
  211.     {
  212.         return new Source("{% import \"@SyliusShop/Common/Macro/icons.html.twig\" as icons %}
  213. {{ sylius_template_event('sylius.shop.product.index.before_vertical_menu', {'taxon': taxon}) }}
  214. <div class=\"row categorie-detail  pb-md-3\">
  215.     <div class=\"col-xl-4 col-md-6  order-md-2\">
  216.         <div class=\"object-fit-img h-100 pr-xl-3\">
  217.             {% if taxon.images | length > 0 %}
  218.                 {% if taxon.images | length > 1 %}
  219.                     {% set image = taxon.images[1] %}
  220.                     {% set path = image.path is not null ? image.path|imagine_filter('app_shop_taxon_show_main') %}
  221.                 {% else %}
  222.                     {% set path = taxon.images.first.path is not null ? taxon.images.first.path|imagine_filter('app_shop_taxon_show_main') %}
  223.                  {% endif %}
  224.             {% else %}
  225.                 {% set path = asset('images/img_categ.jpg') %}
  226.             {% endif %}
  227.             <img src=\"{{ path }}\" alt=\"{{ taxon.name }}\" class=\"\" />
  228.         </div>
  229.     </div>
  230.     <div class=\"col-12 order-md-1\">
  231.         <div class=\"px-md-0 px-2\">
  232.           {{ render(url('sylius_shop_partial_taxon_show_by_slug', {'slug': taxon.slug,'template': '@SyliusShop/Taxon/_breadcrumb.html.twig'})) }}
  233.         </div>
  234.     </div>
  235.     <div class=\"col-xl-8 col-md-6 pl-xl-1  order-md-3\">
  236.         <div class=\"px-md-0  px-2\">
  237.             <h1 class=\"title-medium mb-2 lib-categ  text-center text-md-left mb-md-3 text-uppercase\">{{ taxon.name }} </h1>
  238.             <div class=\"text-grey text-regular-onlg expand-me-mobile\">
  239.                 {{ taxon.description|raw }}
  240.             </div>
  241.         </div>
  242.     </div>
  243. </div>
  244.  {% if taxon.children|length > 0 %}
  245. <div class=\"ss-categ-content\">
  246.     <div class=\"title-ss-regular text-md-left text-center \">{{ 'app.taxon.sub_categories'|trans }}</div>
  247.     <div class=\"padding-mobile-ss\">
  248.         <div class=\" mt-md-2 ss-categ pt-3  text-regular-onlg fontsize-mobile-text categ-ss-list swiper-container\">
  249.             <div class=\"swiper-wrapper\">
  250.                 {% for childTaxon in taxon.children %}
  251.                     {% if childTaxon.enabled %}
  252.                         <div class=\"swiper-slide swiper-sscateg-bit\">
  253.                             <a href=\"{{ path('sylius_shop_product_index', {'slug': childTaxon.slug, '_locale': childTaxon.translation.locale, 'id': childTaxon.oldId}) }}\" class=\"ss-categ-link hover-img-scale\">
  254.                             <strong>
  255.                                 {% if childTaxon.images.first %}
  256.                                     {% set path_child = childTaxon.images.first.path|imagine_filter(filter|default('app_shop_taxonchildren_show')) %}
  257.                                     <img src=\"{{ path_child }}\" alt=\"{{ childTaxon.name }}\" class=\"\" />
  258.                                 {% else %}
  259.                                     {% set path_child = asset('images/spacer.png') %}
  260.                                     <img src=\"{{ path_child }}\" alt=\"{{ childTaxon.name }}\" class=\"w-100\" />
  261.                                 {% endif %}
  262.                             </strong>
  263.                             <h2><span>{{ childTaxon.name }}</span></h2></a>
  264.                         </div>
  265.                     {% endif %}
  266.                 {% endfor %}
  267.             </div>
  268.         </div>
  269.     </div>
  270.     <div class=\"text-center content-pagination pt-md-3 pt-2\">
  271.         <div class=\"select-container position-relative\">
  272.             <div class=\"ss-prev btn2-slide-prev\"></div>
  273.             <div class=\"ss-next btn2-slide-next\"></div>
  274.             <div class=\"swiper-pagination swiper-pagination-ss\"></div>
  275.         </div>
  276.     </div>
  277. </div>
  278. {% endif %}
  279. {{ sylius_template_event('sylius.shop.product.index.after_vertical_menu', {'taxon': taxon}) }}
  280. ""@SyliusShop/Taxon/_verticalMenu.html.twig""/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Taxon/_verticalMenu.html.twig");
  281.     }
  282. }