<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* @DcSiteBundle/Morris_Garage/Accessories/accessories-catalog.html.twig */
class __TwigTemplate_07a8a0badab476042a1194eac30e8a66 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'head' => [$this, 'block_head'],
'seo' => [$this, 'block_seo'],
'ogtagDynamic' => [$this, 'block_ogtagDynamic'],
'canonical' => [$this, 'block_canonical'],
'content' => [$this, 'block_content'],
'script' => [$this, 'block_script'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "@DcSite/Morris_Garage/template.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "@DcSiteBundle/Morris_Garage/Accessories/accessories-catalog.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@DcSiteBundle/Morris_Garage/Accessories/accessories-catalog.html.twig"));
$this->parent = $this->load("@DcSite/Morris_Garage/template.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_head(array $context, array $blocks = []): iterable
{
$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", "head"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
// line 4
yield " <link rel=\"stylesheet\" type=\"text/css\" href=\"/dist/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["MODE"]) || array_key_exists("MODE", $context) ? $context["MODE"] : (function () { throw new RuntimeError('Variable "MODE" does not exist.', 4, $this->source); })()), "html", null, true);
yield "/dcsite/mg/css/mgAccessoriesCatalog.css?";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["VERSION"]) || array_key_exists("VERSION", $context) ? $context["VERSION"] : (function () { throw new RuntimeError('Variable "VERSION" does not exist.', 4, $this->source); })()), "html", null, true);
yield "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 6
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_seo(array $context, array $blocks = []): iterable
{
$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", "seo"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
// line 7
yield " ";
yield from $this->load("@DcSite/Modules/acessories/module/block-seo.html.twig", 7)->unwrap()->yield($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 10
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_ogtagDynamic(array $context, array $blocks = []): iterable
{
$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", "ogtagDynamic"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogtagDynamic"));
// line 11
yield " ";
yield from $this->load("@DcSite/Modules/acessories/module/og-tag-dnamic.htm.twig", 11)->unwrap()->yield($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 14
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_canonical(array $context, array $blocks = []): iterable
{
$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", "canonical"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "canonical"));
// line 15
yield " <link rel=\"canonical\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 15, $this->source); })()), "request", [], "any", false, false, false, 15), "attributes", [], "any", false, false, false, 15), "get", ["_route"], "method", false, false, false, 15), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 15, $this->source); })()), "request", [], "any", false, false, false, 15), "attributes", [], "any", false, false, false, 15), "get", ["_route_params"], "method", false, false, false, 15)), "html", null, true);
yield "\"/>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 18
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$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 19
yield "
<section class=\"breadcrumbs__new\">
";
// line 21
$context["contentId"] = 1;
// line 22
yield " <div class=\"container\">
<ol class=\"global_breadcrumbs__new\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">
<li class=\"marker__none\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<a itemprop=\"item\" href=\"";
// line 25
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("mg_homepage");
yield "\">
<span class=\"breadcrumbs__link\" itemprop=\"name\">Morris Garages</span></a>
<meta itemprop=\"position\" content=\"";
// line 27
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["contentId"]) || array_key_exists("contentId", $context) ? $context["contentId"] : (function () { throw new RuntimeError('Variable "contentId" does not exist.', 27, $this->source); })()), "html", null, true);
yield "\"/>
</li>
";
// line 30
if (array_key_exists("breadcrumbs", $context)) {
// line 31
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["breadcrumbs"]) || array_key_exists("breadcrumbs", $context) ? $context["breadcrumbs"] : (function () { throw new RuntimeError('Variable "breadcrumbs" does not exist.', 31, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 32
yield "
";
// line 33
$context["contentId"] = ((isset($context["contentId"]) || array_key_exists("contentId", $context) ? $context["contentId"] : (function () { throw new RuntimeError('Variable "contentId" does not exist.', 33, $this->source); })()) + 1);
// line 34
yield "
<div class=\"arrow-bcs\"> ❯</div>
<li itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
";
// line 38
if ((null === CoreExtension::getAttribute($this->env, $this->source, $context["item"], "parent", [], "any", false, false, false, 38))) {
// line 39
yield " <a itemprop=\"item\" href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop_accessory_catalog");
yield "\">
<span class=\"breadcrumbs__link\" itemprop=\"name\">";
// line 40
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 40, $this->source); })()), "request", [], "any", false, false, false, 40), "locale", [], "any", false, false, false, 40)], "method", false, false, false, 40), "html", null, true);
yield "</span></a>
";
} else {
// line 42
yield " <a itemprop=\"item\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop_accessory_category", ["categoryUrl" => CoreExtension::getAttribute($this->env, $this->source, $context["item"], "url", [], "any", false, false, false, 42)]), "html", null, true);
yield "\">
<span class=\"breadcrumbs__link\" itemprop=\"name\">";
// line 43
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 43, $this->source); })()), "request", [], "any", false, false, false, 43), "locale", [], "any", false, false, false, 43)], "method", false, false, false, 43), "html", null, true);
yield "</span></a>
";
}
// line 45
yield " <meta itemprop=\"position\" content=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["contentId"]) || array_key_exists("contentId", $context) ? $context["contentId"] : (function () { throw new RuntimeError('Variable "contentId" does not exist.', 45, $this->source); })()), "html", null, true);
yield "\"/>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
yield " ";
} elseif (array_key_exists("model", $context)) {
// line 50
yield " <div class=\"arrow-bcs\"> ❯</div>
<li class=\"marker__none\" itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
<a itemprop=\"item\" href=\"";
// line 53
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop_accessory_catalog");
yield "\">
<span class=\"breadcrumbs__link\" itemprop=\"name\">Аксесуари</span>
</a>
<meta itemprop=\"position\" content=\"";
// line 56
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["contentId"]) || array_key_exists("contentId", $context) ? $context["contentId"] : (function () { throw new RuntimeError('Variable "contentId" does not exist.', 56, $this->source); })()), "html", null, true);
yield "\"/>
</li>
";
}
// line 59
yield "
";
// line 60
$context["contentId"] = ((isset($context["contentId"]) || array_key_exists("contentId", $context) ? $context["contentId"] : (function () { throw new RuntimeError('Variable "contentId" does not exist.', 60, $this->source); })()) + 1);
// line 61
yield "
<div class=\"arrow-bcs\"> ❯</div>
<li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
";
// line 66
if (array_key_exists("model", $context)) {
// line 67
yield " <a itemprop=\"item\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("mg_shop_accessory_model", ["modelUrl" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 67, $this->source); })()), "url", [], "any", false, false, false, 67)]), "html", null, true);
yield "\">
";
} elseif ( // line 68
array_key_exists("category", $context)) {
// line 69
yield " <a itemprop=\"item\" href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop_accessory_catalog");
yield "\">
";
} else {
// line 71
yield " <a itemprop=\"item\" href=\"#\" style=\"";
yield ((array_key_exists("variation", $context)) ? ("") : ("color: #ABABAB;"));
yield "\">
";
}
// line 73
yield "
";
// line 74
if (array_key_exists("category", $context)) {
// line 75
yield " <span class=\"breadcrumbs__link\" itemprop=\"name\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 75, $this->source); })()), "title", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 75, $this->source); })()), "request", [], "any", false, false, false, 75), "locale", [], "any", false, false, false, 75)], "method", false, false, false, 75), "html", null, true);
yield "</span>
";
}
// line 77
yield "
";
// line 78
if (array_key_exists("model", $context)) {
// line 79
yield " <span class=\"breadcrumbs__link\" itemprop=\"name\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 79, $this->source); })()), "title", [], "any", false, false, false, 79), "html", null, true);
yield "</span>
";
}
// line 81
yield "
<meta itemprop=\"position\" content=\"";
// line 82
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["contentId"]) || array_key_exists("contentId", $context) ? $context["contentId"] : (function () { throw new RuntimeError('Variable "contentId" does not exist.', 82, $this->source); })()), "html", null, true);
yield "\"/>
</a>
</a>
</a>
</li>
";
// line 89
if (array_key_exists("variation", $context)) {
// line 90
yield " <div class=\"arrow-bcs\"> ❯</div>
<li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
<span style=\"color: #ABABAB;\" class=\"breadcrumbs__link\" itemprop=\"name\">";
// line 93
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["variation"]) || array_key_exists("variation", $context) ? $context["variation"] : (function () { throw new RuntimeError('Variable "variation" does not exist.', 93, $this->source); })()), "years", [], "any", false, false, false, 93), "html", null, true);
yield "</span>
<meta itemprop=\"position\" content=\"";
// line 94
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["contentId"]) || array_key_exists("contentId", $context) ? $context["contentId"] : (function () { throw new RuntimeError('Variable "contentId" does not exist.', 94, $this->source); })()), "html", null, true);
yield "\"/>
</li>
";
}
// line 97
yield " </ol>
</div>
</section>
";
// line 101
yield from $this->load("@DcSiteBundle/Modules/acessories/accessories-catalog.html.twig", 101)->unwrap()->yield($context);
// line 102
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 105
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_script(array $context, array $blocks = []): iterable
{
$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", "script"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "script"));
// line 106
yield " <script src=\"/dist/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["MODE"]) || array_key_exists("MODE", $context) ? $context["MODE"] : (function () { throw new RuntimeError('Variable "MODE" does not exist.', 106, $this->source); })()), "html", null, true);
yield "/dcsite/mg/js/mgAccessoriesCatalog.js?";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["VERSION"]) || array_key_exists("VERSION", $context) ? $context["VERSION"] : (function () { throw new RuntimeError('Variable "VERSION" does not exist.', 106, $this->source); })()), "html", null, true);
yield "\"></script>
<script>
\$(() => {
window.initAccessoriesFilters({
initUrl: '";
// line 110
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("base_accessories_filter_init");
yield "',
baseAccessoryUrl: '";
// line 111
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop_accessory_catalog");
yield "',
buildUrl: '";
// line 112
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("base_accessories_filter_build_url");
yield "',
params: ";
// line 113
yield json_encode((isset($context["baseParams"]) || array_key_exists("baseParams", $context) ? $context["baseParams"] : (function () { throw new RuntimeError('Variable "baseParams" does not exist.', 113, $this->source); })()));
yield ",
categoryUrl: '";
// line 114
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 114, $this->source); })()), "request", [], "any", false, false, false, 114), "get", ["categoryUrl"], "method", false, false, false, 114), "html", null, true);
yield "',
modelUrl: '";
// line 115
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 115, $this->source); })()), "request", [], "any", false, false, false, 115), "get", ["modelUrl"], "method", false, false, false, 115), "html", null, true);
yield "',
filterParams: ";
// line 116
yield json_encode((isset($context["filterParams"]) || array_key_exists("filterParams", $context) ? $context["filterParams"] : (function () { throw new RuntimeError('Variable "filterParams" does not exist.', 116, $this->source); })()));
yield ",
currentVariation: ";
// line 117
yield ((array_key_exists("variation", $context)) ? (json_encode((isset($context["variation"]) || array_key_exists("variation", $context) ? $context["variation"] : (function () { throw new RuntimeError('Variable "variation" does not exist.', 117, $this->source); })()))) : ("[]"));
yield ",
carModels: ";
// line 118
yield ((array_key_exists("accessoryModel", $context)) ? (json_encode((isset($context["accessoryModel"]) || array_key_exists("accessoryModel", $context) ? $context["accessoryModel"] : (function () { throw new RuntimeError('Variable "accessoryModel" does not exist.', 118, $this->source); })()))) : ("[]"));
yield ",
modelVariations: ";
// line 119
yield ((array_key_exists("modelVariations", $context)) ? (json_encode((isset($context["modelVariations"]) || array_key_exists("modelVariations", $context) ? $context["modelVariations"] : (function () { throw new RuntimeError('Variable "modelVariations" does not exist.', 119, $this->source); })()))) : ("[]"));
yield ",
});
window.initSlickSlider({
nextArrow: `<img class=\"slick-next\" src=\"";
// line 122
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/dcsite/css/modules/slick-slider/next.svg"), "html", null, true);
yield "\" alt=\"next\">`,
prevArrow: `<img class=\"slick-prev\" src=\"";
// line 123
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/dcsite/css/modules/slick-slider/prev.svg"), "html", null, true);
yield "\" alt=\"prev\">`,
})
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@DcSiteBundle/Morris_Garage/Accessories/accessories-catalog.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 454 => 123, 450 => 122, 444 => 119, 440 => 118, 436 => 117, 432 => 116, 428 => 115, 424 => 114, 420 => 113, 416 => 112, 412 => 111, 408 => 110, 398 => 106, 385 => 105, 373 => 102, 371 => 101, 365 => 97, 359 => 94, 355 => 93, 350 => 90, 348 => 89, 338 => 82, 335 => 81, 329 => 79, 327 => 78, 324 => 77, 318 => 75, 316 => 74, 313 => 73, 307 => 71, 301 => 69, 299 => 68, 294 => 67, 292 => 66, 285 => 61, 283 => 60, 280 => 59, 274 => 56, 268 => 53, 263 => 50, 260 => 49, 249 => 45, 244 => 43, 239 => 42, 234 => 40, 229 => 39, 227 => 38, 221 => 34, 219 => 33, 216 => 32, 211 => 31, 209 => 30, 203 => 27, 198 => 25, 193 => 22, 191 => 21, 187 => 19, 174 => 18, 160 => 15, 147 => 14, 135 => 11, 122 => 10, 110 => 7, 97 => 6, 81 => 4, 68 => 3, 45 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends '@DcSite/Morris_Garage/template.html.twig' %}
{% block head %}
<link rel=\"stylesheet\" type=\"text/css\" href=\"/dist/{{ MODE }}/dcsite/mg/css/mgAccessoriesCatalog.css?{{ VERSION }}\">
{% endblock %}
{% block seo %}
{% include '@DcSite/Modules/acessories/module/block-seo.html.twig' %}
{% endblock seo %}
{% block ogtagDynamic %}
{% include '@DcSite/Modules/acessories/module/og-tag-dnamic.htm.twig' %}
{% endblock %}
{% block canonical %}
<link rel=\"canonical\" href=\"{{ url(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}\"/>
{% endblock %}
{% block content %}
<section class=\"breadcrumbs__new\">
{% set contentId = 1 %}
<div class=\"container\">
<ol class=\"global_breadcrumbs__new\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">
<li class=\"marker__none\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<a itemprop=\"item\" href=\"{{ path('mg_homepage') }}\">
<span class=\"breadcrumbs__link\" itemprop=\"name\">Morris Garages</span></a>
<meta itemprop=\"position\" content=\"{{ contentId }}\"/>
</li>
{% if breadcrumbs is defined %}
{% for item in breadcrumbs %}
{% set contentId = contentId + 1 %}
<div class=\"arrow-bcs\"> ❯</div>
<li itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
{% if item.parent is null %}
<a itemprop=\"item\" href=\"{{ path('shop_accessory_catalog') }}\">
<span class=\"breadcrumbs__link\" itemprop=\"name\">{{ item.title(app.request.locale) }}</span></a>
{% else %}
<a itemprop=\"item\" href=\"{{ path('shop_accessory_category', {categoryUrl:item.url}) }}\">
<span class=\"breadcrumbs__link\" itemprop=\"name\">{{ item.title(app.request.locale) }}</span></a>
{% endif %}
<meta itemprop=\"position\" content=\"{{ contentId }}\"/>
</li>
{% endfor %}
{% elseif model is defined %}
<div class=\"arrow-bcs\"> ❯</div>
<li class=\"marker__none\" itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
<a itemprop=\"item\" href=\"{{ path('shop_accessory_catalog') }}\">
<span class=\"breadcrumbs__link\" itemprop=\"name\">Аксесуари</span>
</a>
<meta itemprop=\"position\" content=\"{{ contentId }}\"/>
</li>
{% endif %}
{% set contentId = contentId + 1 %}
<div class=\"arrow-bcs\"> ❯</div>
<li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
{% if model is defined %}
<a itemprop=\"item\" href=\"{{ path('mg_shop_accessory_model', {'modelUrl': model.url}) }}\">
{% elseif category is defined %}
<a itemprop=\"item\" href=\"{{ path('shop_accessory_catalog') }}\">
{% else %}
<a itemprop=\"item\" href=\"#\" style=\"{{ variation is defined ? '' : 'color: #ABABAB;' }}\">
{% endif %}
{% if category is defined %}
<span class=\"breadcrumbs__link\" itemprop=\"name\">{{ category.title(app.request.locale) }}</span>
{% endif %}
{% if model is defined %}
<span class=\"breadcrumbs__link\" itemprop=\"name\">{{ model.title }}</span>
{% endif %}
<meta itemprop=\"position\" content=\"{{ contentId }}\"/>
</a>
</a>
</a>
</li>
{% if variation is defined %}
<div class=\"arrow-bcs\"> ❯</div>
<li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
<span style=\"color: #ABABAB;\" class=\"breadcrumbs__link\" itemprop=\"name\">{{ variation.years }}</span>
<meta itemprop=\"position\" content=\"{{ contentId }}\"/>
</li>
{% endif %}
</ol>
</div>
</section>
{% include '@DcSiteBundle/Modules/acessories/accessories-catalog.html.twig' %}
{% endblock %}
{% block script %}
<script src=\"/dist/{{ MODE }}/dcsite/mg/js/mgAccessoriesCatalog.js?{{ VERSION }}\"></script>
<script>
\$(() => {
window.initAccessoriesFilters({
initUrl: '{{ path('base_accessories_filter_init') }}',
baseAccessoryUrl: '{{ path('shop_accessory_catalog') }}',
buildUrl: '{{ path('base_accessories_filter_build_url') }}',
params: {{ baseParams|json_encode|raw }},
categoryUrl: '{{ app.request.get('categoryUrl') }}',
modelUrl: '{{ app.request.get('modelUrl') }}',
filterParams: {{ filterParams|json_encode|raw }},
currentVariation: {{ variation is defined ? variation|json_encode|raw : '[]' }},
carModels: {{ accessoryModel is defined ? accessoryModel|json_encode|raw : '[]' }},
modelVariations: {{ modelVariations is defined ? modelVariations|json_encode|raw : '[]' }},
});
window.initSlickSlider({
nextArrow: `<img class=\"slick-next\" src=\"{{ asset('bundles/dcsite/css/modules/slick-slider/next.svg') }}\" alt=\"next\">`,
prevArrow: `<img class=\"slick-prev\" src=\"{{ asset('bundles/dcsite/css/modules/slick-slider/prev.svg') }}\" alt=\"prev\">`,
})
});
</script>
{% endblock %}
", "@DcSiteBundle/Morris_Garage/Accessories/accessories-catalog.html.twig", "/var/www/vidi.ua/releases/251027-872b0c76/src/DcSiteBundle/Resources/views/Morris_Garage/Accessories/accessories-catalog.html.twig");
}
}