var/cache/dev/twig/b1/b1041798883c290e8ba6163d4c7377f0.php line 48

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @DcSiteBundle/Morris_Garage/Accessories/accessories-catalog.html.twig */
  16. class __TwigTemplate_07a8a0badab476042a1194eac30e8a66 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'head' => [$this'block_head'],
  29.             'seo' => [$this'block_seo'],
  30.             'ogtagDynamic' => [$this'block_ogtagDynamic'],
  31.             'canonical' => [$this'block_canonical'],
  32.             'content' => [$this'block_content'],
  33.             'script' => [$this'block_script'],
  34.         ];
  35.     }
  36.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  37.     {
  38.         // line 1
  39.         return "@DcSite/Morris_Garage/template.html.twig";
  40.     }
  41.     protected function doDisplay(array $context, array $blocks = []): iterable
  42.     {
  43.         $macros $this->macros;
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@DcSiteBundle/Morris_Garage/Accessories/accessories-catalog.html.twig"));
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@DcSiteBundle/Morris_Garage/Accessories/accessories-catalog.html.twig"));
  48.         $this->parent $this->load("@DcSite/Morris_Garage/template.html.twig"1);
  49.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  50.         
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  52.         
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  54.     }
  55.     // line 3
  56.     /**
  57.      * @return iterable<null|scalar|\Stringable>
  58.      */
  59.     public function block_head(array $context, array $blocks = []): iterable
  60.     {
  61.         $macros $this->macros;
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  66.         // line 4
  67.         yield "    <link rel=\"stylesheet\" type=\"text/css\" href=\"/dist/";
  68.         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"nulltrue);
  69.         yield "/dcsite/mg/css/mgAccessoriesCatalog.css?";
  70.         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"nulltrue);
  71.         yield "\">
  72. ";
  73.         
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  75.         
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  77.         yield from [];
  78.     }
  79.     // line 6
  80.     /**
  81.      * @return iterable<null|scalar|\Stringable>
  82.      */
  83.     public function block_seo(array $context, array $blocks = []): iterable
  84.     {
  85.         $macros $this->macros;
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo"));
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo"));
  90.         // line 7
  91.         yield "    ";
  92.         yield from $this->load("@DcSite/Modules/acessories/module/block-seo.html.twig"7)->unwrap()->yield($context);
  93.         
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  95.         
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  97.         yield from [];
  98.     }
  99.     // line 10
  100.     /**
  101.      * @return iterable<null|scalar|\Stringable>
  102.      */
  103.     public function block_ogtagDynamic(array $context, array $blocks = []): iterable
  104.     {
  105.         $macros $this->macros;
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogtagDynamic"));
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogtagDynamic"));
  110.         // line 11
  111.         yield "    ";
  112.         yield from $this->load("@DcSite/Modules/acessories/module/og-tag-dnamic.htm.twig"11)->unwrap()->yield($context);
  113.         
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  115.         
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117.         yield from [];
  118.     }
  119.     // line 14
  120.     /**
  121.      * @return iterable<null|scalar|\Stringable>
  122.      */
  123.     public function block_canonical(array $context, array $blocks = []): iterable
  124.     {
  125.         $macros $this->macros;
  126.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  127.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""canonical"));
  128.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  129.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""canonical"));
  130.         // line 15
  131.         yield "    <link rel=\"canonical\" href=\"";
  132.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse15), "attributes", [], "any"falsefalsefalse15), "get", ["_route"], "method"falsefalsefalse15), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse15), "attributes", [], "any"falsefalsefalse15), "get", ["_route_params"], "method"falsefalsefalse15)), "html"nulltrue);
  133.         yield "\"/>
  134. ";
  135.         
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  137.         
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  139.         yield from [];
  140.     }
  141.     // line 18
  142.     /**
  143.      * @return iterable<null|scalar|\Stringable>
  144.      */
  145.     public function block_content(array $context, array $blocks = []): iterable
  146.     {
  147.         $macros $this->macros;
  148.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  151.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  152.         // line 19
  153.         yield "
  154.     <section class=\"breadcrumbs__new\">
  155.         ";
  156.         // line 21
  157.         $context["contentId"] = 1;
  158.         // line 22
  159.         yield "        <div class=\"container\">
  160.             <ol class=\"global_breadcrumbs__new\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">
  161.                 <li class=\"marker__none\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  162.                     <a itemprop=\"item\" href=\"";
  163.         // line 25
  164.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("mg_homepage");
  165.         yield "\">
  166.                         <span class=\"breadcrumbs__link\" itemprop=\"name\">Morris Garages</span></a>
  167.                     <meta itemprop=\"position\" content=\"";
  168.         // line 27
  169.         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"nulltrue);
  170.         yield "\"/>
  171.                 </li>
  172.                 ";
  173.         // line 30
  174.         if (array_key_exists("breadcrumbs"$context)) {
  175.             // line 31
  176.             yield "                    ";
  177.             $context['_parent'] = $context;
  178.             $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); })()));
  179.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  180.                 // line 32
  181.                 yield "
  182.                         ";
  183.                 // line 33
  184.                 $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);
  185.                 // line 34
  186.                 yield "
  187.                         <div class=\"arrow-bcs\"> ❯</div>
  188.                         <li itemprop=\"itemListElement\" itemscope
  189.                             itemtype=\"https://schema.org/ListItem\">
  190.                             ";
  191.                 // line 38
  192.                 if ((null === CoreExtension::getAttribute($this->env$this->source$context["item"], "parent", [], "any"falsefalsefalse38))) {
  193.                     // line 39
  194.                     yield "                                <a itemprop=\"item\" href=\"";
  195.                     yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop_accessory_catalog");
  196.                     yield "\">
  197.                                     <span class=\"breadcrumbs__link\" itemprop=\"name\">";
  198.                     // line 40
  199.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "title", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse40), "locale", [], "any"falsefalsefalse40)], "method"falsefalsefalse40), "html"nulltrue);
  200.                     yield "</span></a>
  201.                             ";
  202.                 } else {
  203.                     // line 42
  204.                     yield "                                <a itemprop=\"item\" href=\"";
  205.                     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"falsefalsefalse42)]), "html"nulltrue);
  206.                     yield "\">
  207.                                     <span class=\"breadcrumbs__link\"  itemprop=\"name\">";
  208.                     // line 43
  209.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "title", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse43), "locale", [], "any"falsefalsefalse43)], "method"falsefalsefalse43), "html"nulltrue);
  210.                     yield "</span></a>
  211.                             ";
  212.                 }
  213.                 // line 45
  214.                 yield "                            <meta itemprop=\"position\" content=\"";
  215.                 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"nulltrue);
  216.                 yield "\"/>
  217.                         </li>
  218.                     ";
  219.             }
  220.             $_parent $context['_parent'];
  221.             unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
  222.             $context array_intersect_key($context$_parent) + $_parent;
  223.             // line 49
  224.             yield "                ";
  225.         } elseif (array_key_exists("model"$context)) {
  226.             // line 50
  227.             yield "                    <div class=\"arrow-bcs\"> ❯</div>
  228.                     <li class=\"marker__none\" itemprop=\"itemListElement\" itemscope
  229.                         itemtype=\"https://schema.org/ListItem\">
  230.                         <a itemprop=\"item\" href=\"";
  231.             // line 53
  232.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop_accessory_catalog");
  233.             yield "\">
  234.                             <span class=\"breadcrumbs__link\" itemprop=\"name\">Аксесуари</span>
  235.                         </a>
  236.                         <meta itemprop=\"position\" content=\"";
  237.             // line 56
  238.             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"nulltrue);
  239.             yield "\"/>
  240.                     </li>
  241.                 ";
  242.         }
  243.         // line 59
  244.         yield "
  245.                 ";
  246.         // line 60
  247.         $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);
  248.         // line 61
  249.         yield "
  250.                 <div class=\"arrow-bcs\"> ❯</div>
  251.                 <li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
  252.                     itemtype=\"https://schema.org/ListItem\">
  253.                     ";
  254.         // line 66
  255.         if (array_key_exists("model"$context)) {
  256.             // line 67
  257.             yield "                    <a itemprop=\"item\" href=\"";
  258.             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"falsefalsefalse67)]), "html"nulltrue);
  259.             yield "\">
  260.                         ";
  261.         } elseif (        // line 68
  262. array_key_exists("category"$context)) {
  263.             // line 69
  264.             yield "                        <a itemprop=\"item\" href=\"";
  265.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop_accessory_catalog");
  266.             yield "\">
  267.                             ";
  268.         } else {
  269.             // line 71
  270.             yield "                            <a itemprop=\"item\" href=\"#\" style=\"";
  271.             yield ((array_key_exists("variation"$context)) ? ("") : ("color: #ABABAB;"));
  272.             yield "\">
  273.                                 ";
  274.         }
  275.         // line 73
  276.         yield "
  277.                                 ";
  278.         // line 74
  279.         if (array_key_exists("category"$context)) {
  280.             // line 75
  281.             yield "                                    <span class=\"breadcrumbs__link\" itemprop=\"name\">";
  282.             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->sourceCoreExtension::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"falsefalsefalse75), "locale", [], "any"falsefalsefalse75)], "method"falsefalsefalse75), "html"nulltrue);
  283.             yield "</span>
  284.                                 ";
  285.         }
  286.         // line 77
  287.         yield "
  288.                                 ";
  289.         // line 78
  290.         if (array_key_exists("model"$context)) {
  291.             // line 79
  292.             yield "                                    <span class=\"breadcrumbs__link\" itemprop=\"name\">";
  293.             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"falsefalsefalse79), "html"nulltrue);
  294.             yield "</span>
  295.                                 ";
  296.         }
  297.         // line 81
  298.         yield "
  299.                                 <meta itemprop=\"position\" content=\"";
  300.         // line 82
  301.         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"nulltrue);
  302.         yield "\"/>
  303.                             </a>
  304.                         </a>
  305.                     </a>
  306.                 </li>
  307.                 ";
  308.         // line 89
  309.         if (array_key_exists("variation"$context)) {
  310.             // line 90
  311.             yield "                    <div class=\"arrow-bcs\"> ❯</div>
  312.                     <li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
  313.                         itemtype=\"https://schema.org/ListItem\">
  314.                         <span style=\"color: #ABABAB;\" class=\"breadcrumbs__link\" itemprop=\"name\">";
  315.             // line 93
  316.             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"falsefalsefalse93), "html"nulltrue);
  317.             yield "</span>
  318.                         <meta itemprop=\"position\" content=\"";
  319.             // line 94
  320.             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"nulltrue);
  321.             yield "\"/>
  322.                     </li>
  323.                 ";
  324.         }
  325.         // line 97
  326.         yield "            </ol>
  327.         </div>
  328.     </section>
  329.     ";
  330.         // line 101
  331.         yield from $this->load("@DcSiteBundle/Modules/acessories/accessories-catalog.html.twig"101)->unwrap()->yield($context);
  332.         // line 102
  333.         yield "
  334. ";
  335.         
  336.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  337.         
  338.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  339.         yield from [];
  340.     }
  341.     // line 105
  342.     /**
  343.      * @return iterable<null|scalar|\Stringable>
  344.      */
  345.     public function block_script(array $context, array $blocks = []): iterable
  346.     {
  347.         $macros $this->macros;
  348.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  349.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""script"));
  350.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  351.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""script"));
  352.         // line 106
  353.         yield "    <script src=\"/dist/";
  354.         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"nulltrue);
  355.         yield "/dcsite/mg/js/mgAccessoriesCatalog.js?";
  356.         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"nulltrue);
  357.         yield "\"></script>
  358.     <script>
  359.         \$(() => {
  360.             window.initAccessoriesFilters({
  361.                 initUrl: '";
  362.         // line 110
  363.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("base_accessories_filter_init");
  364.         yield "',
  365.                 baseAccessoryUrl: '";
  366.         // line 111
  367.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop_accessory_catalog");
  368.         yield "',
  369.                 buildUrl: '";
  370.         // line 112
  371.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("base_accessories_filter_build_url");
  372.         yield "',
  373.                 params: ";
  374.         // line 113
  375.         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); })()));
  376.         yield ",
  377.                 categoryUrl: '";
  378.         // line 114
  379.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse114), "get", ["categoryUrl"], "method"falsefalsefalse114), "html"nulltrue);
  380.         yield "',
  381.                 modelUrl: '";
  382.         // line 115
  383.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse115), "get", ["modelUrl"], "method"falsefalsefalse115), "html"nulltrue);
  384.         yield "',
  385.                 filterParams: ";
  386.         // line 116
  387.         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); })()));
  388.         yield ",
  389.                 currentVariation: ";
  390.         // line 117
  391.         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); })()))) : ("[]"));
  392.         yield ",
  393.                 carModels: ";
  394.         // line 118
  395.         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); })()))) : ("[]"));
  396.         yield ",
  397.                 modelVariations: ";
  398.         // line 119
  399.         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); })()))) : ("[]"));
  400.         yield ",
  401.             });
  402.             window.initSlickSlider({
  403.                 nextArrow: `<img class=\"slick-next\" src=\"";
  404.         // line 122
  405.         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"nulltrue);
  406.         yield "\" alt=\"next\">`,
  407.                 prevArrow: `<img class=\"slick-prev\" src=\"";
  408.         // line 123
  409.         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"nulltrue);
  410.         yield "\" alt=\"prev\">`,
  411.             })
  412.         });
  413.     </script>
  414. ";
  415.         
  416.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  417.         
  418.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  419.         yield from [];
  420.     }
  421.     /**
  422.      * @codeCoverageIgnore
  423.      */
  424.     public function getTemplateName(): string
  425.     {
  426.         return "@DcSiteBundle/Morris_Garage/Accessories/accessories-catalog.html.twig";
  427.     }
  428.     /**
  429.      * @codeCoverageIgnore
  430.      */
  431.     public function isTraitable(): bool
  432.     {
  433.         return false;
  434.     }
  435.     /**
  436.      * @codeCoverageIgnore
  437.      */
  438.     public function getDebugInfo(): array
  439.     {
  440.         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,);
  441.     }
  442.     public function getSourceContext(): Source
  443.     {
  444.         return new Source("{% extends '@DcSite/Morris_Garage/template.html.twig' %}
  445. {% block head %}
  446.     <link rel=\"stylesheet\" type=\"text/css\" href=\"/dist/{{ MODE }}/dcsite/mg/css/mgAccessoriesCatalog.css?{{ VERSION }}\">
  447. {% endblock %}
  448. {% block seo %}
  449.     {% include '@DcSite/Modules/acessories/module/block-seo.html.twig' %}
  450. {% endblock seo %}
  451. {% block ogtagDynamic %}
  452.     {% include '@DcSite/Modules/acessories/module/og-tag-dnamic.htm.twig' %}
  453. {% endblock %}
  454. {% block canonical %}
  455.     <link rel=\"canonical\" href=\"{{ url(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}\"/>
  456. {% endblock %}
  457. {% block content %}
  458.     <section class=\"breadcrumbs__new\">
  459.         {% set contentId = 1 %}
  460.         <div class=\"container\">
  461.             <ol class=\"global_breadcrumbs__new\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">
  462.                 <li class=\"marker__none\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  463.                     <a itemprop=\"item\" href=\"{{ path('mg_homepage') }}\">
  464.                         <span class=\"breadcrumbs__link\" itemprop=\"name\">Morris Garages</span></a>
  465.                     <meta itemprop=\"position\" content=\"{{ contentId }}\"/>
  466.                 </li>
  467.                 {% if breadcrumbs is defined %}
  468.                     {% for item in breadcrumbs %}
  469.                         {% set contentId = contentId + 1 %}
  470.                         <div class=\"arrow-bcs\"> ❯</div>
  471.                         <li itemprop=\"itemListElement\" itemscope
  472.                             itemtype=\"https://schema.org/ListItem\">
  473.                             {% if item.parent is null %}
  474.                                 <a itemprop=\"item\" href=\"{{ path('shop_accessory_catalog') }}\">
  475.                                     <span class=\"breadcrumbs__link\" itemprop=\"name\">{{ item.title(app.request.locale) }}</span></a>
  476.                             {% else %}
  477.                                 <a itemprop=\"item\" href=\"{{ path('shop_accessory_category', {categoryUrl:item.url}) }}\">
  478.                                     <span class=\"breadcrumbs__link\"  itemprop=\"name\">{{ item.title(app.request.locale) }}</span></a>
  479.                             {% endif %}
  480.                             <meta itemprop=\"position\" content=\"{{ contentId }}\"/>
  481.                         </li>
  482.                     {% endfor %}
  483.                 {% elseif model is defined %}
  484.                     <div class=\"arrow-bcs\"> ❯</div>
  485.                     <li class=\"marker__none\" itemprop=\"itemListElement\" itemscope
  486.                         itemtype=\"https://schema.org/ListItem\">
  487.                         <a itemprop=\"item\" href=\"{{ path('shop_accessory_catalog') }}\">
  488.                             <span class=\"breadcrumbs__link\" itemprop=\"name\">Аксесуари</span>
  489.                         </a>
  490.                         <meta itemprop=\"position\" content=\"{{ contentId }}\"/>
  491.                     </li>
  492.                 {% endif %}
  493.                 {% set contentId = contentId + 1 %}
  494.                 <div class=\"arrow-bcs\"> ❯</div>
  495.                 <li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
  496.                     itemtype=\"https://schema.org/ListItem\">
  497.                     {% if model is defined %}
  498.                     <a itemprop=\"item\" href=\"{{ path('mg_shop_accessory_model', {'modelUrl': model.url}) }}\">
  499.                         {% elseif category is defined %}
  500.                         <a itemprop=\"item\" href=\"{{ path('shop_accessory_catalog') }}\">
  501.                             {% else %}
  502.                             <a itemprop=\"item\" href=\"#\" style=\"{{ variation is defined ? '' : 'color: #ABABAB;' }}\">
  503.                                 {% endif %}
  504.                                 {% if category is defined %}
  505.                                     <span class=\"breadcrumbs__link\" itemprop=\"name\">{{ category.title(app.request.locale) }}</span>
  506.                                 {% endif %}
  507.                                 {% if model is defined %}
  508.                                     <span class=\"breadcrumbs__link\" itemprop=\"name\">{{ model.title }}</span>
  509.                                 {% endif %}
  510.                                 <meta itemprop=\"position\" content=\"{{ contentId }}\"/>
  511.                             </a>
  512.                         </a>
  513.                     </a>
  514.                 </li>
  515.                 {% if variation is defined %}
  516.                     <div class=\"arrow-bcs\"> ❯</div>
  517.                     <li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
  518.                         itemtype=\"https://schema.org/ListItem\">
  519.                         <span style=\"color: #ABABAB;\" class=\"breadcrumbs__link\" itemprop=\"name\">{{ variation.years }}</span>
  520.                         <meta itemprop=\"position\" content=\"{{ contentId }}\"/>
  521.                     </li>
  522.                 {% endif %}
  523.             </ol>
  524.         </div>
  525.     </section>
  526.     {% include '@DcSiteBundle/Modules/acessories/accessories-catalog.html.twig' %}
  527. {% endblock %}
  528. {% block script %}
  529.     <script src=\"/dist/{{ MODE }}/dcsite/mg/js/mgAccessoriesCatalog.js?{{ VERSION }}\"></script>
  530.     <script>
  531.         \$(() => {
  532.             window.initAccessoriesFilters({
  533.                 initUrl: '{{ path('base_accessories_filter_init') }}',
  534.                 baseAccessoryUrl: '{{ path('shop_accessory_catalog') }}',
  535.                 buildUrl: '{{ path('base_accessories_filter_build_url') }}',
  536.                 params: {{ baseParams|json_encode|raw }},
  537.                 categoryUrl: '{{ app.request.get('categoryUrl') }}',
  538.                 modelUrl: '{{ app.request.get('modelUrl') }}',
  539.                 filterParams: {{ filterParams|json_encode|raw }},
  540.                 currentVariation: {{ variation is defined ? variation|json_encode|raw : '[]' }},
  541.                 carModels: {{ accessoryModel is defined ? accessoryModel|json_encode|raw : '[]' }},
  542.                 modelVariations: {{ modelVariations is defined ? modelVariations|json_encode|raw : '[]' }},
  543.             });
  544.             window.initSlickSlider({
  545.                 nextArrow: `<img class=\"slick-next\" src=\"{{ asset('bundles/dcsite/css/modules/slick-slider/next.svg') }}\" alt=\"next\">`,
  546.                 prevArrow: `<img class=\"slick-prev\" src=\"{{ asset('bundles/dcsite/css/modules/slick-slider/prev.svg') }}\" alt=\"prev\">`,
  547.             })
  548.         });
  549.     </script>
  550. {% endblock %}
  551. ""@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");
  552.     }
  553. }