var/cache/te_dev/twig/23/2316cdfc8ab135ddc324f272f1683ca382f2687a5eda09ab76665dd801cd09b6.php line 251

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @Web/Home/_top-carousel.html.twig */
  14. class __TwigTemplate_7e6086f8338a973288e65e12183fc414c0f845d67850c0cef14733a9a3ec5efa extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  30.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Web/Home/_top-carousel.html.twig"));
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Web/Home/_top-carousel.html.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Web/Home/_top-carousel.html.twig"));
  35.         // line 1
  36.         $context["homeTopCarouselClass"] = "";
  37.         // line 2
  38.         if ((array_key_exists("isHome"$context) && (isset($context["isHome"]) || array_key_exists("isHome"$context) ? $context["isHome"] : (function () { throw new RuntimeError('Variable "isHome" does not exist.'2$this->source); })()))) {
  39.             // line 3
  40.             echo "\t";
  41.             $context["homeTopCarouselClass"] = " js-home-top-carousel";
  42.             // line 4
  43.             echo "\t";
  44.             $context["homeTopCarouselItemClass"] = " js-home-top-carousel-item";
  45.         }
  46.         // line 6
  47.         echo "
  48. ";
  49.         // line 9
  50.         $context["homeTopCarouselCookie"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'9$this->source); })()), "request", [], "any"falsefalsefalse9), "cookies", [], "any"falsefalsefalse9), "get", [=> "homeTopCarousel"], "method"falsefalsefalse9);
  51.         // line 10
  52.         if ( !(isset($context["homeTopCarouselCookie"]) || array_key_exists("homeTopCarouselCookie"$context) ? $context["homeTopCarouselCookie"] : (function () { throw new RuntimeError('Variable "homeTopCarouselCookie" does not exist.'10$this->source); })())) {
  53.             // line 11
  54.             echo "\t";
  55.             $context["homeTopCarouselCookie"] = "top-week";
  56.         }
  57.         // line 13
  58.         echo "
  59. ";
  60.         // line 14
  61.         $context["dataCur"] = twig_get_attribute($this->env$this->source, (isset($context["topCarousel"]) || array_key_exists("topCarousel"$context) ? $context["topCarousel"] : (function () { throw new RuntimeError('Variable "topCarousel" does not exist.'14$this->source); })()), (isset($context["homeTopCarouselCookie"]) || array_key_exists("homeTopCarouselCookie"$context) ? $context["homeTopCarouselCookie"] : (function () { throw new RuntimeError('Variable "homeTopCarouselCookie" does not exist.'14$this->source); })()), [], "array"falsefalsefalse14);
  62.         // line 15
  63.         echo "
  64. ";
  65.         // line 16
  66.         if (((isset($context["homeTopCarouselCookie"]) || array_key_exists("homeTopCarouselCookie"$context) ? $context["homeTopCarouselCookie"] : (function () { throw new RuntimeError('Variable "homeTopCarouselCookie" does not exist.'16$this->source); })()) == "top-week")) {
  67.             // line 17
  68.             echo "\t";
  69.             $context["homeTopCarouselLinkClass"] = " main-link-top-week";
  70.         } elseif ((        // line 18
  71. (isset($context["homeTopCarouselCookie"]) || array_key_exists("homeTopCarouselCookie"$context) ? $context["homeTopCarouselCookie"] : (function () { throw new RuntimeError('Variable "homeTopCarouselCookie" does not exist.'18$this->source); })()) == "top-month")) {
  72.             // line 19
  73.             echo "\t";
  74.             $context["homeTopCarouselLinkClass"] = " main-link-top-month";
  75.         } else {
  76.             // line 21
  77.             echo "\t";
  78.             $context["homeTopCarouselLinkClass"] = " main-link-top-all";
  79.         }
  80.         // line 23
  81.         echo "
  82. <div id=\"top_collection\" class=\"carousel-collection-block js-carousel-block";
  83.         // line 24
  84.         echo twig_escape_filter($this->env, (isset($context["homeTopCarouselClass"]) || array_key_exists("homeTopCarouselClass"$context) ? $context["homeTopCarouselClass"] : (function () { throw new RuntimeError('Variable "homeTopCarouselClass" does not exist.'24$this->source); })()), "html"nulltrue);
  85.         echo "\" data-group-carousel>
  86. \t<div class=\"carousel-controls\">
  87. \t\t<h2 class=\"carousel-name popular\">
  88. \t\t\t<a href=\"";
  89.         // line 29
  90.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["dataCur"]) || array_key_exists("dataCur"$context) ? $context["dataCur"] : (function () { throw new RuntimeError('Variable "dataCur" does not exist.'29$this->source); })()), "link", [], "array"falsefalsefalse29), "html"nulltrue);
  91.         echo "\"
  92. \t\t\t   class=\"text js-group-carousel-name";
  93.         // line 30
  94.         echo twig_escape_filter($this->env, (isset($context["homeTopCarouselLinkClass"]) || array_key_exists("homeTopCarouselLinkClass"$context) ? $context["homeTopCarouselLinkClass"] : (function () { throw new RuntimeError('Variable "homeTopCarouselLinkClass" does not exist.'30$this->source); })()), "html"nulltrue);
  95.         echo "\"
  96. \t\t\t   data-link-classes=\"main-link-top-week main-link-top-month main-link-top-all\"
  97. \t\t\t   data-sort-to-catalog=\"1\"
  98. \t\t\t>
  99. \t\t\t\t";
  100.         // line 34
  101.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["dataCur"]) || array_key_exists("dataCur"$context) ? $context["dataCur"] : (function () { throw new RuntimeError('Variable "dataCur" does not exist.'34$this->source); })()), "title", [], "array"falsefalsefalse34), "html"nulltrue);
  102.         echo "
  103. \t\t\t</a>
  104. \t\t\t<span class=\"arrow\"></span>
  105. \t\t\t<div class=\"list-of-top-wrap\">
  106. \t\t\t\t<ul data-group-carousels-list>
  107. \t\t\t\t\t";
  108.         // line 41
  109.         $context["data"] = twig_get_attribute($this->env$this->source, (isset($context["topCarousel"]) || array_key_exists("topCarousel"$context) ? $context["topCarousel"] : (function () { throw new RuntimeError('Variable "topCarousel" does not exist.'41$this->source); })()), "top-week", [], "array"falsefalsefalse41);
  110.         // line 42
  111.         echo "\t\t\t\t\t<li class=\"";
  112.         echo ((((isset($context["homeTopCarouselCookie"]) || array_key_exists("homeTopCarouselCookie"$context) ? $context["homeTopCarouselCookie"] : (function () { throw new RuntimeError('Variable "homeTopCarouselCookie" does not exist.'42$this->source); })()) == twig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'42$this->source); })()), "key", [], "array"falsefalsefalse42))) ? ("active ") : (""));
  113.         echo "main-popup-top-week";
  114.         echo twig_escape_filter($this->env, (isset($context["homeTopCarouselItemClass"]) || array_key_exists("homeTopCarouselItemClass"$context) ? $context["homeTopCarouselItemClass"] : (function () { throw new RuntimeError('Variable "homeTopCarouselItemClass" does not exist.'42$this->source); })()), "html"nulltrue);
  115.         echo "\"
  116. \t\t\t\t\t\tdata-link-class=\"main-link-top-week\"
  117. \t\t\t\t\t\tdata-carousel-title=\"";
  118.         // line 44
  119.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'44$this->source); })()), "title", [], "array"falsefalsefalse44), "html"nulltrue);
  120.         echo "\"
  121. \t\t\t\t\t\tdata-link=\"";
  122.         // line 45
  123.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'45$this->source); })()), "link", [], "array"falsefalsefalse45), "html"nulltrue);
  124.         echo "\"
  125. \t\t\t\t\t    data-url=\"";
  126.         // line 46
  127.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'46$this->source); })()), "url-json", [], "array"falsefalsefalse46), "html"nulltrue);
  128.         echo "\"
  129. \t\t\t\t\t    ";
  130.         // line 47
  131.         if ((isset($context["homeTopCarouselClass"]) || array_key_exists("homeTopCarouselClass"$context) ? $context["homeTopCarouselClass"] : (function () { throw new RuntimeError('Variable "homeTopCarouselClass" does not exist.'47$this->source); })())) {
  132.             echo "data-cookie=\"";
  133.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'47$this->source); })()), "key", [], "array"falsefalsefalse47), "html"nulltrue);
  134.             echo "\"";
  135.         }
  136.         // line 48
  137.         echo "\t\t\t\t\t>
  138. \t\t\t\t\t\t";
  139.         // line 49
  140.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("top.week"), "html"nulltrue);
  141.         echo "
  142. \t\t\t\t\t</li>
  143. \t\t\t\t\t";
  144.         // line 51
  145.         $context["data"] = twig_get_attribute($this->env$this->source, (isset($context["topCarousel"]) || array_key_exists("topCarousel"$context) ? $context["topCarousel"] : (function () { throw new RuntimeError('Variable "topCarousel" does not exist.'51$this->source); })()), "top-month", [], "array"falsefalsefalse51);
  146.         // line 52
  147.         echo "\t\t\t\t\t<li class=\"";
  148.         echo ((((isset($context["homeTopCarouselCookie"]) || array_key_exists("homeTopCarouselCookie"$context) ? $context["homeTopCarouselCookie"] : (function () { throw new RuntimeError('Variable "homeTopCarouselCookie" does not exist.'52$this->source); })()) == twig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'52$this->source); })()), "key", [], "array"falsefalsefalse52))) ? ("active ") : (""));
  149.         echo "main-popup-top-month";
  150.         echo twig_escape_filter($this->env, (isset($context["homeTopCarouselItemClass"]) || array_key_exists("homeTopCarouselItemClass"$context) ? $context["homeTopCarouselItemClass"] : (function () { throw new RuntimeError('Variable "homeTopCarouselItemClass" does not exist.'52$this->source); })()), "html"nulltrue);
  151.         echo "\"
  152. \t\t\t\t\t\tdata-link-class=\"main-link-top-month\"
  153. \t\t\t\t\t\tdata-carousel-title=\"";
  154.         // line 54
  155.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'54$this->source); })()), "title", [], "array"falsefalsefalse54), "html"nulltrue);
  156.         echo "\"
  157. \t\t\t\t\t\tdata-link=\"";
  158.         // line 55
  159.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'55$this->source); })()), "link", [], "array"falsefalsefalse55), "html"nulltrue);
  160.         echo "\"
  161. \t\t\t\t\t\tdata-url=\"";
  162.         // line 56
  163.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'56$this->source); })()), "url-json", [], "array"falsefalsefalse56), "html"nulltrue);
  164.         echo "\"
  165. \t\t\t\t\t\t";
  166.         // line 57
  167.         if ((isset($context["homeTopCarouselClass"]) || array_key_exists("homeTopCarouselClass"$context) ? $context["homeTopCarouselClass"] : (function () { throw new RuntimeError('Variable "homeTopCarouselClass" does not exist.'57$this->source); })())) {
  168.             echo "data-cookie=\"";
  169.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'57$this->source); })()), "key", [], "array"falsefalsefalse57), "html"nulltrue);
  170.             echo "\"";
  171.         }
  172.         // line 58
  173.         echo "\t\t\t\t\t>
  174. \t\t\t\t\t\t";
  175.         // line 59
  176.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("top.month"), "html"nulltrue);
  177.         echo "
  178. \t\t\t\t\t</li>
  179. \t\t\t\t\t";
  180.         // line 61
  181.         $context["data"] = twig_get_attribute($this->env$this->source, (isset($context["topCarousel"]) || array_key_exists("topCarousel"$context) ? $context["topCarousel"] : (function () { throw new RuntimeError('Variable "topCarousel" does not exist.'61$this->source); })()), "top-all", [], "array"falsefalsefalse61);
  182.         // line 62
  183.         echo "\t\t\t\t\t<li class=\"";
  184.         echo ((((isset($context["homeTopCarouselCookie"]) || array_key_exists("homeTopCarouselCookie"$context) ? $context["homeTopCarouselCookie"] : (function () { throw new RuntimeError('Variable "homeTopCarouselCookie" does not exist.'62$this->source); })()) == twig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'62$this->source); })()), "key", [], "array"falsefalsefalse62))) ? ("active ") : (""));
  185.         echo "main-popup-top-all";
  186.         echo twig_escape_filter($this->env, (isset($context["homeTopCarouselItemClass"]) || array_key_exists("homeTopCarouselItemClass"$context) ? $context["homeTopCarouselItemClass"] : (function () { throw new RuntimeError('Variable "homeTopCarouselItemClass" does not exist.'62$this->source); })()), "html"nulltrue);
  187.         echo "\"
  188. \t\t\t\t\t\tdata-link-class=\"main-link-top-all\"
  189. \t\t\t\t\t\tdata-carousel-title=\"";
  190.         // line 64
  191.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'64$this->source); })()), "title", [], "array"falsefalsefalse64), "html"nulltrue);
  192.         echo "\"
  193. \t\t\t\t\t\tdata-link=\"";
  194.         // line 65
  195.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'65$this->source); })()), "link", [], "array"falsefalsefalse65), "html"nulltrue);
  196.         echo "\"
  197. \t\t\t\t\t\tdata-url=\"";
  198.         // line 66
  199.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'66$this->source); })()), "url-json", [], "array"falsefalsefalse66), "html"nulltrue);
  200.         echo "\"
  201. \t\t\t\t\t\t";
  202.         // line 67
  203.         if ((isset($context["homeTopCarouselClass"]) || array_key_exists("homeTopCarouselClass"$context) ? $context["homeTopCarouselClass"] : (function () { throw new RuntimeError('Variable "homeTopCarouselClass" does not exist.'67$this->source); })())) {
  204.             echo "data-cookie=\"";
  205.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'67$this->source); })()), "key", [], "array"falsefalsefalse67), "html"nulltrue);
  206.             echo "\"";
  207.         }
  208.         // line 68
  209.         echo "\t\t\t\t\t>
  210. \t\t\t\t\t\t";
  211.         // line 69
  212.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("top.all"), "html"nulltrue);
  213.         echo "
  214. \t\t\t\t\t</li>
  215. \t\t\t\t</ul>
  216. \t\t\t</div>
  217. \t\t</h2>
  218. \t\t<span class=\"material-icons prev disabled hidden-xs swiper-button-prev\" data-prev-show>
  219. \t\t\t&#xE314;
  220. \t\t</span>
  221. \t\t<span class=\"material-icons next hidden-xs swiper-button-next ladda-button\" 
  222. \t\t\t  data-ajax-url=\"";
  223.         // line 79
  224.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_last_collection", ["type" => "top-week"]);
  225.         echo "\"
  226. \t\t\t  data-style=\"zoom-in\" 
  227. \t\t\t  data-spinner-color=\"#6890c5\" 
  228. \t\t\t  data-next-show
  229. \t\t>
  230. \t\t\t<span class=\"ladda-label\">&#xE315;</span>
  231. \t\t</span>
  232. \t</div>
  233. \t";
  234.         // line 88
  235.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragmentStrategy("esi"Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("WebBundle\\Controller\\HomeController::carouselAction", ["type" => (isset($context["homeTopCarouselCookie"]) || array_key_exists("homeTopCarouselCookie"$context) ? $context["homeTopCarouselCookie"] : (function () { throw new RuntimeError('Variable "homeTopCarouselCookie" does not exist.'88$this->source); })())]));
  236.         echo "
  237. </div>";
  238.         
  239.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  240.         
  241.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  242.         
  243.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  244.     }
  245.     public function getTemplateName()
  246.     {
  247.         return "@Web/Home/_top-carousel.html.twig";
  248.     }
  249.     public function isTraitable()
  250.     {
  251.         return false;
  252.     }
  253.     public function getDebugInfo()
  254.     {
  255.         return array (  251 => 88,  239 => 79,  226 => 69,  223 => 68,  217 => 67,  213 => 66,  209 => 65,  205 => 64,  197 => 62,  195 => 61,  190 => 59,  187 => 58,  181 => 57,  177 => 56,  173 => 55,  169 => 54,  161 => 52,  159 => 51,  154 => 49,  151 => 48,  145 => 47,  141 => 46,  137 => 45,  133 => 44,  125 => 42,  123 => 41,  113 => 34,  106 => 30,  102 => 29,  94 => 24,  91 => 23,  87 => 21,  83 => 19,  81 => 18,  78 => 17,  76 => 16,  73 => 15,  71 => 14,  68 => 13,  64 => 11,  62 => 10,  60 => 9,  57 => 6,  53 => 4,  50 => 3,  48 => 2,  46 => 1,);
  256.     }
  257.     public function getSourceContext()
  258.     {
  259.         return new Source("{% set homeTopCarouselClass = '' %}
  260. {% if isHome is defined and isHome %}
  261. \t{% set homeTopCarouselClass = ' js-home-top-carousel' %}
  262. \t{% set homeTopCarouselItemClass = ' js-home-top-carousel-item' %}
  263. {% endif %}
  264. {# если есть cookie с настройкой топ-карусели, считать значение этих cookie и вывести #}
  265. {# содержимое карусели, урл ссылки, текст ссылки, и классы в соответствии с этими cookie #}
  266. {% set homeTopCarouselCookie = app.request.cookies.get('homeTopCarousel') %}
  267. {% if not homeTopCarouselCookie %}
  268. \t{% set homeTopCarouselCookie = 'top-week' %}
  269. {% endif %}
  270. {% set dataCur = topCarousel[homeTopCarouselCookie] %}
  271. {% if homeTopCarouselCookie == 'top-week' %}
  272. \t{% set homeTopCarouselLinkClass = ' main-link-top-week' %}
  273. {% elseif homeTopCarouselCookie == 'top-month' %}
  274. \t{% set homeTopCarouselLinkClass = ' main-link-top-month' %}
  275. {% else %}
  276. \t{% set homeTopCarouselLinkClass = ' main-link-top-all' %}
  277. {% endif %}
  278. <div id=\"top_collection\" class=\"carousel-collection-block js-carousel-block{{ homeTopCarouselClass }}\" data-group-carousel>
  279. \t<div class=\"carousel-controls\">
  280. \t\t<h2 class=\"carousel-name popular\">
  281. \t\t\t<a href=\"{{ dataCur['link'] }}\"
  282. \t\t\t   class=\"text js-group-carousel-name{{ homeTopCarouselLinkClass }}\"
  283. \t\t\t   data-link-classes=\"main-link-top-week main-link-top-month main-link-top-all\"
  284. \t\t\t   data-sort-to-catalog=\"1\"
  285. \t\t\t>
  286. \t\t\t\t{{ dataCur['title'] }}
  287. \t\t\t</a>
  288. \t\t\t<span class=\"arrow\"></span>
  289. \t\t\t<div class=\"list-of-top-wrap\">
  290. \t\t\t\t<ul data-group-carousels-list>
  291. \t\t\t\t\t{% set data = topCarousel['top-week'] %}
  292. \t\t\t\t\t<li class=\"{{ homeTopCarouselCookie == data['key'] ? 'active ' : '' }}main-popup-top-week{{ homeTopCarouselItemClass }}\"
  293. \t\t\t\t\t\tdata-link-class=\"main-link-top-week\"
  294. \t\t\t\t\t\tdata-carousel-title=\"{{ data['title'] }}\"
  295. \t\t\t\t\t\tdata-link=\"{{ data['link'] }}\"
  296. \t\t\t\t\t    data-url=\"{{ data['url-json'] }}\"
  297. \t\t\t\t\t    {% if homeTopCarouselClass %}data-cookie=\"{{ data['key'] }}\"{% endif %}
  298. \t\t\t\t\t>
  299. \t\t\t\t\t\t{{ 'top.week' | trans }}
  300. \t\t\t\t\t</li>
  301. \t\t\t\t\t{% set data = topCarousel['top-month'] %}
  302. \t\t\t\t\t<li class=\"{{ homeTopCarouselCookie == data['key'] ? 'active ' : '' }}main-popup-top-month{{ homeTopCarouselItemClass }}\"
  303. \t\t\t\t\t\tdata-link-class=\"main-link-top-month\"
  304. \t\t\t\t\t\tdata-carousel-title=\"{{ data['title'] }}\"
  305. \t\t\t\t\t\tdata-link=\"{{ data['link'] }}\"
  306. \t\t\t\t\t\tdata-url=\"{{ data['url-json'] }}\"
  307. \t\t\t\t\t\t{% if homeTopCarouselClass %}data-cookie=\"{{ data['key'] }}\"{% endif %}
  308. \t\t\t\t\t>
  309. \t\t\t\t\t\t{{ 'top.month' | trans }}
  310. \t\t\t\t\t</li>
  311. \t\t\t\t\t{% set data = topCarousel['top-all'] %}
  312. \t\t\t\t\t<li class=\"{{ homeTopCarouselCookie == data['key'] ? 'active ' : '' }}main-popup-top-all{{ homeTopCarouselItemClass }}\"
  313. \t\t\t\t\t\tdata-link-class=\"main-link-top-all\"
  314. \t\t\t\t\t\tdata-carousel-title=\"{{ data['title'] }}\"
  315. \t\t\t\t\t\tdata-link=\"{{ data['link'] }}\"
  316. \t\t\t\t\t\tdata-url=\"{{ data['url-json'] }}\"
  317. \t\t\t\t\t\t{% if homeTopCarouselClass %}data-cookie=\"{{ data['key'] }}\"{% endif %}
  318. \t\t\t\t\t>
  319. \t\t\t\t\t\t{{ 'top.all' | trans }}
  320. \t\t\t\t\t</li>
  321. \t\t\t\t</ul>
  322. \t\t\t</div>
  323. \t\t</h2>
  324. \t\t<span class=\"material-icons prev disabled hidden-xs swiper-button-prev\" data-prev-show>
  325. \t\t\t&#xE314;
  326. \t\t</span>
  327. \t\t<span class=\"material-icons next hidden-xs swiper-button-next ladda-button\" 
  328. \t\t\t  data-ajax-url=\"{{ path('app_last_collection', {'type': 'top-week'}) }}\"
  329. \t\t\t  data-style=\"zoom-in\" 
  330. \t\t\t  data-spinner-color=\"#6890c5\" 
  331. \t\t\t  data-next-show
  332. \t\t>
  333. \t\t\t<span class=\"ladda-label\">&#xE315;</span>
  334. \t\t</span>
  335. \t</div>
  336. \t{{ render_esi( controller('WebBundle\\\\Controller\\\\HomeController::carouselAction', {type: homeTopCarouselCookie}) ) }}
  337. </div>""@Web/Home/_top-carousel.html.twig""/var/www/dev5.tile.expert/src/WebBundle/Resources/views/Home/_top-carousel.html.twig");
  338.     }
  339. }