<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @SyliusShop/Taxon/_verticalMenu.html.twig */
class __TwigTemplate_593d48b1ccbdb34c15ec47e1ef917ebcffaef204d4fbbcc9f35d21ee07ba8d6b extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Taxon/_verticalMenu.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Taxon/_verticalMenu.html.twig"));
// line 1
$macros["icons"] = $this->macros["icons"] = $this->loadTemplate("@SyliusShop/Common/Macro/icons.html.twig", "@SyliusShop/Taxon/_verticalMenu.html.twig", 1)->unwrap();
// line 2
echo "
";
// line 3
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); })())]);
echo "
<div class=\"row categorie-detail pb-md-3\">
<div class=\"col-xl-4 col-md-6 order-md-2\">
<div class=\"object-fit-img h-100 pr-xl-3\">
";
// line 8
if ((twig_length_filter($this->env, 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.', 8, $this->source); })()), "images", [], "any", false, false, false, 8)) > 0)) {
// line 9
echo " ";
if ((twig_length_filter($this->env, 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.', 9, $this->source); })()), "images", [], "any", false, false, false, 9)) > 1)) {
// line 10
echo " ";
$context["image"] = twig_get_attribute($this->env, $this->source, 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.', 10, $this->source); })()), "images", [], "any", false, false, false, 10), 1, [], "array", false, false, false, 10);
// line 11
echo " ";
$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", false, false, false, 11))) ? ($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", false, false, false, 11), "app_shop_taxon_show_main")) : (""));
// line 12
echo " ";
} else {
// line 13
echo "
";
// line 14
$context["path"] = (( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 14, $this->source); })()), "images", [], "any", false, false, false, 14), "first", [], "any", false, false, false, 14), "path", [], "any", false, false, false, 14))) ? ($this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 14, $this->source); })()), "images", [], "any", false, false, false, 14), "first", [], "any", false, false, false, 14), "path", [], "any", false, false, false, 14), "app_shop_taxon_show_main")) : (""));
// line 15
echo " ";
}
// line 16
echo " ";
} else {
// line 17
echo " ";
$context["path"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/img_categ.jpg");
// line 18
echo " ";
}
// line 19
echo " <img src=\"";
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", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, 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.', 19, $this->source); })()), "name", [], "any", false, false, false, 19), "html", null, true);
echo "\" class=\"\" />
</div>
</div>
<div class=\"col-12 order-md-1\">
<div class=\"px-md-0 px-2\">
";
// line 24
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", false, false, false, 24), "template" => "@SyliusShop/Taxon/_breadcrumb.html.twig"]));
echo "
</div>
</div>
<div class=\"col-xl-8 col-md-6 pl-xl-1 order-md-3\">
<div class=\"px-md-0 px-2\">
<h1 class=\"title-medium mb-2 lib-categ text-center text-md-left mb-md-3 text-uppercase\">";
// line 29
echo twig_escape_filter($this->env, 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.', 29, $this->source); })()), "name", [], "any", false, false, false, 29), "html", null, true);
echo " </h1>
<div class=\"text-grey text-regular-onlg expand-me-mobile\">
";
// line 31
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", false, false, false, 31);
echo "
</div>
</div>
</div>
</div>
";
// line 40
if ((twig_length_filter($this->env, 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.', 40, $this->source); })()), "children", [], "any", false, false, false, 40)) > 0)) {
// line 41
echo "<div class=\"ss-categ-content\">
<div class=\"title-ss-regular text-md-left text-center \">";
// line 42
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.taxon.sub_categories"), "html", null, true);
echo "</div>
<div class=\"padding-mobile-ss\">
<div class=\" mt-md-2 ss-categ pt-3 text-regular-onlg fontsize-mobile-text categ-ss-list swiper-container\">
<div class=\"swiper-wrapper\">
";
// line 47
$context['_parent'] = $context;
$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", false, false, false, 47));
foreach ($context['_seq'] as $context["_key"] => $context["childTaxon"]) {
// line 48
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["childTaxon"], "enabled", [], "any", false, false, false, 48)) {
// line 49
echo " <div class=\"swiper-slide swiper-sscateg-bit\">
<a href=\"";
// line 50
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", false, false, false, 50), "_locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["childTaxon"], "translation", [], "any", false, false, false, 50), "locale", [], "any", false, false, false, 50), "id" => twig_get_attribute($this->env, $this->source, $context["childTaxon"], "oldId", [], "any", false, false, false, 50)]), "html", null, true);
echo "\" class=\"ss-categ-link hover-img-scale\">
<strong>
";
// line 52
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["childTaxon"], "images", [], "any", false, false, false, 52), "first", [], "any", false, false, false, 52)) {
// line 53
echo " ";
$context["path_child"] = $this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["childTaxon"], "images", [], "any", false, false, false, 53), "first", [], "any", false, false, false, 53), "path", [], "any", false, false, false, 53), ((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")));
// line 54
echo " <img src=\"";
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", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["childTaxon"], "name", [], "any", false, false, false, 54), "html", null, true);
echo "\" class=\"\" />
";
} else {
// line 56
echo " ";
$context["path_child"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/spacer.png");
// line 57
echo " <img src=\"";
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", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["childTaxon"], "name", [], "any", false, false, false, 57), "html", null, true);
echo "\" class=\"w-100\" />
";
}
// line 59
echo "
</strong>
<h2><span>";
// line 61
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["childTaxon"], "name", [], "any", false, false, false, 61), "html", null, true);
echo "</span></h2></a>
</div>
";
}
// line 64
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childTaxon'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 65
echo " </div>
</div>
</div>
<div class=\"text-center content-pagination pt-md-3 pt-2\">
<div class=\"select-container position-relative\">
<div class=\"ss-prev btn2-slide-prev\"></div>
<div class=\"ss-next btn2-slide-next\"></div>
<div class=\"swiper-pagination swiper-pagination-ss\"></div>
</div>
</div>
</div>
";
}
// line 78
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); })())]);
echo "
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Taxon/_verticalMenu.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% import \"@SyliusShop/Common/Macro/icons.html.twig\" as icons %}
{{ sylius_template_event('sylius.shop.product.index.before_vertical_menu', {'taxon': taxon}) }}
<div class=\"row categorie-detail pb-md-3\">
<div class=\"col-xl-4 col-md-6 order-md-2\">
<div class=\"object-fit-img h-100 pr-xl-3\">
{% if taxon.images | length > 0 %}
{% if taxon.images | length > 1 %}
{% set image = taxon.images[1] %}
{% set path = image.path is not null ? image.path|imagine_filter('app_shop_taxon_show_main') %}
{% else %}
{% set path = taxon.images.first.path is not null ? taxon.images.first.path|imagine_filter('app_shop_taxon_show_main') %}
{% endif %}
{% else %}
{% set path = asset('images/img_categ.jpg') %}
{% endif %}
<img src=\"{{ path }}\" alt=\"{{ taxon.name }}\" class=\"\" />
</div>
</div>
<div class=\"col-12 order-md-1\">
<div class=\"px-md-0 px-2\">
{{ render(url('sylius_shop_partial_taxon_show_by_slug', {'slug': taxon.slug,'template': '@SyliusShop/Taxon/_breadcrumb.html.twig'})) }}
</div>
</div>
<div class=\"col-xl-8 col-md-6 pl-xl-1 order-md-3\">
<div class=\"px-md-0 px-2\">
<h1 class=\"title-medium mb-2 lib-categ text-center text-md-left mb-md-3 text-uppercase\">{{ taxon.name }} </h1>
<div class=\"text-grey text-regular-onlg expand-me-mobile\">
{{ taxon.description|raw }}
</div>
</div>
</div>
</div>
{% if taxon.children|length > 0 %}
<div class=\"ss-categ-content\">
<div class=\"title-ss-regular text-md-left text-center \">{{ 'app.taxon.sub_categories'|trans }}</div>
<div class=\"padding-mobile-ss\">
<div class=\" mt-md-2 ss-categ pt-3 text-regular-onlg fontsize-mobile-text categ-ss-list swiper-container\">
<div class=\"swiper-wrapper\">
{% for childTaxon in taxon.children %}
{% if childTaxon.enabled %}
<div class=\"swiper-slide swiper-sscateg-bit\">
<a href=\"{{ path('sylius_shop_product_index', {'slug': childTaxon.slug, '_locale': childTaxon.translation.locale, 'id': childTaxon.oldId}) }}\" class=\"ss-categ-link hover-img-scale\">
<strong>
{% if childTaxon.images.first %}
{% set path_child = childTaxon.images.first.path|imagine_filter(filter|default('app_shop_taxonchildren_show')) %}
<img src=\"{{ path_child }}\" alt=\"{{ childTaxon.name }}\" class=\"\" />
{% else %}
{% set path_child = asset('images/spacer.png') %}
<img src=\"{{ path_child }}\" alt=\"{{ childTaxon.name }}\" class=\"w-100\" />
{% endif %}
</strong>
<h2><span>{{ childTaxon.name }}</span></h2></a>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
<div class=\"text-center content-pagination pt-md-3 pt-2\">
<div class=\"select-container position-relative\">
<div class=\"ss-prev btn2-slide-prev\"></div>
<div class=\"ss-next btn2-slide-next\"></div>
<div class=\"swiper-pagination swiper-pagination-ss\"></div>
</div>
</div>
</div>
{% endif %}
{{ sylius_template_event('sylius.shop.product.index.after_vertical_menu', {'taxon': taxon}) }}
", "@SyliusShop/Taxon/_verticalMenu.html.twig", "/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Taxon/_verticalMenu.html.twig");
}
}