var/cache/dev/twig/48/48e3e6c352f844f08b3b6720427d8b171a15a5f792f912d9fd1b8513d4314c8d.php line 73

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/Homepage/_best_selling.html.twig */
  14. class __TwigTemplate_e1e4437e8abf9781dcaa27cb051786c189de23883c105ab21ca6fbbfdac55198 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Homepage/_best_selling.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Homepage/_best_selling.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"ui three cards\" id=\"products\">
  35.     <div class=\"swiper-flagshipProducts-button-prev\"></div>
  36.     <!-- Slider main container -->
  37.     <div class=\"swiper swiper-flagshipProducts swiper-flagshipProducts--";
  38.         // line 5
  39.         echo twig_escape_filter($this->env, (isset($context["grid"]) || array_key_exists("grid"$context) ? $context["grid"] : (function () { throw new RuntimeError('Variable "grid" does not exist.'5$this->source); })()), "html"nulltrue);
  40.         echo "\" data-slidesnumber=";
  41.         echo twig_escape_filter($this->env, (isset($context["grid"]) || array_key_exists("grid"$context) ? $context["grid"] : (function () { throw new RuntimeError('Variable "grid" does not exist.'5$this->source); })()), "html"nulltrue);
  42.         echo ">
  43.         <!-- Additional required wrapper -->
  44.         <div class=\"swiper-wrapper\" >
  45.             <!-- Slides -->
  46.             ";
  47.         // line 11
  48.         if ((array_key_exists("products"$context) &&  !twig_test_empty((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'11$this->source); })())))) {
  49.             // line 12
  50.             echo "
  51.                 ";
  52.             // line 13
  53.             $context['_parent'] = $context;
  54.             $context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'13$this->source); })()));
  55.             foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  56.                 // line 14
  57.                 echo "
  58.                     ";
  59.                 // line 15
  60.                 echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sylius_shop_partial_product_show_by_slug", ["slug" => twig_get_attribute($this->env$this->source,                 // line 16
  61. $context["product"], "slug", [], "any"falsefalsefalse16), "template" => "@SyliusShop/Product/_box.html.twig"]));
  62.                 // line 18
  63.                 echo "
  64.                 ";
  65.             }
  66.             $_parent $context['_parent'];
  67.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  68.             $context array_intersect_key($context$_parent) + $_parent;
  69.             // line 21
  70.             echo "
  71.             ";
  72.         }
  73.         // line 23
  74.         echo "
  75.         </div>
  76.         <!-- If we need pagination -->
  77.         <div class=\"swiper-pagination-flagshipProducts\"></div>
  78.         <!-- If we need navigation buttons -->
  79.     </div>
  80.     <div class=\"swiper-flagshipProducts-button-next\"></div>
  81. </div>
  82. ";
  83.         
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  85.         
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  87.     }
  88.     public function getTemplateName()
  89.     {
  90.         return "@SyliusShop/Homepage/_best_selling.html.twig";
  91.     }
  92.     public function isTraitable()
  93.     {
  94.         return false;
  95.     }
  96.     public function getDebugInfo()
  97.     {
  98.         return array (  87 => 23,  83 => 21,  75 => 18,  73 => 16,  72 => 15,  69 => 14,  65 => 13,  62 => 12,  60 => 11,  49 => 5,  43 => 1,);
  99.     }
  100.     public function getSourceContext()
  101.     {
  102.         return new Source("<div class=\"ui three cards\" id=\"products\">
  103.     <div class=\"swiper-flagshipProducts-button-prev\"></div>
  104.     <!-- Slider main container -->
  105.     <div class=\"swiper swiper-flagshipProducts swiper-flagshipProducts--{{grid}}\" data-slidesnumber={{grid}}>
  106.         <!-- Additional required wrapper -->
  107.         <div class=\"swiper-wrapper\" >
  108.             <!-- Slides -->
  109.             {% if products is defined and products is not empty %}
  110.                 {% for product in products %}
  111.                     {{ render(url('sylius_shop_partial_product_show_by_slug', {
  112.                         'slug': product.slug,
  113.                         'template': '@SyliusShop/Product/_box.html.twig'
  114.                     })) }}
  115.                 {% endfor %}
  116.             {% endif %}
  117.         </div>
  118.         <!-- If we need pagination -->
  119.         <div class=\"swiper-pagination-flagshipProducts\"></div>
  120.         <!-- If we need navigation buttons -->
  121.     </div>
  122.     <div class=\"swiper-flagshipProducts-button-next\"></div>
  123. </div>
  124. ""@SyliusShop/Homepage/_best_selling.html.twig""/var/www/html/templates/bundles/SyliusShopBundle/Homepage/_best_selling.html.twig");
  125.     }
  126. }