var/cache/dev/twig/f0/f01e2dcf479c42c7dbf78f3d246c82e1f59af78ef18fb8c7678c0834a3f3cd84.php line 33

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/_horizontalList.html.twig */
  14. class __TwigTemplate_de3830d73855fe3c7cd51b1d4474d1c82e6cfdb7edf770cf7964c73f530a9a8a 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/Product/_horizontalList.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/Product/_horizontalList.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"ui four doubling cards cardsOtherProducts\">
  35.      <div class=\"swiper-flagshipProducts-button-prev\"></div>
  36.     <div class=\"swiper swiper-flagshipProducts swiper-flagshipProducts--3\" data-slidesnumber=\"3\">
  37.         <div class=\"swiper-wrapper\" >
  38.             ";
  39.         // line 8
  40.         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.'8$this->source); })())))) {
  41.             // line 9
  42.             echo "
  43.                 ";
  44.             // line 10
  45.             $context['_parent'] = $context;
  46.             $context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'10$this->source); })()));
  47.             foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  48.                 // line 11
  49.                 echo "
  50.                     ";
  51.                 // line 12
  52.                 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 13
  53. $context["product"], "slug", [], "any"falsefalsefalse13), "template" => "@SyliusShop/Product/_box.html.twig"]));
  54.                 // line 15
  55.                 echo "
  56.                 ";
  57.             }
  58.             $_parent $context['_parent'];
  59.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  60.             $context array_intersect_key($context$_parent) + $_parent;
  61.             // line 18
  62.             echo "
  63.             ";
  64.         }
  65.         // line 20
  66.         echo "
  67.         </div>
  68.         <div class=\"swiper-pagination-flagshipProducts\"></div>
  69.     </div>
  70.     <div class=\"swiper-flagshipProducts-button-next\"></div>
  71. </div>
  72. ";
  73.         
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  75.         
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  77.     }
  78.     public function getTemplateName()
  79.     {
  80.         return "@SyliusShop/Product/_horizontalList.html.twig";
  81.     }
  82.     public function isTraitable()
  83.     {
  84.         return false;
  85.     }
  86.     public function getDebugInfo()
  87.     {
  88.         return array (  79 => 20,  75 => 18,  67 => 15,  65 => 13,  64 => 12,  61 => 11,  57 => 10,  54 => 9,  52 => 8,  43 => 1,);
  89.     }
  90.     public function getSourceContext()
  91.     {
  92.         return new Source("<div class=\"ui four doubling cards cardsOtherProducts\">
  93.      <div class=\"swiper-flagshipProducts-button-prev\"></div>
  94.     <div class=\"swiper swiper-flagshipProducts swiper-flagshipProducts--3\" data-slidesnumber=\"3\">
  95.         <div class=\"swiper-wrapper\" >
  96.             {% if products is defined and products is not empty %}
  97.                 {% for product in products %}
  98.                     {{ render(url('sylius_shop_partial_product_show_by_slug', {
  99.                         'slug': product.slug,
  100.                         'template': '@SyliusShop/Product/_box.html.twig'
  101.                     })) }}
  102.                 {% endfor %}
  103.             {% endif %}
  104.         </div>
  105.         <div class=\"swiper-pagination-flagshipProducts\"></div>
  106.     </div>
  107.     <div class=\"swiper-flagshipProducts-button-next\"></div>
  108. </div>
  109. ""@SyliusShop/Product/_horizontalList.html.twig""/var/www/html/templates/bundles/SyliusShopBundle/Product/_horizontalList.html.twig");
  110.     }
  111. }