var/cache/dev/twig/c6/c6abb03f1ebb9af1aeed7312d1e52029.php line 38

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. /* @BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig */
  14. class __TwigTemplate_d344ef1240790d810ebea3e4386e27e8 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->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "@SyliusShop/layout.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"));
  38.         // line 3
  39.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'3$this->source); })()), [=> "@SyliusUi/Form/theme.html.twig"=> "Context/Shop/ProductCategory/formTheme.html.twig"], true);
  40.         // line 5
  41.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusUi/Macro/messages.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"5)->unwrap();
  42.         // line 6
  43.         $macros["pagination"] = $this->macros["pagination"] = $this->loadTemplate("@SyliusUi/Macro/pagination.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"6)->unwrap();
  44.         // line 1
  45.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"1);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 8
  53.     public function block_content($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  60.         // line 9
  61.         echo "    ";
  62.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'9$this->source); })()), 'form_start', ["method" => "GET""attr" => ["class" => "ui loadable form"]]);
  63.         echo "
  64.     <div class=\"ui stackable grid\">
  65.         <div class=\"four wide column\">
  66.             <div id=\"filters-vertical\" class=\"ui fluid vertical menu product-filters\">
  67.                 <div class=\"ui accordion filters-accordion\">
  68.                     <div class=\"title\">
  69.                         <div class=\"header item\">
  70.                             ";
  71.         // line 16
  72.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_elasticsearch_plugin.ui.filter_results"), "html"nulltrue);
  73.         echo "
  74.                             <i class=\"dropdown icon\"></i>
  75.                         </div>
  76.                     </div>
  77.                     <div class=\"content\">
  78.                         ";
  79.         // line 21
  80.         $this->loadTemplate("@BitBagSyliusElasticsearchPlugin/Shop/Product/Index/_filterForm.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"21)->display($context);
  81.         // line 22
  82.         echo "                    </div>
  83.                 </div>
  84.             </div>
  85.         </div>
  86.         <div class=\"twelve wide column\">
  87.             <h1 class=\"ui monster section dividing header\">
  88.                 ";
  89.         // line 28
  90.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'28$this->source); })()), "name", [], "any"falsefalsefalse28), "html"nulltrue);
  91.         echo "
  92.                 ";
  93.         // line 29
  94.         echo $this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\RenderBannerExtension']->renderBanner("Context/Shop/Blog/banner.html.twig");
  95.         echo "
  96.                 ";
  97.         // line 30
  98.         $this->loadTemplate("Context/Common/Banner/_categoryBanner.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"30)->display($context);
  99.         // line 31
  100.         echo "                <div class=\"sub header\">";
  101.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'31$this->source); })()), "description", [], "any"falsefalsefalse31), "html"nulltrue);
  102.         echo "</div>
  103.             </h1>
  104.             <div class=\"ui segment\">
  105.                 <div class=\"ui stackable grid\">
  106.                     <div class=\"five wide column\">
  107.                         ";
  108.         // line 36
  109.         $this->loadTemplate("@BitBagSyliusElasticsearchPlugin/Shop/Product/Index/_sorting.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"36)->display($context);
  110.         // line 37
  111.         echo "                        ";
  112.         $this->loadTemplate("@BitBagSyliusElasticsearchPlugin/Shop/Product/Index/_pagination.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"37)->display($context);
  113.         // line 38
  114.         echo "                    </div>
  115.                     <div class=\"eleven wide column\">
  116.                         <div class=\"ui search\" id=\"products-search\">
  117.                             <div class=\"ui fluid large left icon input\">
  118.                                 ";
  119.         // line 42
  120.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'42$this->source); })()), "name", [], "any"falsefalsefalse42), 'widget', ["attr" => ["placeholder" => "sylius.ui.search""class" => "prompt"]]);
  121.         echo "
  122.                                 <i class=\"search icon\"></i>
  123.                             </div>
  124.                         </div>
  125.                     </div>
  126.                 </div>
  127.             </div>
  128.             ";
  129.         // line 50
  130.         if ((twig_length_filter($this->env, (isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'50$this->source); })())) > 0)) {
  131.             // line 51
  132.             echo "                <div class=\"category-products-grid\" id=\"products\">
  133.                     ";
  134.             // line 52
  135.             $context['_parent'] = $context;
  136.             $context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'52$this->source); })()));
  137.             $context['loop'] = [
  138.               'parent' => $context['_parent'],
  139.               'index0' => 0,
  140.               'index'  => 1,
  141.               'first'  => true,
  142.             ];
  143.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  144.                 $length count($context['_seq']);
  145.                 $context['loop']['revindex0'] = $length 1;
  146.                 $context['loop']['revindex'] = $length;
  147.                 $context['loop']['length'] = $length;
  148.                 $context['loop']['last'] = === $length;
  149.             }
  150.             foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  151.                 // line 53
  152.                 echo "                        ";
  153.                 $this->loadTemplate("@SyliusShop/Product/_box.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"53)->display($context);
  154.                 // line 54
  155.                 echo "                    ";
  156.                 ++$context['loop']['index0'];
  157.                 ++$context['loop']['index'];
  158.                 $context['loop']['first'] = false;
  159.                 if (isset($context['loop']['length'])) {
  160.                     --$context['loop']['revindex0'];
  161.                     --$context['loop']['revindex'];
  162.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  163.                 }
  164.             }
  165.             $_parent $context['_parent'];
  166.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  167.             $context array_intersect_key($context$_parent) + $_parent;
  168.             // line 55
  169.             echo "                </div>
  170.                 <div class=\"ui hidden divider\"></div>
  171.                 ";
  172.             // line 58
  173.             echo twig_call_macro($macros["pagination"], "macro_simple", [(isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'58$this->source); })())], 58$context$this->getSourceContext());
  174.             echo "
  175.             ";
  176.         } else {
  177.             // line 60
  178.             echo "                ";
  179.             echo twig_call_macro($macros["messages"], "macro_info", ["sylius.ui.no_results_to_display"], 60$context$this->getSourceContext());
  180.             echo "
  181.             ";
  182.         }
  183.         // line 62
  184.         echo "        </div>
  185.     </div>
  186.     <button type=\"submit\" style=\"display: none\">
  187.         <i class=\"search icon\"></i>
  188.         ";
  189.         // line 66
  190.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_elasticsearch_plugin.ui.filter"), "html"nulltrue);
  191.         echo "
  192.     </button>
  193.     ";
  194.         // line 68
  195.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'68$this->source); })()), 'form_end', ["render_rest" => false]);
  196.         echo "
  197.     ";
  198.         // line 70
  199.         $this->loadTemplate("@SyliusShop/Common/Sections/digitalEcosystem.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"70)->display($context);
  200.         
  201.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  202.         
  203.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  204.     }
  205.     public function getTemplateName()
  206.     {
  207.         return "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig";
  208.     }
  209.     public function isTraitable()
  210.     {
  211.         return false;
  212.     }
  213.     public function getDebugInfo()
  214.     {
  215.         return array (  216 => 70,  211 => 68,  206 => 66,  200 => 62,  194 => 60,  189 => 58,  184 => 55,  170 => 54,  167 => 53,  150 => 52,  147 => 51,  145 => 50,  134 => 42,  128 => 38,  125 => 37,  123 => 36,  114 => 31,  112 => 30,  108 => 29,  104 => 28,  96 => 22,  94 => 21,  86 => 16,  75 => 9,  65 => 8,  54 => 1,  52 => 6,  50 => 5,  48 => 3,  35 => 1,);
  216.     }
  217.     public function getSourceContext()
  218.     {
  219.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  220. {% form_theme form with ['@SyliusUi/Form/theme.html.twig', 'Context/Shop/ProductCategory/formTheme.html.twig'] %}
  221. {% import '@SyliusUi/Macro/messages.html.twig' as messages %}
  222. {% import '@SyliusUi/Macro/pagination.html.twig' as pagination %}
  223. {% block content %}
  224.     {{ form_start(form, {'method': 'GET', 'attr': {'class': 'ui loadable form'}}) }}
  225.     <div class=\"ui stackable grid\">
  226.         <div class=\"four wide column\">
  227.             <div id=\"filters-vertical\" class=\"ui fluid vertical menu product-filters\">
  228.                 <div class=\"ui accordion filters-accordion\">
  229.                     <div class=\"title\">
  230.                         <div class=\"header item\">
  231.                             {{ 'bitbag_sylius_elasticsearch_plugin.ui.filter_results'|trans }}
  232.                             <i class=\"dropdown icon\"></i>
  233.                         </div>
  234.                     </div>
  235.                     <div class=\"content\">
  236.                         {% include '@BitBagSyliusElasticsearchPlugin/Shop/Product/Index/_filterForm.html.twig' %}
  237.                     </div>
  238.                 </div>
  239.             </div>
  240.         </div>
  241.         <div class=\"twelve wide column\">
  242.             <h1 class=\"ui monster section dividing header\">
  243.                 {{ taxon.name }}
  244.                 {{ bitbag_cms_render_banner('Context/Shop/Blog/banner.html.twig') }}
  245.                 {% include 'Context/Common/Banner/_categoryBanner.html.twig' %}
  246.                 <div class=\"sub header\">{{ taxon.description }}</div>
  247.             </h1>
  248.             <div class=\"ui segment\">
  249.                 <div class=\"ui stackable grid\">
  250.                     <div class=\"five wide column\">
  251.                         {% include '@BitBagSyliusElasticsearchPlugin/Shop/Product/Index/_sorting.html.twig' %}
  252.                         {% include '@BitBagSyliusElasticsearchPlugin/Shop/Product/Index/_pagination.html.twig' %}
  253.                     </div>
  254.                     <div class=\"eleven wide column\">
  255.                         <div class=\"ui search\" id=\"products-search\">
  256.                             <div class=\"ui fluid large left icon input\">
  257.                                 {{ form_widget(form.name, {'attr': {'placeholder': 'sylius.ui.search', 'class': 'prompt'}}) }}
  258.                                 <i class=\"search icon\"></i>
  259.                             </div>
  260.                         </div>
  261.                     </div>
  262.                 </div>
  263.             </div>
  264.             {% if products|length > 0 %}
  265.                 <div class=\"category-products-grid\" id=\"products\">
  266.                     {% for product in products %}
  267.                         {% include '@SyliusShop/Product/_box.html.twig' %}
  268.                     {% endfor %}
  269.                 </div>
  270.                 <div class=\"ui hidden divider\"></div>
  271.                 {{ pagination.simple(products) }}
  272.             {% else %}
  273.                 {{ messages.info('sylius.ui.no_results_to_display') }}
  274.             {% endif %}
  275.         </div>
  276.     </div>
  277.     <button type=\"submit\" style=\"display: none\">
  278.         <i class=\"search icon\"></i>
  279.         {{ 'bitbag_sylius_elasticsearch_plugin.ui.filter'|trans }}
  280.     </button>
  281.     {{ form_end(form, {'render_rest': false}) }}
  282.     {% include \"@SyliusShop/Common/Sections/digitalEcosystem.html.twig\" %}
  283. {% endblock %}
  284. ""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig""/srv/open_marketplace/templates/bundles/BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig");
  285.     }
  286. }