var/cache/dev/twig/2d/2db04e23852b2e4c16acf26d0417cd1a.php line 54

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. /* @SyliusShop/Product/Box/_top_products_slider.html.twig */
  14. class __TwigTemplate_c7a61fa8c91b26fe3dcef96c0fe819ea 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Box/_top_products_slider.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Box/_top_products_slider.html.twig"));
  33.         // line 1
  34.         $context["taxonSlug"] = 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.'1$this->source); })()), "request", [], "any"falsefalsefalse1), "attributes", [], "any"falsefalsefalse1), "get", [=> "taxonSlug"], "method"falsefalsefalse1);
  35.         // line 2
  36.         echo "
  37. ";
  38.         // line 3
  39.         if ((twig_length_filter($this->env, (isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'3$this->source); })())) > 0)) {
  40.             // line 4
  41.             echo "    <div class=\"col-12 mt-6\">
  42.         ";
  43.             // line 5
  44.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sylius_shop_partial_taxon_show_by_slug", ["slug" =>             // line 6
  45. (isset($context["taxonSlug"]) || array_key_exists("taxonSlug"$context) ? $context["taxonSlug"] : (function () { throw new RuntimeError('Variable "taxonSlug" does not exist.'6$this->source); })()), "template" => "@SyliusShop/Taxon/_top-product-header.html.twig"]));
  46.             // line 8
  47.             echo "
  48.         <div class=\"px-6 pb-7\">
  49.             <div class=\"top-products-slider splide mx-auto\">
  50.                 <div class=\"splide__track\">
  51.                     <ul class=\"splide__list\">
  52.                         ";
  53.             // line 14
  54.             $context['_parent'] = $context;
  55.             $context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'14$this->source); })()));
  56.             $context['loop'] = [
  57.               'parent' => $context['_parent'],
  58.               'index0' => 0,
  59.               'index'  => 1,
  60.               'first'  => true,
  61.             ];
  62.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  63.                 $length count($context['_seq']);
  64.                 $context['loop']['revindex0'] = $length 1;
  65.                 $context['loop']['revindex'] = $length;
  66.                 $context['loop']['length'] = $length;
  67.                 $context['loop']['last'] = === $length;
  68.             }
  69.             foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  70.                 // line 15
  71.                 echo "                            <li class=\"slide-item splide__slide\">
  72.                                 ";
  73.                 // line 16
  74.                 $this->loadTemplate("@SyliusShop/Product/_box.html.twig""@SyliusShop/Product/Box/_top_products_slider.html.twig"16)->display(twig_array_merge($context, ["h_100" => true]));
  75.                 // line 17
  76.                 echo "                            </li>
  77.                         ";
  78.                 ++$context['loop']['index0'];
  79.                 ++$context['loop']['index'];
  80.                 $context['loop']['first'] = false;
  81.                 if (isset($context['loop']['length'])) {
  82.                     --$context['loop']['revindex0'];
  83.                     --$context['loop']['revindex'];
  84.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  85.                 }
  86.             }
  87.             $_parent $context['_parent'];
  88.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  89.             $context array_intersect_key($context$_parent) + $_parent;
  90.             // line 19
  91.             echo "                    </ul>
  92.                 </div>
  93.             </div>
  94.         </div>
  95.         <div class=\"col-12 mt-4 taxon-link\">
  96.             <a class=\"btn btn-lg btn-outline-primary d-inline-flex align-items-center\" href=\"";
  97.             // line 24
  98.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_index", ["slug" => (isset($context["taxonSlug"]) || array_key_exists("taxonSlug"$context) ? $context["taxonSlug"] : (function () { throw new RuntimeError('Variable "taxonSlug" does not exist.'24$this->source); })()), "_locale" => "en_US"]), "html"nulltrue);
  99.             echo "\">";
  100.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.taxon.view"), "html"nulltrue);
  101.             echo "<svg class=\"icon icon-xl bi-arrow-right-short  ms-2\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z\"/></svg></a>
  102.         </div>
  103.     </div>
  104. ";
  105.         }
  106.         
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  108.         
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110.     }
  111.     public function getTemplateName()
  112.     {
  113.         return "@SyliusShop/Product/Box/_top_products_slider.html.twig";
  114.     }
  115.     public function isTraitable()
  116.     {
  117.         return false;
  118.     }
  119.     public function getDebugInfo()
  120.     {
  121.         return array (  108 => 24,  101 => 19,  86 => 17,  84 => 16,  81 => 15,  64 => 14,  56 => 8,  54 => 6,  53 => 5,  50 => 4,  48 => 3,  45 => 2,  43 => 1,);
  122.     }
  123.     public function getSourceContext()
  124.     {
  125.         return new Source("{% set taxonSlug = app.request.attributes.get('taxonSlug') %}
  126. {% if products|length > 0 %}
  127.     <div class=\"col-12 mt-6\">
  128.         {{ render(url('sylius_shop_partial_taxon_show_by_slug', {
  129.             'slug': taxonSlug,
  130.             'template': '@SyliusShop/Taxon/_top-product-header.html.twig'
  131.         })) }}
  132.         <div class=\"px-6 pb-7\">
  133.             <div class=\"top-products-slider splide mx-auto\">
  134.                 <div class=\"splide__track\">
  135.                     <ul class=\"splide__list\">
  136.                         {% for product in products %}
  137.                             <li class=\"slide-item splide__slide\">
  138.                                 {% include '@SyliusShop/Product/_box.html.twig' with {'h_100': true} %}
  139.                             </li>
  140.                         {% endfor %}
  141.                     </ul>
  142.                 </div>
  143.             </div>
  144.         </div>
  145.         <div class=\"col-12 mt-4 taxon-link\">
  146.             <a class=\"btn btn-lg btn-outline-primary d-inline-flex align-items-center\" href=\"{{ path('sylius_shop_product_index', {'slug': taxonSlug, '_locale': 'en_US'}) }}\">{{ 'app.ui.taxon.view'|trans }}<svg class=\"icon icon-xl bi-arrow-right-short  ms-2\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z\"/></svg></a>
  147.         </div>
  148.     </div>
  149. {% endif %}
  150. ""@SyliusShop/Product/Box/_top_products_slider.html.twig""/var/www/sudekusa-shop-test/themes/BootstrapChildTheme/SyliusShopBundle/views/Product/Box/_top_products_slider.html.twig");
  151.     }
  152. }