<?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_8d216844271f1183fe9707edf901499b625f4fe7bf3870e6344d11f0236c7774 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/index.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/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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 6
public function block_stylesheets($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(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 11
public function block_javascripts($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(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 16
public function block_title($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(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 20
public function block_breadcrumb($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(), "block", "breadcrumb"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 24
public function block_content($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(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 25
echo " ";
// line 26
echo "
";
// line 27
$this->loadTemplate("@SyliusShop/_tracking/data_layer.html.twig", "@SyliusShop/Product/index.html.twig", 27)->display($context);
// line 28
echo "
";
// line 30
if ((twig_get_attribute($this->env, $this->source, (isset($context["taxon"]) || array_key_exists("taxon", $context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.', 30, $this->source); })()), "isRoot", [], "method", false, false, false, 30) && twig_get_attribute($this->env, $this->source, (isset($context["taxon"]) || array_key_exists("taxon", $context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.', 30, $this->source); })()), "code", [], "any", false, false, false, 30))) {
// line 31
echo " <div class=\"catalog catalog-all\">
";
// line 32
$this->loadTemplate("@SyliusShop/Product/Index/_all_categories.html.twig", "@SyliusShop/Product/index.html.twig", 32)->display(twig_array_merge($context, ["taxon" => (isset($context["taxon"]) || array_key_exists("taxon", $context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.', 32, $this->source); })())]));
// line 33
echo " </div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 34
(isset($context["taxon"]) || array_key_exists("taxon", $context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.', 34, $this->source); })()), "parent", [], "any", false, false, false, 34) && !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.', 34, $this->source); })()), "parent", [], "any", false, false, false, 34), "isRoot", [], "method", false, false, false, 34))) {
// line 35
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 38
$this->loadTemplate("@SyliusShop/Product/Index/_sidebar.html.twig", "@SyliusShop/Product/index.html.twig", 38)->display($context);
// line 39
echo " </div>
<div class=\"col-12 col-md-8 col-lg-9 col-xxl-10\">
<h1 class=\"taxon-title\">";
// line 41
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.', 41, $this->source); })()), "name", [], "any", false, false, false, 41), "html", null, true);
echo "</h1>
";
// line 42
if (twig_get_attribute($this->env, $this->source, (isset($context["taxon"]) || array_key_exists("taxon", $context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.', 42, $this->source); })()), "description", [], "any", false, false, false, 42)) {
// line 43
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.', 43, $this->source); })()), "description", [], "any", false, false, false, 43), "html", null, true);
echo "</div>
";
}
// line 45
echo "
";
// line 46
$context["taxonChildren"] = twig_get_attribute($this->env, $this->source, (isset($context["taxon"]) || array_key_exists("taxon", $context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.', 46, $this->source); })()), "children", [], "any", false, false, false, 46);
// line 47
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.', 47, $this->source); })()))) {
// line 48
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 51
$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.', 51, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 52
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["child"], "enabled", [], "any", false, false, false, 52)) {
// line 53
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 54
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, 54)) ? (twig_get_attribute($this->env, $this->source, $context["child"], "redirect", [], "any", false, false, false, 54)) : (twig_get_attribute($this->env, $this->source, $context["child"], "slug", [], "any", false, false, false, 54))), "_locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["child"], "translation", [], "any", false, false, false, 54), "locale", [], "any", false, false, false, 54)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["child"], "name", [], "any", false, false, false, 54), "html", null, true);
echo "</a>
</div>
";
}
// line 57
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 58
echo " </div>
";
}
// line 60
echo "
";
// line 61
$this->loadTemplate("@SyliusShop/Product/Index/_main.html.twig", "@SyliusShop/Product/index.html.twig", 61)->display(twig_array_merge($context, ["taxon" => (isset($context["taxon"]) || array_key_exists("taxon", $context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.', 61, $this->source); })())]));
// line 62
echo " </div>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 64
(isset($context["taxon"]) || array_key_exists("taxon", $context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.', 64, $this->source); })()), "parent", [], "any", false, false, false, 64) && 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.', 64, $this->source); })()), "parent", [], "any", false, false, false, 64), "isRoot", [], "method", false, false, false, 64))) {
// line 65
echo " <div class=\"catalog catalog-taxon\">
";
// line 67
echo " <div class=\"taxon mb-4\">
<h1 class=\"custom-display-4 text-center\">";
// line 68
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.', 68, $this->source); })()), "name", [], "any", false, false, false, 68), "html", null, true);
echo "</h1>
";
// line 69
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["taxon"]) || array_key_exists("taxon", $context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.', 69, $this->source); })()), "description", [], "any", false, false, false, 69))) {
// line 70
echo " <div class=\"description\">
";
// line 71
echo twig_get_attribute($this->env, $this->source, (isset($context["taxon"]) || array_key_exists("taxon", $context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.', 71, $this->source); })()), "description", [], "any", false, false, false, 71);
echo "
</div>
";
}
// line 74
echo " </div>
";
// line 76
$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.', 76, $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 77
echo " ";
// line 78
echo " ";
$context["taxonItemImage"] = !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["taxonItem"], "imagesByType", [0 => "catalog"], "method", false, false, false, 78));
// line 79
echo " <div class=\"taxon-item row py-4";
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 79)) {
echo " mt-6";
}
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 79) % 2 != 0)) {
echo " bg-light";
}
echo "\">
";
// line 80
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["taxonItem"], "imagesByType", [0 => "catalog"], "method", false, false, false, 80))) {
// line 81
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 82
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, 82)) ? (twig_get_attribute($this->env, $this->source, $context["taxonItem"], "redirect", [], "any", false, false, false, 82)) : (twig_get_attribute($this->env, $this->source, $context["taxonItem"], "slug", [], "any", false, false, false, 82))), "_locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["taxonItem"], "translation", [], "any", false, false, false, 82), "locale", [], "any", false, false, false, 82)]), "html", null, true);
echo "\">
";
// line 84
echo " ";
// line 85
echo " ";
// line 86
echo " ";
// line 87
echo " ";
// line 88
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, 88), "first", [], "any", false, false, false, 88), "path", [], "any", false, false, false, 88), "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, 88), "first", [], "any", false, false, false, 88), "path", [], "any", false, false, false, 88), "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, 88), "html", null, true);
echo "\">
</a>
</div>
";
}
// line 92
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, 92) % 2 != 0)) {
echo " order-lg-first";
}
echo "\">
<div class=\"taxon-item-text-content";
// line 93
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 95
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, 95)) ? (twig_get_attribute($this->env, $this->source, $context["taxonItem"], "redirect", [], "any", false, false, false, 95)) : (twig_get_attribute($this->env, $this->source, $context["taxonItem"], "slug", [], "any", false, false, false, 95))), "_locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["taxonItem"], "translation", [], "any", false, false, false, 95), "locale", [], "any", false, false, false, 95)]), "html", null, true);
echo "'\"
";
// line 96
if ((isset($context["taxonItemImage"]) || array_key_exists("taxonItemImage", $context) ? $context["taxonItemImage"] : (function () { throw new RuntimeError('Variable "taxonItemImage" does not exist.', 96, $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, 96), "first", [], "any", false, false, false, 96), "path", [], "any", false, false, false, 96), "app_shop_taxon_catalog_mobile"), "html", null, true);
echo ");\"";
}
// line 97
echo " >
<span class=\"taxon-item-title-text\">";
// line 98
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["taxonItem"], "name", [], "any", false, false, false, 98), "html", null, true);
echo "</span>
</h2>
";
// line 100
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["taxonItem"], "description", [], "any", false, false, false, 100))) {
// line 101
echo " <div class=\"description fw-normal mt-3\">";
echo twig_get_attribute($this->env, $this->source, $context["taxonItem"], "description", [], "any", false, false, false, 101);
echo "</div>
";
}
// line 103
echo "
";
// line 104
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_shop_products_by_label_code_and_taxon_slug", ["labelCode" => "top", "taxonSlug" => ((twig_get_attribute($this->env, $this->source, // line 106
$context["taxonItem"], "redirect", [], "any", false, false, false, 106)) ? (twig_get_attribute($this->env, $this->source, $context["taxonItem"], "redirect", [], "any", false, false, false, 106)) : (twig_get_attribute($this->env, $this->source, $context["taxonItem"], "slug", [], "any", false, false, false, 106))), "count" => 20, "template" => "@SyliusShop/Product/Box/_top_products_slider.html.twig", "taxonName" => twig_get_attribute($this->env, $this->source, // line 109
$context["taxonItem"], "name", [], "any", false, false, false, 109), "taxonCode" => twig_get_attribute($this->env, $this->source, // line 110
$context["taxonItem"], "code", [], "any", false, false, false, 110)]));
// line 111
echo "
</div>
</div>
";
// line 118
echo " ";
// line 119
echo " ";
// line 120
echo "
";
// line 122
echo " ";
// line 123
echo " ";
// line 124
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 127
echo " </div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Product/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 441 => 127, 425 => 124, 423 => 123, 421 => 122, 418 => 120, 416 => 119, 414 => 118, 406 => 111, 404 => 110, 403 => 109, 402 => 106, 401 => 104, 398 => 103, 392 => 101, 390 => 100, 385 => 98, 382 => 97, 376 => 96, 372 => 95, 368 => 93, 361 => 92, 349 => 88, 347 => 87, 345 => 86, 343 => 85, 341 => 84, 337 => 82, 334 => 81, 332 => 80, 322 => 79, 319 => 78, 317 => 77, 300 => 76, 296 => 74, 290 => 71, 287 => 70, 285 => 69, 281 => 68, 278 => 67, 275 => 65, 273 => 64, 269 => 62, 267 => 61, 264 => 60, 260 => 58, 254 => 57, 246 => 54, 243 => 53, 240 => 52, 236 => 51, 229 => 48, 226 => 47, 224 => 46, 221 => 45, 215 => 43, 213 => 42, 209 => 41, 205 => 39, 203 => 38, 198 => 35, 196 => 34, 193 => 33, 191 => 32, 188 => 31, 186 => 30, 182 => 28, 180 => 27, 177 => 26, 175 => 25, 165 => 24, 154 => 21, 144 => 20, 131 => 17, 121 => 16, 109 => 13, 104 => 12, 94 => 11, 82 => 8, 77 => 7, 67 => 6, 56 => 1, 54 => 4, 52 => 3, 39 => 1,);
}
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' %}#}
{% include '@SyliusShop/_tracking/data_layer.html.twig' %}
{% if taxon.isRoot() and taxon.code %}
<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',
'taxonName': taxonItem.name,
'taxonCode': taxonItem.code
})) }}
</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");
}
}