var/cache/dev/twig/9b/9b45a58109449efa11ce306a0544eea8.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_3896d7b46a22748140ff374d09ea2e39 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.         // line 1
  32.         echo "<div class=\"ui four doubling cards\">
  33.     ";
  34.         // line 2
  35.         $context['_parent'] = $context;
  36.         $context['_seq'] = twig_ensure_traversable(($context["products"] ?? null));
  37.         $context['loop'] = [
  38.           'parent' => $context['_parent'],
  39.           'index0' => 0,
  40.           'index'  => 1,
  41.           'first'  => true,
  42.         ];
  43.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  44.             $length count($context['_seq']);
  45.             $context['loop']['revindex0'] = $length 1;
  46.             $context['loop']['revindex'] = $length;
  47.             $context['loop']['length'] = $length;
  48.             $context['loop']['last'] = === $length;
  49.         }
  50.         foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  51.             // line 3
  52.             echo "        ";
  53.             $this->loadTemplate("@SyliusShop/Product/_box.html.twig""@SyliusShop/Product/_horizontalList.html.twig"3)->display($context);
  54.             // line 4
  55.             echo "    ";
  56.             ++$context['loop']['index0'];
  57.             ++$context['loop']['index'];
  58.             $context['loop']['first'] = false;
  59.             if (isset($context['loop']['length'])) {
  60.                 --$context['loop']['revindex0'];
  61.                 --$context['loop']['revindex'];
  62.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  63.             }
  64.         }
  65.         $_parent $context['_parent'];
  66.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  67.         $context array_intersect_key($context$_parent) + $_parent;
  68.         // line 5
  69.         echo "</div>
  70. ";
  71.         
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  73.     }
  74.     public function getTemplateName()
  75.     {
  76.         return "@SyliusShop/Product/_horizontalList.html.twig";
  77.     }
  78.     public function isTraitable()
  79.     {
  80.         return false;
  81.     }
  82.     public function getDebugInfo()
  83.     {
  84.         return array (  77 => 5,  63 => 4,  60 => 3,  43 => 2,  40 => 1,);
  85.     }
  86.     public function getSourceContext()
  87.     {
  88.         return new Source("""@SyliusShop/Product/_horizontalList.html.twig""/srv/open_marketplace/vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Resources/views/Product/_horizontalList.html.twig");
  89.     }
  90. }