var/cache/dev/twig/14/14b79e1aace0e0a56ab46f0e037f10eb.php line 84

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/Index/_main.html.twig */
  14. class __TwigTemplate_211d45ea1908bc8a6096d809e456c98d 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/Index/_main.html.twig"));
  31.         // line 1
  32.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusUi/Macro/messages.html.twig""@SyliusShop/Product/Index/_main.html.twig"1)->unwrap();
  33.         // line 2
  34.         $macros["pagination"] = $this->macros["pagination"] = $this->loadTemplate("@SyliusUi/Macro/pagination.html.twig""@SyliusShop/Product/Index/_main.html.twig"2)->unwrap();
  35.         // line 3
  36.         echo "
  37. ";
  38.         // line 4
  39.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.index.search"$context);
  40.         echo "
  41. <div class=\"ui clearing hidden divider\"></div>
  42. ";
  43.         // line 8
  44.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.index.before_list", ["products" => twig_get_attribute($this->env$this->source, ($context["resources"] ?? null), "data", [], "any"falsefalsefalse8)]);
  45.         echo "
  46. ";
  47.         // line 10
  48.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, ($context["resources"] ?? null), "data", [], "any"falsefalsefalse10)) > 0)) {
  49.             // line 11
  50.             echo "    <div class=\"ui three cards\" id=\"products\" ";
  51.             echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("products");
  52.             echo ">
  53.         ";
  54.             // line 12
  55.             $context['_parent'] = $context;
  56.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, ($context["resources"] ?? null), "data", [], "any"falsefalsefalse12));
  57.             $context['loop'] = [
  58.               'parent' => $context['_parent'],
  59.               'index0' => 0,
  60.               'index'  => 1,
  61.               'first'  => true,
  62.             ];
  63.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  64.                 $length count($context['_seq']);
  65.                 $context['loop']['revindex0'] = $length 1;
  66.                 $context['loop']['revindex'] = $length;
  67.                 $context['loop']['length'] = $length;
  68.                 $context['loop']['last'] = === $length;
  69.             }
  70.             foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  71.                 // line 13
  72.                 echo "            ";
  73.                 $this->loadTemplate("@SyliusShop/Product/_box.html.twig""@SyliusShop/Product/Index/_main.html.twig"13)->display($context);
  74.                 // line 14
  75.                 echo "        ";
  76.                 ++$context['loop']['index0'];
  77.                 ++$context['loop']['index'];
  78.                 $context['loop']['first'] = false;
  79.                 if (isset($context['loop']['length'])) {
  80.                     --$context['loop']['revindex0'];
  81.                     --$context['loop']['revindex'];
  82.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  83.                 }
  84.             }
  85.             $_parent $context['_parent'];
  86.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  87.             $context array_intersect_key($context$_parent) + $_parent;
  88.             // line 15
  89.             echo "    </div>
  90.     <div class=\"ui hidden divider\"></div>
  91.     ";
  92.             // line 18
  93.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.index.before_pagination", ["products" => twig_get_attribute($this->env$this->source, ($context["resources"] ?? null), "data", [], "any"falsefalsefalse18)]);
  94.             echo "
  95.     ";
  96.             // line 20
  97.             echo twig_call_macro($macros["pagination"], "macro_simple", [twig_get_attribute($this->env$this->source, ($context["resources"] ?? null), "data", [], "any"falsefalsefalse20)], 20$context$this->getSourceContext());
  98.             echo "
  99. ";
  100.         } else {
  101.             // line 22
  102.             echo "    ";
  103.             echo twig_call_macro($macros["messages"], "macro_info", ["sylius.ui.no_results_to_display"], 22$context$this->getSourceContext());
  104.             echo "
  105. ";
  106.         }
  107.         
  108.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  109.     }
  110.     public function getTemplateName()
  111.     {
  112.         return "@SyliusShop/Product/Index/_main.html.twig";
  113.     }
  114.     public function isTraitable()
  115.     {
  116.         return false;
  117.     }
  118.     public function getDebugInfo()
  119.     {
  120.         return array (  115 => 22,  110 => 20,  105 => 18,  100 => 15,  86 => 14,  83 => 13,  66 => 12,  61 => 11,  59 => 10,  54 => 8,  47 => 4,  44 => 3,  42 => 2,  40 => 1,);
  121.     }
  122.     public function getSourceContext()
  123.     {
  124.         return new Source("""@SyliusShop/Product/Index/_main.html.twig""/srv/open_marketplace/vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Index/_main.html.twig");
  125.     }
  126. }