var/cache/dev/twig/ac/acc0359d6bb0cbdf87ed274523f6adfe.php line 57

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. /* Context/Shop/Country/index.html.twig */
  14. class __TwigTemplate_68ff9cc3696186635dca9509dd2d1fbf 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""Context/Shop/Country/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""Context/Shop/Country/index.html.twig"));
  38.         // line 2
  39.         $macros["pagination"] = $this->macros["pagination"] = $this->loadTemplate("@SyliusUi/Macro/pagination.html.twig""Context/Shop/Country/index.html.twig"2)->unwrap();
  40.         // line 3
  41.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusUi/Macro/messages.html.twig""Context/Shop/Country/index.html.twig"3)->unwrap();
  42.         // line 4
  43.         $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.'4$this->source); })()), [=> "@SyliusUi/Form/theme.html.twig"=> "Context/Shop/ProductCategory/formTheme.html.twig"], true);
  44.         // line 6
  45.         $context["reviewsCount"] = 0;
  46.         // line 1
  47.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""Context/Shop/Country/index.html.twig"1);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 8
  55.     public function block_content($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  62.         // line 9
  63.         echo "        ";
  64.         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"]]);
  65.         echo "
  66.         <div class=\"ui stackable grid\">
  67.             <div class=\"four wide column\">
  68.                 <div id=\"filters-vertical\" class=\"ui fluid vertical menu product-filters\">
  69.                     <div class=\"ui accordion filters-accordion\">
  70.                         <div class=\"title\">
  71.                             <div class=\"header item\">
  72.                                 ";
  73.         // line 16
  74.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_elasticsearch_plugin.ui.filter_results"), "html"nulltrue);
  75.         echo "
  76.                                 <i class=\"dropdown icon\"></i>
  77.                             </div>
  78.                         </div>
  79.                         <div class=\"content\">
  80.                             <div class=\"item\">
  81.                                 ";
  82.         // line 22
  83.         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.'22$this->source); })()), "filters", [], "any"falsefalsefalse22), 'row');
  84.         echo "
  85.                             </div>
  86.                         </div>
  87.                     </div>
  88.                 </div>
  89.             </div>
  90.             <div class=\"twelve wide column\">
  91.                 <h1 class=\"ui monster section dividing header\">
  92.                     ";
  93.         // line 30
  94.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'30$this->source); })()), "name", [], "any"falsefalsefalse30), "html"nulltrue);
  95.         echo "
  96.                     <div class=\"sub header\">
  97.                         ";
  98.         // line 32
  99.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.country_description"), "html"nulltrue);
  100.         echo "
  101.                     </div>
  102.                 </h1>
  103.                 <div class=\"ui segment\">
  104.                     <div class=\"ui stackable grid\">
  105.                         <div class=\"five wide column\">
  106.                             ";
  107.         // line 39
  108.         $context["route"] = "open_marketplace_shop_country_page";
  109.         // line 40
  110.         echo "                            ";
  111.         $context["queryParameters"] = $this->extensions['BitBag\SyliusElasticsearchPlugin\Twig\Extension\UnsetArrayElementsExtension']->unsetElements(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'40$this->source); })()), "request", [], "any"falsefalsefalse40), "query", [], "any"falsefalsefalse40), "all", [], "any"falsefalsefalse40), [=> "order_by"=> "sort"=> "page"]);
  112.         // line 41
  113.         echo "
  114.                             <div class=\"ui compact menu\">
  115.                                 <div class=\"ui simple dropdown item\">
  116.                                     ";
  117.         // line 44
  118.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_elasticsearch_plugin.ui.sort"), "html"nulltrue);
  119.         echo "
  120.                                     <i class=\"dropdown icon\"></i>
  121.                                     <div class=\"menu\">
  122.                                         <a class=\"item\" href=\"";
  123.         // line 47
  124.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'47$this->source); })()), twig_array_merge(["code" => twig_get_attribute($this->env$this->source, (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'47$this->source); })()), "code", [], "any"falsefalsefalse47), "order_by" => "sold_units""sort" => "desc"], (isset($context["queryParameters"]) || array_key_exists("queryParameters"$context) ? $context["queryParameters"] : (function () { throw new RuntimeError('Variable "queryParameters" does not exist.'47$this->source); })()))), "html"nulltrue);
  125.         echo "\">";
  126.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_elasticsearch_plugin.ui.bestsellers"), "html"nulltrue);
  127.         echo "</a>
  128.                                         <a class=\"item\" href=\"";
  129.         // line 48
  130.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'48$this->source); })()), twig_array_merge(["code" => twig_get_attribute($this->env$this->source, (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'48$this->source); })()), "code", [], "any"falsefalsefalse48), "order_by" => "product_created_at""sort" => "desc"], (isset($context["queryParameters"]) || array_key_exists("queryParameters"$context) ? $context["queryParameters"] : (function () { throw new RuntimeError('Variable "queryParameters" does not exist.'48$this->source); })()))), "html"nulltrue);
  131.         echo "\">";
  132.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_elasticsearch_plugin.ui.newest"), "html"nulltrue);
  133.         echo "</a>
  134.                                         <a class=\"item\" href=\"";
  135.         // line 49
  136.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'49$this->source); })()), twig_array_merge(["code" => twig_get_attribute($this->env$this->source, (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'49$this->source); })()), "code", [], "any"falsefalsefalse49), "order_by" => "product_created_at""sort" => "asc"], (isset($context["queryParameters"]) || array_key_exists("queryParameters"$context) ? $context["queryParameters"] : (function () { throw new RuntimeError('Variable "queryParameters" does not exist.'49$this->source); })()))), "html"nulltrue);
  137.         echo "\">";
  138.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_elasticsearch_plugin.ui.oldest"), "html"nulltrue);
  139.         echo "</a>
  140.                                         <a class=\"item\" href=\"";
  141.         // line 50
  142.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'50$this->source); })()), twig_array_merge(["code" => twig_get_attribute($this->env$this->source, (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'50$this->source); })()), "code", [], "any"falsefalsefalse50), "order_by" => "price""sort" => "desc"], (isset($context["queryParameters"]) || array_key_exists("queryParameters"$context) ? $context["queryParameters"] : (function () { throw new RuntimeError('Variable "queryParameters" does not exist.'50$this->source); })()))), "html"nulltrue);
  143.         echo "\">";
  144.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_elasticsearch_plugin.ui.most_expensive"), "html"nulltrue);
  145.         echo "</a>
  146.                                         <a class=\"item\" href=\"";
  147.         // line 51
  148.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'51$this->source); })()), twig_array_merge(["code" => twig_get_attribute($this->env$this->source, (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'51$this->source); })()), "code", [], "any"falsefalsefalse51), "order_by" => "price""sort" => "asc"], (isset($context["queryParameters"]) || array_key_exists("queryParameters"$context) ? $context["queryParameters"] : (function () { throw new RuntimeError('Variable "queryParameters" does not exist.'51$this->source); })()))), "html"nulltrue);
  149.         echo "\">";
  150.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_elasticsearch_plugin.ui.cheapest"), "html"nulltrue);
  151.         echo "</a>
  152.                                     </div>
  153.                                 </div>
  154.                             </div>
  155.                             ";
  156.         // line 56
  157.         $context["queryParameters"] = $this->extensions['BitBag\SyliusElasticsearchPlugin\Twig\Extension\UnsetArrayElementsExtension']->unsetElements(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'56$this->source); })()), "request", [], "any"falsefalsefalse56), "query", [], "any"falsefalsefalse56), "all", [], "any"falsefalsefalse56), [=> "limit"=> "page"]);
  158.         // line 57
  159.         echo "
  160.                             <div class=\"ui compact menu\">
  161.                                 <div class=\"ui simple dropdown item\">
  162.                                     <span>";
  163.         // line 60
  164.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_elasticsearch_plugin.ui.per_page"), "html"nulltrue);
  165.         echo "</span>
  166.                                     <i class=\"dropdown icon\"></i>
  167.                                     <div class=\"menu\">
  168.                                         ";
  169.         // line 63
  170.         $context['_parent'] = $context;
  171.         $context['_seq'] = twig_ensure_traversable((isset($context["bitbag_es_pagination_available_page_limits"]) || array_key_exists("bitbag_es_pagination_available_page_limits"$context) ? $context["bitbag_es_pagination_available_page_limits"] : (function () { throw new RuntimeError('Variable "bitbag_es_pagination_available_page_limits" does not exist.'63$this->source); })()));
  172.         foreach ($context['_seq'] as $context["_key"] => $context["limit"]) {
  173.             // line 64
  174.             echo "                                            <a class=\"item\" href=\"";
  175.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("open_marketplace_shop_country_page"twig_array_merge(["code" => twig_get_attribute($this->env$this->source, (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'64$this->source); })()), "code", [], "any"falsefalsefalse64), "limit" => $context["limit"]], (isset($context["queryParameters"]) || array_key_exists("queryParameters"$context) ? $context["queryParameters"] : (function () { throw new RuntimeError('Variable "queryParameters" does not exist.'64$this->source); })()))), "html"nulltrue);
  176.             echo "\">";
  177.             echo twig_escape_filter($this->env$context["limit"], "html"nulltrue);
  178.             echo "</a>
  179.                                         ";
  180.         }
  181.         $_parent $context['_parent'];
  182.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['limit'], $context['_parent'], $context['loop']);
  183.         $context array_intersect_key($context$_parent) + $_parent;
  184.         // line 66
  185.         echo "                                    </div>
  186.                                 </div>
  187.                             </div>
  188.                         </div>
  189.                         <div class=\"eleven wide column\">
  190.                             <div class=\"ui search\" id=\"products-search\">
  191.                                 <div class=\"ui fluid large left icon input\">
  192.                                     ";
  193.         // line 74
  194.         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.'74$this->source); })()), "name", [], "any"falsefalsefalse74), 'widget', ["attr" => ["placeholder" => "sylius.ui.search""class" => "prompt"]]);
  195.         echo "
  196.                                     <i class=\"search icon\"></i>
  197.                                 </div>
  198.                             </div>
  199.                         </div>
  200.                     </div>
  201.                 </div>
  202.                 ";
  203.         // line 82
  204.         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.'82$this->source); })())) > 0)) {
  205.             // line 83
  206.             echo "                    <div class=\"category-products-grid\" id=\"products\">
  207.                         ";
  208.             // line 84
  209.             $context['_parent'] = $context;
  210.             $context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'84$this->source); })()));
  211.             $context['loop'] = [
  212.               'parent' => $context['_parent'],
  213.               'index0' => 0,
  214.               'index'  => 1,
  215.               'first'  => true,
  216.             ];
  217.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  218.                 $length count($context['_seq']);
  219.                 $context['loop']['revindex0'] = $length 1;
  220.                 $context['loop']['revindex'] = $length;
  221.                 $context['loop']['length'] = $length;
  222.                 $context['loop']['last'] = === $length;
  223.             }
  224.             foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  225.                 // line 85
  226.                 echo "                            <div class=\"column\">
  227.                                 ";
  228.                 // line 86
  229.                 $this->loadTemplate("@SyliusShop/Product/_box.html.twig""Context/Shop/Country/index.html.twig"86)->display($context);
  230.                 // line 87
  231.                 echo "                            </div>
  232.                         ";
  233.                 ++$context['loop']['index0'];
  234.                 ++$context['loop']['index'];
  235.                 $context['loop']['first'] = false;
  236.                 if (isset($context['loop']['length'])) {
  237.                     --$context['loop']['revindex0'];
  238.                     --$context['loop']['revindex'];
  239.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  240.                 }
  241.             }
  242.             $_parent $context['_parent'];
  243.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  244.             $context array_intersect_key($context$_parent) + $_parent;
  245.             // line 89
  246.             echo "                    </div>
  247.                     <div class=\"ui hidden divider\"></div>
  248.                     ";
  249.             // line 92
  250.             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.'92$this->source); })())], 92$context$this->getSourceContext());
  251.             echo "
  252.                 ";
  253.         } else {
  254.             // line 94
  255.             echo "                    ";
  256.             echo twig_call_macro($macros["messages"], "macro_info", ["sylius.ui.no_results_to_display"], 94$context$this->getSourceContext());
  257.             echo "
  258.                 ";
  259.         }
  260.         // line 96
  261.         echo "            </div>
  262.         </div>
  263.         <button type=\"submit\" style=\"display: none\">
  264.             <i class=\"search icon\"></i>
  265.             ";
  266.         // line 100
  267.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_elasticsearch_plugin.ui.filter"), "html"nulltrue);
  268.         echo "
  269.         </button>
  270.         ";
  271.         // line 102
  272.         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.'102$this->source); })()), 'form_end', ["render_rest" => false]);
  273.         echo "
  274.     <div class=\"ui clearing hidden divider\"></div>
  275. ";
  276.         
  277.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  278.         
  279.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  280.     }
  281.     public function getTemplateName()
  282.     {
  283.         return "Context/Shop/Country/index.html.twig";
  284.     }
  285.     public function isTraitable()
  286.     {
  287.         return false;
  288.     }
  289.     public function getDebugInfo()
  290.     {
  291.         return array (  291 => 102,  286 => 100,  280 => 96,  274 => 94,  269 => 92,  264 => 89,  249 => 87,  247 => 86,  244 => 85,  227 => 84,  224 => 83,  222 => 82,  211 => 74,  201 => 66,  190 => 64,  186 => 63,  180 => 60,  175 => 57,  173 => 56,  163 => 51,  157 => 50,  151 => 49,  145 => 48,  139 => 47,  133 => 44,  128 => 41,  125 => 40,  123 => 39,  113 => 32,  108 => 30,  97 => 22,  88 => 16,  77 => 9,  67 => 8,  56 => 1,  54 => 6,  52 => 4,  50 => 3,  48 => 2,  35 => 1,);
  292.     }
  293.     public function getSourceContext()
  294.     {
  295.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  296. {% import '@SyliusUi/Macro/pagination.html.twig' as pagination %}
  297. {% import '@SyliusUi/Macro/messages.html.twig' as messages %}
  298. {% form_theme form with ['@SyliusUi/Form/theme.html.twig', 'Context/Shop/ProductCategory/formTheme.html.twig'] %}
  299. {% set reviewsCount = 0 %}
  300. {% block content %}
  301.         {{ form_start(form, {'method': 'GET', 'attr': {'class': 'ui loadable form'}}) }}
  302.         <div class=\"ui stackable grid\">
  303.             <div class=\"four wide column\">
  304.                 <div id=\"filters-vertical\" class=\"ui fluid vertical menu product-filters\">
  305.                     <div class=\"ui accordion filters-accordion\">
  306.                         <div class=\"title\">
  307.                             <div class=\"header item\">
  308.                                 {{ 'bitbag_sylius_elasticsearch_plugin.ui.filter_results'|trans }}
  309.                                 <i class=\"dropdown icon\"></i>
  310.                             </div>
  311.                         </div>
  312.                         <div class=\"content\">
  313.                             <div class=\"item\">
  314.                                 {{ form_row(form.filters) }}
  315.                             </div>
  316.                         </div>
  317.                     </div>
  318.                 </div>
  319.             </div>
  320.             <div class=\"twelve wide column\">
  321.                 <h1 class=\"ui monster section dividing header\">
  322.                     {{ country.name }}
  323.                     <div class=\"sub header\">
  324.                         {{ 'app.ui.country_description'|trans }}
  325.                     </div>
  326.                 </h1>
  327.                 <div class=\"ui segment\">
  328.                     <div class=\"ui stackable grid\">
  329.                         <div class=\"five wide column\">
  330.                             {% set route = 'open_marketplace_shop_country_page' %}
  331.                             {% set queryParameters = app.request.query.all|unset_elements(['order_by', 'sort', 'page']) %}
  332.                             <div class=\"ui compact menu\">
  333.                                 <div class=\"ui simple dropdown item\">
  334.                                     {{ 'bitbag_sylius_elasticsearch_plugin.ui.sort'|trans }}
  335.                                     <i class=\"dropdown icon\"></i>
  336.                                     <div class=\"menu\">
  337.                                         <a class=\"item\" href=\"{{ path(route, {'code': country.code, 'order_by': 'sold_units', 'sort': 'desc'}|merge(queryParameters)) }}\">{{ 'bitbag_sylius_elasticsearch_plugin.ui.bestsellers'|trans }}</a>
  338.                                         <a class=\"item\" href=\"{{ path(route, {'code': country.code, 'order_by': 'product_created_at', 'sort': 'desc'}|merge(queryParameters)) }}\">{{ 'bitbag_sylius_elasticsearch_plugin.ui.newest'|trans }}</a>
  339.                                         <a class=\"item\" href=\"{{ path(route, {'code': country.code, 'order_by': 'product_created_at', 'sort': 'asc'}|merge(queryParameters)) }}\">{{ 'bitbag_sylius_elasticsearch_plugin.ui.oldest'|trans }}</a>
  340.                                         <a class=\"item\" href=\"{{ path(route, {'code': country.code, 'order_by': 'price', 'sort': 'desc'}|merge(queryParameters)) }}\">{{ 'bitbag_sylius_elasticsearch_plugin.ui.most_expensive'|trans }}</a>
  341.                                         <a class=\"item\" href=\"{{ path(route, {'code': country.code, 'order_by': 'price', 'sort': 'asc'}|merge(queryParameters)) }}\">{{ 'bitbag_sylius_elasticsearch_plugin.ui.cheapest'|trans }}</a>
  342.                                     </div>
  343.                                 </div>
  344.                             </div>
  345.                             {% set queryParameters = app.request.query.all|unset_elements(['limit', 'page']) %}
  346.                             <div class=\"ui compact menu\">
  347.                                 <div class=\"ui simple dropdown item\">
  348.                                     <span>{{ 'bitbag_sylius_elasticsearch_plugin.ui.per_page'|trans }}</span>
  349.                                     <i class=\"dropdown icon\"></i>
  350.                                     <div class=\"menu\">
  351.                                         {% for limit in bitbag_es_pagination_available_page_limits %}
  352.                                             <a class=\"item\" href=\"{{ path('open_marketplace_shop_country_page', {'code': country.code, 'limit': limit}|merge(queryParameters)) }}\">{{ limit }}</a>
  353.                                         {% endfor %}
  354.                                     </div>
  355.                                 </div>
  356.                             </div>
  357.                         </div>
  358.                         <div class=\"eleven wide column\">
  359.                             <div class=\"ui search\" id=\"products-search\">
  360.                                 <div class=\"ui fluid large left icon input\">
  361.                                     {{ form_widget(form.name, {'attr': {'placeholder': 'sylius.ui.search', 'class': 'prompt'}}) }}
  362.                                     <i class=\"search icon\"></i>
  363.                                 </div>
  364.                             </div>
  365.                         </div>
  366.                     </div>
  367.                 </div>
  368.                 {% if products|length > 0 %}
  369.                     <div class=\"category-products-grid\" id=\"products\">
  370.                         {% for product in products %}
  371.                             <div class=\"column\">
  372.                                 {% include '@SyliusShop/Product/_box.html.twig' %}
  373.                             </div>
  374.                         {% endfor %}
  375.                     </div>
  376.                     <div class=\"ui hidden divider\"></div>
  377.                     {{ pagination.simple(products) }}
  378.                 {% else %}
  379.                     {{ messages.info('sylius.ui.no_results_to_display') }}
  380.                 {% endif %}
  381.             </div>
  382.         </div>
  383.         <button type=\"submit\" style=\"display: none\">
  384.             <i class=\"search icon\"></i>
  385.             {{ 'bitbag_sylius_elasticsearch_plugin.ui.filter'|trans }}
  386.         </button>
  387.         {{ form_end(form, {'render_rest': false}) }}
  388.     <div class=\"ui clearing hidden divider\"></div>
  389. {% endblock %}
  390. ""Context/Shop/Country/index.html.twig""/srv/open_marketplace/templates/Context/Shop/Country/index.html.twig");
  391.     }
  392. }