var/cache/dev/twig/61/61ba5eedc9ac4a1da0e520104288995c.php line 54

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. /* @MonsieurBizSyliusSearchPlugin/Search/_sorting.html.twig */
  14. class __TwigTemplate_7a0c254f358e933551db2d648d963bf6 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""@MonsieurBizSyliusSearchPlugin/Search/_sorting.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""@MonsieurBizSyliusSearchPlugin/Search/_sorting.html.twig"));
  33.         // line 1
  34.         if ((twig_get_attribute($this->env$this->source, (isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'1$this->source); })()), "count", [], "any"falsefalsefalse1) > 0)) {
  35.             // line 2
  36.             echo "    ";
  37.             $context["route"] = 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.'2$this->source); })()), "request", [], "any"falsefalsefalse2), "attributes", [], "any"falsefalsefalse2), "get", [=> "_route"], "method"falsefalsefalse2);
  38.             // line 3
  39.             echo "    ";
  40.             $context["route_parameters"] = twig_array_merge(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.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "attributes", [], "any"falsefalsefalse3), "get", [=> "_route_params"], "method"falsefalsefalse3), 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.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "query", [], "any"falsefalsefalse3), "all", [], "any"falsefalsefalse3));
  41.             // line 4
  42.             echo "
  43.     ";
  44.             // line 5
  45.             $context["criteria"] = 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.'5$this->source); })()), "request", [], "any"falsefalsefalse5), "query", [], "any"falsefalsefalse5), "get", [=> "criteria"=> []], "method"falsefalsefalse5);
  46.             // line 6
  47.             echo "
  48.     ";
  49.             // line 7
  50.             $context["default_path"] = $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.'7$this->source); })()), twig_array_merge((isset($context["route_parameters"]) || array_key_exists("route_parameters"$context) ? $context["route_parameters"] : (function () { throw new RuntimeError('Variable "route_parameters" does not exist.'7$this->source); })()), ["sorting" => null"criteria" => (isset($context["criteria"]) || array_key_exists("criteria"$context) ? $context["criteria"] : (function () { throw new RuntimeError('Variable "criteria" does not exist.'7$this->source); })())]));
  51.             // line 8
  52.             echo "    ";
  53.             $context["from_a_to_z_path"] = $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.'8$this->source); })()), twig_array_merge((isset($context["route_parameters"]) || array_key_exists("route_parameters"$context) ? $context["route_parameters"] : (function () { throw new RuntimeError('Variable "route_parameters" does not exist.'8$this->source); })()), ["sorting" => ["name" => "asc"], "criteria" => (isset($context["criteria"]) || array_key_exists("criteria"$context) ? $context["criteria"] : (function () { throw new RuntimeError('Variable "criteria" does not exist.'8$this->source); })())]));
  54.             // line 9
  55.             echo "    ";
  56.             $context["from_z_to_a_path"] = $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.'9$this->source); })()), twig_array_merge((isset($context["route_parameters"]) || array_key_exists("route_parameters"$context) ? $context["route_parameters"] : (function () { throw new RuntimeError('Variable "route_parameters" does not exist.'9$this->source); })()), ["sorting" => ["name" => "desc"], "criteria" => (isset($context["criteria"]) || array_key_exists("criteria"$context) ? $context["criteria"] : (function () { throw new RuntimeError('Variable "criteria" does not exist.'9$this->source); })())]));
  57.             // line 10
  58.             echo "    ";
  59.             $context["oldest_first_path"] = $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.'10$this->source); })()), twig_array_merge((isset($context["route_parameters"]) || array_key_exists("route_parameters"$context) ? $context["route_parameters"] : (function () { throw new RuntimeError('Variable "route_parameters" does not exist.'10$this->source); })()), ["sorting" => ["created_at" => "asc"], "criteria" => (isset($context["criteria"]) || array_key_exists("criteria"$context) ? $context["criteria"] : (function () { throw new RuntimeError('Variable "criteria" does not exist.'10$this->source); })())]));
  60.             // line 11
  61.             echo "    ";
  62.             $context["newest_first_path"] = $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.'11$this->source); })()), twig_array_merge((isset($context["route_parameters"]) || array_key_exists("route_parameters"$context) ? $context["route_parameters"] : (function () { throw new RuntimeError('Variable "route_parameters" does not exist.'11$this->source); })()), ["sorting" => ["created_at" => "desc"], "criteria" => (isset($context["criteria"]) || array_key_exists("criteria"$context) ? $context["criteria"] : (function () { throw new RuntimeError('Variable "criteria" does not exist.'11$this->source); })())]));
  63.             // line 12
  64.             echo "    ";
  65.             $context["cheapest_first_path"] = $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.'12$this->source); })()), twig_array_merge((isset($context["route_parameters"]) || array_key_exists("route_parameters"$context) ? $context["route_parameters"] : (function () { throw new RuntimeError('Variable "route_parameters" does not exist.'12$this->source); })()), ["sorting" => ["price" => "asc"], "criteria" => (isset($context["criteria"]) || array_key_exists("criteria"$context) ? $context["criteria"] : (function () { throw new RuntimeError('Variable "criteria" does not exist.'12$this->source); })())]));
  66.             // line 13
  67.             echo "    ";
  68.             $context["most_expensive_first_path"] = $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.'13$this->source); })()), twig_array_merge((isset($context["route_parameters"]) || array_key_exists("route_parameters"$context) ? $context["route_parameters"] : (function () { throw new RuntimeError('Variable "route_parameters" does not exist.'13$this->source); })()), ["sorting" => ["price" => "desc"], "criteria" => (isset($context["criteria"]) || array_key_exists("criteria"$context) ? $context["criteria"] : (function () { throw new RuntimeError('Variable "criteria" does not exist.'13$this->source); })())]));
  69.             // line 14
  70.             echo "
  71.     ";
  72.             // line 15
  73.             if (twig_test_empty(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.'15$this->source); })()), "request", [], "any"falsefalsefalse15), "query", [], "any"falsefalsefalse15), "get", [=> "sorting"], "method"falsefalsefalse15))) {
  74.                 // line 16
  75.                 echo "        ";
  76.                 $context["current_sorting_label"] = twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.by_position"));
  77.                 // line 17
  78.                 echo "    ";
  79.             } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse17), "query", [], "any"falsetruefalse17), "get", [=> "sorting"], "method"falsetruefalse17), "name", [], "any"truetruefalse17) && (twig_get_attribute($this->env$this->sourcetwig_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.'17$this->source); })()), "request", [], "any"falsefalsefalse17), "query", [], "any"falsefalsefalse17), "get", [=> "sorting"], "method"falsefalsefalse17), "name", [], "any"falsefalsefalse17) == "asc"))) {
  80.                 // line 18
  81.                 echo "        ";
  82.                 $context["current_sorting_label"] = twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.from_a_to_z"));
  83.                 // line 19
  84.                 echo "    ";
  85.             } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse19), "query", [], "any"falsetruefalse19), "get", [=> "sorting"], "method"falsetruefalse19), "name", [], "any"truetruefalse19) && (twig_get_attribute($this->env$this->sourcetwig_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.'19$this->source); })()), "request", [], "any"falsefalsefalse19), "query", [], "any"falsefalsefalse19), "get", [=> "sorting"], "method"falsefalsefalse19), "name", [], "any"falsefalsefalse19) == "desc"))) {
  86.                 // line 20
  87.                 echo "        ";
  88.                 $context["current_sorting_label"] = twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.from_z_to_a"));
  89.                 // line 21
  90.                 echo "    ";
  91.             } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse21), "query", [], "any"falsetruefalse21), "get", [=> "sorting"], "method"falsetruefalse21), "created_at", [], "any"truetruefalse21) && (twig_get_attribute($this->env$this->sourcetwig_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.'21$this->source); })()), "request", [], "any"falsefalsefalse21), "query", [], "any"falsefalsefalse21), "get", [=> "sorting"], "method"falsefalsefalse21), "created_at", [], "any"falsefalsefalse21) == "desc"))) {
  92.                 // line 22
  93.                 echo "        ";
  94.                 $context["current_sorting_label"] = twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.newest_first"));
  95.                 // line 23
  96.                 echo "    ";
  97.             } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse23), "query", [], "any"falsetruefalse23), "get", [=> "sorting"], "method"falsetruefalse23), "created_at", [], "any"truetruefalse23) && (twig_get_attribute($this->env$this->sourcetwig_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.'23$this->source); })()), "request", [], "any"falsefalsefalse23), "query", [], "any"falsefalsefalse23), "get", [=> "sorting"], "method"falsefalsefalse23), "created_at", [], "any"falsefalsefalse23) == "asc"))) {
  98.                 // line 24
  99.                 echo "        ";
  100.                 $context["current_sorting_label"] = twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.oldest_first"));
  101.                 // line 25
  102.                 echo "    ";
  103.             } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse25), "query", [], "any"falsetruefalse25), "get", [=> "sorting"], "method"falsetruefalse25), "price", [], "any"truetruefalse25) && (twig_get_attribute($this->env$this->sourcetwig_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.'25$this->source); })()), "request", [], "any"falsefalsefalse25), "query", [], "any"falsefalsefalse25), "get", [=> "sorting"], "method"falsefalsefalse25), "price", [], "any"falsefalsefalse25) == "asc"))) {
  104.                 // line 26
  105.                 echo "        ";
  106.                 $context["current_sorting_label"] = twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.cheapest_first"));
  107.                 // line 27
  108.                 echo "    ";
  109.             } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse27), "query", [], "any"falsetruefalse27), "get", [=> "sorting"], "method"falsetruefalse27), "price", [], "any"truetruefalse27) && (twig_get_attribute($this->env$this->sourcetwig_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.'27$this->source); })()), "request", [], "any"falsefalsefalse27), "query", [], "any"falsefalsefalse27), "get", [=> "sorting"], "method"falsefalsefalse27), "price", [], "any"falsefalsefalse27) == "desc"))) {
  110.                 // line 28
  111.                 echo "        ";
  112.                 $context["current_sorting_label"] = twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.most_expensive_first"));
  113.                 // line 29
  114.                 echo "    ";
  115.             } else {
  116.                 // line 30
  117.                 echo "        ";
  118.                 $context["current_sorting_label"] = twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.by_position"));
  119.                 // line 31
  120.                 echo "    ";
  121.             }
  122.             // line 32
  123.             echo "
  124.     <div class=\"dropdown dropdown-perso\">
  125.         <button class=\"btn bg-primary-s rounded-circle2 dropdown-toggle text-white\" type=\"button\" id=\"dropdownMenuSorting\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"true\">";
  126.             // line 34
  127.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.sort"), "html"nulltrue);
  128.             echo "</button>
  129.           
  130.             <div class=\"dropdown-menu dropdown-menu-right\" id=\"dropdownMenuSorting\">
  131.                 ";
  132.             // line 39
  133.             echo "                <div class=\"menu\">
  134.                     <a class=\"item dropdown-item ";
  135.             // line 40
  136.             if (((isset($context["current_sorting_label"]) || array_key_exists("current_sorting_label"$context) ? $context["current_sorting_label"] : (function () { throw new RuntimeError('Variable "current_sorting_label" does not exist.'40$this->source); })()) == twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.by_position")))) {
  137.                 echo "active";
  138.             }
  139.             echo "\" href=\"";
  140.             echo twig_escape_filter($this->env, (isset($context["default_path"]) || array_key_exists("default_path"$context) ? $context["default_path"] : (function () { throw new RuntimeError('Variable "default_path" does not exist.'40$this->source); })()), "html"nulltrue);
  141.             echo "\" data-text=\"";
  142.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.by_position")), "html"nulltrue);
  143.             echo "\">";
  144.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.by_position"), "html"nulltrue);
  145.             echo "</a>
  146.                     <a class=\"item dropdown-item  ";
  147.             // line 41
  148.             if (((isset($context["current_sorting_label"]) || array_key_exists("current_sorting_label"$context) ? $context["current_sorting_label"] : (function () { throw new RuntimeError('Variable "current_sorting_label" does not exist.'41$this->source); })()) == twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.from_a_to_z")))) {
  149.                 echo "active";
  150.             }
  151.             echo "\" href=\"";
  152.             echo twig_escape_filter($this->env, (isset($context["from_a_to_z_path"]) || array_key_exists("from_a_to_z_path"$context) ? $context["from_a_to_z_path"] : (function () { throw new RuntimeError('Variable "from_a_to_z_path" does not exist.'41$this->source); })()), "html"nulltrue);
  153.             echo "\" data-text=\"";
  154.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.from_a_to_z")), "html"nulltrue);
  155.             echo "\">";
  156.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.from_a_to_z"), "html"nulltrue);
  157.             echo "</a>
  158.                     <a class=\"item dropdown-item  ";
  159.             // line 42
  160.             if (((isset($context["current_sorting_label"]) || array_key_exists("current_sorting_label"$context) ? $context["current_sorting_label"] : (function () { throw new RuntimeError('Variable "current_sorting_label" does not exist.'42$this->source); })()) == twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.from_z_to_a")))) {
  161.                 echo "active";
  162.             }
  163.             echo "\" href=\"";
  164.             echo twig_escape_filter($this->env, (isset($context["from_z_to_a_path"]) || array_key_exists("from_z_to_a_path"$context) ? $context["from_z_to_a_path"] : (function () { throw new RuntimeError('Variable "from_z_to_a_path" does not exist.'42$this->source); })()), "html"nulltrue);
  165.             echo "\" data-text=\"";
  166.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.from_z_to_a")), "html"nulltrue);
  167.             echo "\">";
  168.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.from_z_to_a"), "html"nulltrue);
  169.             echo "</a>
  170.                     <a class=\"item dropdown-item  ";
  171.             // line 43
  172.             if (((isset($context["current_sorting_label"]) || array_key_exists("current_sorting_label"$context) ? $context["current_sorting_label"] : (function () { throw new RuntimeError('Variable "current_sorting_label" does not exist.'43$this->source); })()) == twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.newest_first")))) {
  173.                 echo "active";
  174.             }
  175.             echo "\" href=\"";
  176.             echo twig_escape_filter($this->env, (isset($context["newest_first_path"]) || array_key_exists("newest_first_path"$context) ? $context["newest_first_path"] : (function () { throw new RuntimeError('Variable "newest_first_path" does not exist.'43$this->source); })()), "html"nulltrue);
  177.             echo "\" data-text=\"";
  178.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.newest_first")), "html"nulltrue);
  179.             echo "\">";
  180.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.newest_first"), "html"nulltrue);
  181.             echo "</a>
  182.                     <a class=\"item dropdown-item  ";
  183.             // line 44
  184.             if (((isset($context["current_sorting_label"]) || array_key_exists("current_sorting_label"$context) ? $context["current_sorting_label"] : (function () { throw new RuntimeError('Variable "current_sorting_label" does not exist.'44$this->source); })()) == twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.oldest_first")))) {
  185.                 echo "active";
  186.             }
  187.             echo "\" href=\"";
  188.             echo twig_escape_filter($this->env, (isset($context["oldest_first_path"]) || array_key_exists("oldest_first_path"$context) ? $context["oldest_first_path"] : (function () { throw new RuntimeError('Variable "oldest_first_path" does not exist.'44$this->source); })()), "html"nulltrue);
  189.             echo "\" data-text=\"";
  190.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.oldest_first")), "html"nulltrue);
  191.             echo "\">";
  192.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.oldest_first"), "html"nulltrue);
  193.             echo "</a>
  194.                     <a class=\"item dropdown-item  ";
  195.             // line 45
  196.             if (((isset($context["current_sorting_label"]) || array_key_exists("current_sorting_label"$context) ? $context["current_sorting_label"] : (function () { throw new RuntimeError('Variable "current_sorting_label" does not exist.'45$this->source); })()) == twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.cheapest_first")))) {
  197.                 echo "active";
  198.             }
  199.             echo "\" href=\"";
  200.             echo twig_escape_filter($this->env, (isset($context["cheapest_first_path"]) || array_key_exists("cheapest_first_path"$context) ? $context["cheapest_first_path"] : (function () { throw new RuntimeError('Variable "cheapest_first_path" does not exist.'45$this->source); })()), "html"nulltrue);
  201.             echo "\" data-text=\"";
  202.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.cheapest_first")), "html"nulltrue);
  203.             echo "\">";
  204.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.cheapest_first"), "html"nulltrue);
  205.             echo "</a>
  206.                     <a class=\"item  dropdown-item ";
  207.             // line 46
  208.             if (((isset($context["current_sorting_label"]) || array_key_exists("current_sorting_label"$context) ? $context["current_sorting_label"] : (function () { throw new RuntimeError('Variable "current_sorting_label" does not exist.'46$this->source); })()) == twig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.most_expensive_first")))) {
  209.                 echo "active";
  210.             }
  211.             echo "\" href=\"";
  212.             echo twig_escape_filter($this->env, (isset($context["most_expensive_first_path"]) || array_key_exists("most_expensive_first_path"$context) ? $context["most_expensive_first_path"] : (function () { throw new RuntimeError('Variable "most_expensive_first_path" does not exist.'46$this->source); })()), "html"nulltrue);
  213.             echo "\" data-text=\"";
  214.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.most_expensive_first")), "html"nulltrue);
  215.             echo "\">";
  216.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.most_expensive_first"), "html"nulltrue);
  217.             echo "</a>
  218.                 </div>
  219.             </div>
  220.         
  221.     </div>
  222. ";
  223.         }
  224.         
  225.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  226.         
  227.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  228.     }
  229.     public function getTemplateName()
  230.     {
  231.         return "@MonsieurBizSyliusSearchPlugin/Search/_sorting.html.twig";
  232.     }
  233.     public function isTraitable()
  234.     {
  235.         return false;
  236.     }
  237.     public function getDebugInfo()
  238.     {
  239.         return array (  217 => 46,  205 => 45,  193 => 44,  181 => 43,  169 => 42,  157 => 41,  145 => 40,  142 => 39,  136 => 34,  132 => 32,  129 => 31,  126 => 30,  123 => 29,  120 => 28,  117 => 27,  114 => 26,  111 => 25,  108 => 24,  105 => 23,  102 => 22,  99 => 21,  96 => 20,  93 => 19,  90 => 18,  87 => 17,  84 => 16,  82 => 15,  79 => 14,  76 => 13,  73 => 12,  70 => 11,  67 => 10,  64 => 9,  61 => 8,  59 => 7,  56 => 6,  54 => 5,  51 => 4,  48 => 3,  45 => 2,  43 => 1,);
  240.     }
  241.     public function getSourceContext()
  242.     {
  243.         return new Source("{% if result.count > 0 %}
  244.     {% set route = app.request.attributes.get('_route') %}
  245.     {% set route_parameters = app.request.attributes.get('_route_params')|merge(app.request.query.all) %}
  246.     {% set criteria = app.request.query.get('criteria', {}) %}
  247.     {% set default_path = path(route, route_parameters|merge({'sorting': null, 'criteria': criteria})) %}
  248.     {% set from_a_to_z_path = path(route, route_parameters|merge({'sorting': {'name': 'asc'}, 'criteria': criteria})) %}
  249.     {% set from_z_to_a_path = path(route, route_parameters|merge({'sorting': {'name': 'desc'}, 'criteria': criteria})) %}
  250.     {% set oldest_first_path = path(route, route_parameters|merge({'sorting': {'created_at': 'asc'}, 'criteria': criteria})) %}
  251.     {% set newest_first_path = path(route, route_parameters|merge({'sorting': {'created_at': 'desc'}, 'criteria': criteria})) %}
  252.     {% set cheapest_first_path = path(route, route_parameters|merge({'sorting': {'price': 'asc'}, 'criteria': criteria})) %}
  253.     {% set most_expensive_first_path = path(route, route_parameters|merge({'sorting': {'price': 'desc'}, 'criteria': criteria})) %}
  254.     {% if app.request.query.get('sorting') is empty %}
  255.         {% set current_sorting_label = 'sylius.ui.by_position'|trans|lower %}
  256.     {% elseif app.request.query.get('sorting').name is defined and app.request.query.get('sorting').name == 'asc'%}
  257.         {% set current_sorting_label = 'sylius.ui.from_a_to_z'|trans|lower %}
  258.     {% elseif app.request.query.get('sorting').name is defined and app.request.query.get('sorting').name == 'desc'%}
  259.         {% set current_sorting_label = 'sylius.ui.from_z_to_a'|trans|lower %}
  260.     {% elseif app.request.query.get('sorting').created_at is defined and app.request.query.get('sorting').created_at == 'desc'%}
  261.         {% set current_sorting_label = 'sylius.ui.newest_first'|trans|lower %}
  262.     {% elseif app.request.query.get('sorting').created_at is defined and app.request.query.get('sorting').created_at == 'asc'%}
  263.         {% set current_sorting_label = 'sylius.ui.oldest_first'|trans|lower %}
  264.     {% elseif app.request.query.get('sorting').price is defined and app.request.query.get('sorting').price == 'asc'%}
  265.         {% set current_sorting_label = 'sylius.ui.cheapest_first'|trans|lower %}
  266.     {% elseif app.request.query.get('sorting').price is defined and app.request.query.get('sorting').price == 'desc' %}
  267.         {% set current_sorting_label = 'sylius.ui.most_expensive_first'|trans|lower %}
  268.     {% else %}
  269.         {% set current_sorting_label = 'sylius.ui.by_position'|trans|lower %}
  270.     {% endif %}
  271.     <div class=\"dropdown dropdown-perso\">
  272.         <button class=\"btn bg-primary-s rounded-circle2 dropdown-toggle text-white\" type=\"button\" id=\"dropdownMenuSorting\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"true\">{{ 'sylius.ui.sort'|trans }}</button>
  273.           
  274.             <div class=\"dropdown-menu dropdown-menu-right\" id=\"dropdownMenuSorting\">
  275.                 {#<div class=\"text\">{{ current_sorting_label }}</div>
  276.                 <i class=\"dropdown icon\"></i>#}
  277.                 <div class=\"menu\">
  278.                     <a class=\"item dropdown-item {% if current_sorting_label == 'sylius.ui.by_position'|trans|lower %}active{% endif %}\" href=\"{{ default_path }}\" data-text=\"{{ 'sylius.ui.by_position'|trans|lower }}\">{{ 'sylius.ui.by_position'|trans }}</a>
  279.                     <a class=\"item dropdown-item  {% if current_sorting_label == 'sylius.ui.from_a_to_z'|trans|lower %}active{% endif %}\" href=\"{{ from_a_to_z_path }}\" data-text=\"{{ 'sylius.ui.from_a_to_z'|trans|lower }}\">{{ 'sylius.ui.from_a_to_z'|trans }}</a>
  280.                     <a class=\"item dropdown-item  {% if current_sorting_label == 'sylius.ui.from_z_to_a'|trans|lower %}active{% endif %}\" href=\"{{ from_z_to_a_path }}\" data-text=\"{{ 'sylius.ui.from_z_to_a'|trans|lower }}\">{{ 'sylius.ui.from_z_to_a'|trans }}</a>
  281.                     <a class=\"item dropdown-item  {% if current_sorting_label == 'sylius.ui.newest_first'|trans|lower %}active{% endif %}\" href=\"{{ newest_first_path }}\" data-text=\"{{ 'sylius.ui.newest_first'|trans|lower }}\">{{ 'sylius.ui.newest_first'|trans }}</a>
  282.                     <a class=\"item dropdown-item  {% if current_sorting_label == 'sylius.ui.oldest_first'|trans|lower %}active{% endif %}\" href=\"{{ oldest_first_path }}\" data-text=\"{{ 'sylius.ui.oldest_first'|trans|lower }}\">{{ 'sylius.ui.oldest_first'|trans }}</a>
  283.                     <a class=\"item dropdown-item  {% if current_sorting_label == 'sylius.ui.cheapest_first'|trans|lower %}active{% endif %}\" href=\"{{ cheapest_first_path }}\" data-text=\"{{ 'sylius.ui.cheapest_first'|trans|lower }}\">{{ 'sylius.ui.cheapest_first'|trans }}</a>
  284.                     <a class=\"item  dropdown-item {% if current_sorting_label == 'sylius.ui.most_expensive_first'|trans|lower %}active{% endif %}\" href=\"{{ most_expensive_first_path }}\" data-text=\"{{ 'sylius.ui.most_expensive_first'|trans|lower }}\">{{ 'sylius.ui.most_expensive_first'|trans }}</a>
  285.                 </div>
  286.             </div>
  287.         
  288.     </div>
  289. {% endif %}
  290. ""@MonsieurBizSyliusSearchPlugin/Search/_sorting.html.twig""/var/www/html/themes/BootstrapTheme/templates/bundles/MonsieurBizSyliusSearchPlugin/Search/_sorting.html.twig");
  291.     }
  292. }