var/cache/dev/twig/d9/d9331df87fe5d7c32d68bbbe04187508.php line 64

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_59713ba4f7468b351ff0486df7fb01cc 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/_horizontalList.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/_horizontalList.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"ui four doubling cards\">
  35.     ";
  36.         // line 2
  37.         $context['_parent'] = $context;
  38.         $context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'2$this->source); })()));
  39.         $context['loop'] = [
  40.           'parent' => $context['_parent'],
  41.           'index0' => 0,
  42.           'index'  => 1,
  43.           'first'  => true,
  44.         ];
  45.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  46.             $length count($context['_seq']);
  47.             $context['loop']['revindex0'] = $length 1;
  48.             $context['loop']['revindex'] = $length;
  49.             $context['loop']['length'] = $length;
  50.             $context['loop']['last'] = === $length;
  51.         }
  52.         foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  53.             // line 3
  54.             echo "        ";
  55.             $this->loadTemplate("@SyliusShop/Product/_box.html.twig""@SyliusShop/Product/_horizontalList.html.twig"3)->display($context);
  56.             // line 4
  57.             echo "    ";
  58.             ++$context['loop']['index0'];
  59.             ++$context['loop']['index'];
  60.             $context['loop']['first'] = false;
  61.             if (isset($context['loop']['length'])) {
  62.                 --$context['loop']['revindex0'];
  63.                 --$context['loop']['revindex'];
  64.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  65.             }
  66.         }
  67.         $_parent $context['_parent'];
  68.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  69.         $context array_intersect_key($context$_parent) + $_parent;
  70.         // line 5
  71.         echo "</div>
  72. ";
  73.         
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75.         
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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 (  80 => 5,  66 => 4,  63 => 3,  46 => 2,  43 => 1,);
  89.     }
  90.     public function getSourceContext()
  91.     {
  92.         return new Source("<div class=\"ui four doubling cards\">
  93.     {% for product in products %}
  94.         {% include '@SyliusShop/Product/_box.html.twig' %}
  95.     {% endfor %}
  96. </div>
  97. ""@SyliusShop/Product/_horizontalList.html.twig""/var/www/Bikers/vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Resources/views/Product/_horizontalList.html.twig");
  98.     }
  99. }