<?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/Product/index.html.twig */
class __TwigTemplate_9b6e9022292a21121056e4d13e58e5c1 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'title' => [$this, 'block_title'],
'breadcrumb' => [$this, 'block_breadcrumb'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@SyliusShop/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/index.html.twig"));
// line 3
$context["taxon"] = $this->extensions['App\Twig\TaxonExtension']->getTaxonBySlug(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 3), "attributes", [], "any", false, false, false, 3), "get", [0 => "slug"], "method", false, false, false, 3), 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", false, false, false, 3));
// line 4
$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", false, false, false, 4));
// line 1
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "@SyliusShop/Product/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 6
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 7
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
// line 8
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("shop-category-view", null, "bootstrapTheme");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 11
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 12
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 13
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("shop-category-view", null, "bootstrapTheme");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 16
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 17
echo " ";
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", false, false, false, 17))))), "title" => (isset($context["taxon"]) || array_key_exists("taxon", $context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.', 17, $this->source); })())]);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 20
public function block_breadcrumb($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
// line 21
echo " ";
$this->loadTemplate("@SyliusShop/Taxon/_breadcrumb.html.twig", "@SyliusShop/Product/index.html.twig", 21)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 24
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 25
echo " ";
// line 26
echo "
";
// line 27
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", false, false, false, 27)) {
// line 28
echo " <div class=\"catalog catalog-all\">
";
// line 29
$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); })())]));
// line 30
echo " </div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 31
(isset($context["taxon"]) || array_key_exists("taxon", $context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.', 31, $this->source); })()), "parent", [], "any", false, false, false, 31) && !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.', 31, $this->source); })()), "parent", [], "any", false, false, false, 31), "isRoot", [], "method", false, false, false, 31))) {
// line 32
echo " <div class=\"row taxons\">
<div class=\"d-none d-md-block col-md-4 col-lg-3 col-xl-3 col-xxl-2\">
";
// line 34
$this->loadTemplate("@SyliusShop/Product/Index/_sidebar.html.twig", "@SyliusShop/Product/index.html.twig", 34)->display($context);
// line 35
echo " </div>
<div class=\"col-12 col-md-8 col-lg-9 col-xxl-10\">
<h1 class=\"taxon-title\">";
// line 37
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.', 37, $this->source); })()), "name", [], "any", false, false, false, 37), "html", null, true);
echo "</h1>
";
// line 38
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", false, false, false, 38)) {
// line 39
echo " <div class=\"taxon-description\">";
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.', 39, $this->source); })()), "description", [], "any", false, false, false, 39), "html", null, true);
echo "</div>
";
}
// line 41
echo "
";
// line 42
$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", false, false, false, 42);
// line 43
echo " ";
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); })()))) {
// line 44
echo " <h4 class=\"title d-md-none\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.taxon.subtaxons"), "html", null, true);
echo "</h4>
<div class=\"subtaxons row row-cols-2 g-3 mb-5 row-cols-sm-3 d-md-none\">
";
// line 47
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 48
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["child"], "enabled", [], "any", false, false, false, 48)) {
// line 49
echo " <div class=\"subtaxons-item col\">
<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=\"";
// 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["child"], "redirect", [], "any", false, false, false, 50)) ? (twig_get_attribute($this->env, $this->source, $context["child"], "redirect", [], "any", false, false, false, 50)) : (twig_get_attribute($this->env, $this->source, $context["child"], "slug", [], "any", false, false, false, 50))), "_locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["child"], "translation", [], "any", false, false, false, 50), "locale", [], "any", false, false, false, 50)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["child"], "name", [], "any", false, false, false, 50), "html", null, true);
echo "</a>
</div>
";
}
// line 53
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 54
echo " </div>
";
}
// line 56
echo "
";
// line 57
$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); })())]));
// line 58
echo " </div>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 60
(isset($context["taxon"]) || array_key_exists("taxon", $context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.', 60, $this->source); })()), "parent", [], "any", false, false, false, 60) && 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.', 60, $this->source); })()), "parent", [], "any", false, false, false, 60), "isRoot", [], "method", false, false, false, 60))) {
// line 61
echo " <div class=\"catalog catalog-taxon\">
";
// line 63
echo " <div class=\"taxon mb-4\">
<h1 class=\"custom-display-4 text-center\">";
// line 64
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.', 64, $this->source); })()), "name", [], "any", false, false, false, 64), "html", null, true);
echo "</h1>
";
// line 65
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", false, false, false, 65))) {
// line 66
echo " <div class=\"description\">
";
// line 67
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", false, false, false, 67);
echo "
</div>
";
}
// line 70
echo " </div>
";
// line 72
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["taxonItem"]) {
// line 73
echo " ";
// line 74
echo " ";
$context["taxonItemImage"] = !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["taxonItem"], "imagesByType", [0 => "catalog"], "method", false, false, false, 74));
// line 75
echo " <div class=\"taxon-item row py-4";
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 75)) {
echo " mt-6";
}
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 75) % 2 != 0)) {
echo " bg-light";
}
echo "\">
";
// line 76
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["taxonItem"], "imagesByType", [0 => "catalog"], "method", false, false, false, 76))) {
// line 77
echo " <div class=\"taxon-item-img-wrap d-none d-lg-block col-lg-6 col-xxxxl-5 col-xxxxxl-4 ps-lg-4\">
<a href=\"";
// line 78
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", false, false, false, 78)) ? (twig_get_attribute($this->env, $this->source, $context["taxonItem"], "redirect", [], "any", false, false, false, 78)) : (twig_get_attribute($this->env, $this->source, $context["taxonItem"], "slug", [], "any", false, false, false, 78))), "_locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["taxonItem"], "translation", [], "any", false, false, false, 78), "locale", [], "any", false, false, false, 78)]), "html", null, true);
echo "\">
";
// line 80
echo " ";
// line 81
echo " ";
// line 82
echo " ";
// line 83
echo " ";
// line 84
echo " <img class=\"taxon-item-img lazy\" src=\"";
echo twig_escape_filter($this->env, $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["taxonItem"], "imagesByType", [0 => "catalog"], "method", false, false, false, 84), "first", [], "any", false, false, false, 84), "path", [], "any", false, false, false, 84), "app_shop_taxon_catalog_desktop_small"), "html", null, true);
echo "\" data-src=\"";
echo twig_escape_filter($this->env, $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["taxonItem"], "imagesByType", [0 => "catalog"], "method", false, false, false, 84), "first", [], "any", false, false, false, 84), "path", [], "any", false, false, false, 84), "app_shop_taxon_catalog_desktop"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["taxonItem"], "name", [], "any", false, false, false, 84), "html", null, true);
echo "\">
</a>
</div>
";
}
// line 88
echo " <div class=\"taxon-item-text d-flex flex-column justify-content-center col-lg-6 col-xxxxl-7 col-xxxxxl-8";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 88) % 2 != 0)) {
echo " order-lg-first";
}
echo "\">
<div class=\"taxon-item-text-content";
// line 89
echo "\">
<h2 class=\"taxon-item-title custom-display-7 mb-0 text-center d-flex flex-column justify-content-center text-lg-start\"
onclick=\"window.location.href='";
// line 91
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", false, false, false, 91)) ? (twig_get_attribute($this->env, $this->source, $context["taxonItem"], "redirect", [], "any", false, false, false, 91)) : (twig_get_attribute($this->env, $this->source, $context["taxonItem"], "slug", [], "any", false, false, false, 91))), "_locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["taxonItem"], "translation", [], "any", false, false, false, 91), "locale", [], "any", false, false, false, 91)]), "html", null, true);
echo "'\"
";
// line 92
if ((isset($context["taxonItemImage"]) || array_key_exists("taxonItemImage", $context) ? $context["taxonItemImage"] : (function () { throw new RuntimeError('Variable "taxonItemImage" does not exist.', 92, $this->source); })())) {
echo "style=\"background-image: url(";
echo twig_escape_filter($this->env, $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["taxonItem"], "imagesByType", [0 => "catalog"], "method", false, false, false, 92), "first", [], "any", false, false, false, 92), "path", [], "any", false, false, false, 92), "app_shop_taxon_catalog_mobile"), "html", null, true);
echo ");\"";
}
// line 93
echo " >
<span class=\"taxon-item-title-text\">";
// line 94
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["taxonItem"], "name", [], "any", false, false, false, 94), "html", null, true);
echo "</span>
</h2>
";
// line 96
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["taxonItem"], "description", [], "any", false, false, false, 96))) {
// line 97
echo " <div class=\"description fw-normal mt-3\">";
echo twig_get_attribute($this->env, $this->source, $context["taxonItem"], "description", [], "any", false, false, false, 97);
echo "</div>
";
}
// line 99
echo "
";
// line 100
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
$context["taxonItem"], "redirect", [], "any", false, false, false, 102)) ? (twig_get_attribute($this->env, $this->source, $context["taxonItem"], "redirect", [], "any", false, false, false, 102)) : (twig_get_attribute($this->env, $this->source, $context["taxonItem"], "slug", [], "any", false, false, false, 102))), "count" => 20, "template" => "@SyliusShop/Product/Box/_top_products_slider.html.twig"]));
// line 105
echo "
</div>
</div>
";
// line 112
echo " ";
// line 113
echo " ";
// line 114
echo "
";
// line 116
echo " ";
// line 117
echo " ";
// line 118
echo " </div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taxonItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 121
echo " </div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Product/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout.html.twig' %}
{% set taxon = get_taxon_by_slug(app.request.attributes.get('slug'), sylius.localeCode) %}
{% set menuTaxons = get_menu_taxon_by_slug(taxon, sylius.localeCode) %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('shop-category-view', null, 'bootstrapTheme') }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ encore_entry_script_tags('shop-category-view', null, 'bootstrapTheme') }}
{% endblock %}
{% block title %}
{{ sylius_template_event('dedi_sylius_seo_plugin.title', { resource: taxon ?? product ?? sylius.channel, title: taxon }) }}
{% endblock %}
{% block breadcrumb %}
{% include '@SyliusShop/Taxon/_breadcrumb.html.twig' %}
{% endblock %}
{% block content %}
{#{% include '@SyliusShop/Product/Index/_header.html.twig' %}#}
{% if taxon.isRoot() %}
<div class=\"catalog catalog-all\">
{% include '@SyliusShop/Product/Index/_all_categories.html.twig' with { 'taxon': taxon } %}
</div>
{% elseif taxon.parent and not taxon.parent.isRoot() %}
<div class=\"row taxons\">
<div class=\"d-none d-md-block col-md-4 col-lg-3 col-xl-3 col-xxl-2\">
{% include '@SyliusShop/Product/Index/_sidebar.html.twig' %}
</div>
<div class=\"col-12 col-md-8 col-lg-9 col-xxl-10\">
<h1 class=\"taxon-title\">{{ taxon.name }}</h1>
{% if taxon.description %}
<div class=\"taxon-description\">{{ taxon.description }}</div>
{% endif %}
{% set taxonChildren = taxon.children %}
{% if taxonChildren|length %}
<h4 class=\"title d-md-none\">{{ 'app.ui.taxon.subtaxons' | trans }}</h4>
<div class=\"subtaxons row row-cols-2 g-3 mb-5 row-cols-sm-3 d-md-none\">
{% for child in taxonChildren %}
{% if child.enabled %}
<div class=\"subtaxons-item col\">
<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>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% include '@SyliusShop/Product/Index/_main.html.twig' with { 'taxon': taxon } %}
</div>
</div>
{% elseif taxon.parent and taxon.parent.isRoot() %}
<div class=\"catalog catalog-taxon\">
{#{{ dump(taxon) }}#}
<div class=\"taxon mb-4\">
<h1 class=\"custom-display-4 text-center\">{{ taxon.name }}</h1>
{% if taxon.description is not empty %}
<div class=\"description\">
{{ taxon.description|raw }}
</div>
{% endif %}
</div>
{% for taxonItem in menuTaxons %}
{#{{ dump(taxonItem) }}#}
{% set taxonItemImage = taxonItem.imagesByType('catalog') is not empty %}
<div class=\"taxon-item row py-4{% if not loop.first %} mt-6{% endif%}{% if loop.index is odd %} bg-light{% endif %}\">
{% if taxonItem.imagesByType('catalog') is not empty %}
<div class=\"taxon-item-img-wrap d-none d-lg-block col-lg-6 col-xxxxl-5 col-xxxxxl-4 ps-lg-4\">
<a href=\"{{ path('sylius_shop_product_index', {'slug': taxonItem.redirect ?: taxonItem.slug, '_locale': taxonItem.translation.locale}) }}\">
{#<picture>#}
{# <source srcset=\"{{ taxonItem.imagesByType('catalog').first.path|imagine_filter('app_shop_taxon_catalog_desktop') }}\" media=\"(min-width: 992px)\">#}
{# <source srcset=\"{{ taxonItem.imagesByType('catalog').first.path|imagine_filter('app_shop_taxon_catalog_mobile') }}\">#}
{# <img class=\"taxon-item-img\" src=\"{{ taxonItem.imagesByType('catalog').first.path|imagine_filter('app_shop_original') }}\" alt=\"{{ taxonItem.name }}\">#}
{#</picture>#}
<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 }}\">
</a>
</div>
{% endif %}
<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 %}\">
<div class=\"taxon-item-text-content{# p-4#}\">
<h2 class=\"taxon-item-title custom-display-7 mb-0 text-center d-flex flex-column justify-content-center text-lg-start\"
onclick=\"window.location.href='{{ path('sylius_shop_product_index', {'slug': taxonItem.redirect ?: taxonItem.slug, '_locale': taxonItem.translation.locale}) }}'\"
{% if taxonItemImage %}style=\"background-image: url({{ taxonItem.imagesByType('catalog').first.path|imagine_filter('app_shop_taxon_catalog_mobile') }});\"{% endif %}
>
<span class=\"taxon-item-title-text\">{{ taxonItem.name }}</span>
</h2>
{% if taxonItem.description is not empty %}
<div class=\"description fw-normal mt-3\">{{ taxonItem.description|raw }}</div>
{% endif %}
{{ render(url('app_shop_products_by_label_code_and_taxon_slug', {
'labelCode': 'top',
'taxonSlug': taxonItem.redirect ?: taxonItem.slug,
'count': 20,
'template': '@SyliusShop/Product/Box/_top_products_slider.html.twig'
})) }}
</div>
</div>
{#<div class=\"link\">#}
{# <a href=\"{{ path('sylius_shop_product_index', {'slug': taxonItem.slug, '_locale': taxonItem.translation.locale}) }}\">{{ 'app.ui.taxon.view' | trans }}</a>#}
{#</div>#}
{# <div class=\"col-12 mt-4 text-end\">#}
{# <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>#}
{# </div>#}
</div>
{% endfor %}
</div>
{% endif %}
{% endblock %}
", "@SyliusShop/Product/index.html.twig", "/var/www/sudekusa-shop-test/themes/BootstrapChildTheme/SyliusShopBundle/views/Product/index.html.twig");
}
}