var/cache/dev/twig/d4/d4d0b561a54b21f4b04ade5faa35da81aa513bb0e1690a904cb396ca062242e8.php line 134

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. /* includes/pagination.html.twig */
  14. class __TwigTemplate_5c56480b4b393254a556112ba5db9f6988e63d7a110b81428230359c0b73f748 extends 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_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  30.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/pagination.html.twig"));
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/pagination.html.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/pagination.html.twig"));
  35.         // line 1
  36.         echo "<nav class=\"toolbox toolbox-pagination ml-0 ml-lg-4\">
  37.     <div class=\"toolbox-left\">
  38.         <p class=\"numresults font-weight-bold\"> 
  39.             ";
  40.         // line 5
  41.         if ((twig_get_attribute($this->env$this->source, (isset($context["paginationVariables"]) || array_key_exists("paginationVariables"$context) ? $context["paginationVariables"] : (function () { throw new RuntimeError('Variable "paginationVariables" does not exist.'5$this->source); })()), "totalCount", [], "any"falsefalsefalse5) > 12)) {
  42.             echo "  
  43.                 ";
  44.             // line 6
  45.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["paginationVariables"]) || array_key_exists("paginationVariables"$context) ? $context["paginationVariables"] : (function () { throw new RuntimeError('Variable "paginationVariables" does not exist.'6$this->source); })()), "firstItemNumber", [], "any"falsefalsefalse6), "html"nulltrue);
  46.             echo "-";
  47.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["paginationVariables"]) || array_key_exists("paginationVariables"$context) ? $context["paginationVariables"] : (function () { throw new RuntimeError('Variable "paginationVariables" does not exist.'6$this->source); })()), "lastItemNumber", [], "any"falsefalsefalse6), "html"nulltrue);
  48.             echo " ";
  49.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("di"), "html"nulltrue);
  50.             echo " ";
  51.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["paginationVariables"]) || array_key_exists("paginationVariables"$context) ? $context["paginationVariables"] : (function () { throw new RuntimeError('Variable "paginationVariables" does not exist.'6$this->source); })()), "totalCount", [], "any"falsefalsefalse6), "html"nulltrue);
  52.             echo " ";
  53.             if (array_key_exists("listtype"$context)) {
  54.                 echo " ";
  55.                 echo twig_escape_filter($this->env, (isset($context["listtype"]) || array_key_exists("listtype"$context) ? $context["listtype"] : (function () { throw new RuntimeError('Variable "listtype" does not exist.'6$this->source); })()), "html"nulltrue);
  56.                 echo " ";
  57.             } else {
  58.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("risultati"), "html"nulltrue);
  59.             }
  60.             // line 7
  61.             echo "            ";
  62.         } else {
  63.             echo "            
  64.                 ";
  65.             // line 8
  66.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["paginationVariables"]) || array_key_exists("paginationVariables"$context) ? $context["paginationVariables"] : (function () { throw new RuntimeError('Variable "paginationVariables" does not exist.'8$this->source); })()), "totalCount", [], "any"falsefalsefalse8), "html"nulltrue);
  67.             echo " ";
  68.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["ordertype"]) || array_key_exists("ordertype"$context) ? $context["ordertype"] : (function () { throw new RuntimeError('Variable "ordertype" does not exist.'8$this->source); })())), "html"nulltrue);
  69.             echo "
  70.             ";
  71.         }
  72.         // line 10
  73.         echo "            ";
  74.         // line 11
  75.         echo "        </p>
  76.     </div>
  77.     <div class=\"toolbox-center\">
  78.         <ul class=\"pagination toolbox-item\">
  79.             ";
  80.         // line 16
  81.         if (twig_get_attribute($this->env$this->source, ($context["paginationVariables"] ?? null), "previous", [], "any"truetruefalse16)) {
  82.             echo "       
  83.                 <li class=\"page-item\">
  84.                     <a class=\"page-link\" href=\"";
  85.             // line 18
  86.             echo twig_escape_filter($this->env$this->env->getFunction('pimcore_url')->getCallable()(["page" => twig_get_attribute($this->env$this->source, (isset($context["paginationVariables"]) || array_key_exists("paginationVariables"$context) ? $context["paginationVariables"] : (function () { throw new RuntimeError('Variable "paginationVariables" does not exist.'18$this->source); })()), "previous", [], "any"falsefalsefalse18)]), "html"nulltrue);
  87.             echo "\" aria-label=\"Previous\">
  88.                         <i class=\"icon-angle-left\"></i>
  89.                     </a>
  90.                 </li>
  91.             ";
  92.         }
  93.         // line 22
  94.         echo "   
  95.             ";
  96.         // line 24
  97.         $context['_parent'] = $context;
  98.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["paginationVariables"]) || array_key_exists("paginationVariables"$context) ? $context["paginationVariables"] : (function () { throw new RuntimeError('Variable "paginationVariables" does not exist.'24$this->source); })()), "pagesInRange", [], "any"falsefalsefalse24));
  99.         foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
  100.             // line 25
  101.             echo "                ";
  102.             if ((twig_get_attribute($this->env$this->source, (isset($context["paginationVariables"]) || array_key_exists("paginationVariables"$context) ? $context["paginationVariables"] : (function () { throw new RuntimeError('Variable "paginationVariables" does not exist.'25$this->source); })()), "current", [], "any"falsefalsefalse25) == $context["page"])) {
  103.                 // line 26
  104.                 echo "
  105.                     <li class=\"page-item active\" aria-current=\"page\">
  106.                                     <span class=\"page-link\">
  107.                                         ";
  108.                 // line 29
  109.                 echo twig_escape_filter($this->env$context["page"], "html"nulltrue);
  110.                 echo "
  111.                                         <span class=\"sr-only\">(current)</span>
  112.                                     </span>
  113.                     </li>
  114.                 ";
  115.             } else {
  116.                 // line 34
  117.                 echo "            
  118.                     <li class=\"page-item\"><a class=\"page-link\" href=\"";
  119.                 // line 35
  120.                 echo twig_escape_filter($this->env$this->env->getFunction('pimcore_url')->getCallable()(["page" => $context["page"]]), "html"nulltrue);
  121.                 echo "\">";
  122.                 echo twig_escape_filter($this->env$context["page"], "html"nulltrue);
  123.                 echo "</a></li>
  124.                 ";
  125.             }
  126.             // line 37
  127.             echo "
  128.             ";
  129.         }
  130.         $_parent $context['_parent'];
  131.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
  132.         $context array_intersect_key($context$_parent) + $_parent;
  133.         // line 38
  134.         echo "        
  135.         </ul>
  136.     </div>        
  137.     <div class=\"toolbox-right\">
  138.         <div class=\"select-custom d-flex align-items-center\">                   
  139.             <span class=\"mx-3\" style=\"white-space:nowrap\">";
  140.         // line 43
  141.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Elementi per pagina"), "html"nulltrue);
  142.         echo "</span>
  143.             <select name=\"page_limit\" id=\"page_limit\" class=\"form-control\">   
  144.                 ";
  145.         // line 45
  146.         if (((isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'45$this->source); })()) == "12")) {
  147.             echo "   
  148.                     <option value=\"12\" selected>12</option>
  149.                 ";
  150.         } else {
  151.             // line 47
  152.             echo 
  153.                     <option value=\"12\">12</option> 
  154.                 ";
  155.         }
  156.         // line 49
  157.         echo "  
  158.                 ";
  159.         // line 50
  160.         if (((isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'50$this->source); })()) == "24")) {
  161.             echo "   
  162.                     <option value=\"24\" selected>24</option>
  163.                 ";
  164.         } else {
  165.             // line 52
  166.             echo 
  167.                     <option value=\"24\">24</option> 
  168.                 ";
  169.         }
  170.         // line 54
  171.         echo "  
  172.                 ";
  173.         // line 55
  174.         if (((isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'55$this->source); })()) == "48")) {
  175.             echo "   
  176.                     <option value=\"48\" selected>48</option>
  177.                 ";
  178.         } else {
  179.             // line 57
  180.             echo 
  181.                     <option value=\"48\">48</option> 
  182.                 ";
  183.         }
  184.         // line 59
  185.         echo 
  186.                 ";
  187.         // line 60
  188.         if (((isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'60$this->source); })()) == "100")) {
  189.             echo "   
  190.                     <option value=\"100\" selected>100</option>
  191.                 ";
  192.         } else {
  193.             // line 62
  194.             echo 
  195.                     <option value=\"100\">100</option> 
  196.                 ";
  197.         }
  198.         // line 64
  199.         echo 
  200.                 ";
  201.         // line 66
  202.         if (((isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'66$this->source); })()) == "200")) {
  203.             echo "   
  204.                     <option value=\"200\" selected>200</option>
  205.                 ";
  206.         } else {
  207.             // line 68
  208.             echo 
  209.                     <option value=\"200\">200</option> 
  210.                 ";
  211.         }
  212.         // line 70
  213.         echo "                                          
  214.             </select>
  215.         </div>
  216.     </div>
  217. </nav>";
  218.         
  219.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  220.         
  221.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  222.         
  223.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  224.     }
  225.     public function getTemplateName()
  226.     {
  227.         return "includes/pagination.html.twig";
  228.     }
  229.     public function isTraitable()
  230.     {
  231.         return false;
  232.     }
  233.     public function getDebugInfo()
  234.     {
  235.         return array (  228 => 70,  223 => 68,  217 => 66,  213 => 64,  208 => 62,  202 => 60,  199 => 59,  194 => 57,  188 => 55,  185 => 54,  180 => 52,  174 => 50,  171 => 49,  166 => 47,  160 => 45,  155 => 43,  148 => 38,  141 => 37,  134 => 35,  131 => 34,  122 => 29,  117 => 26,  114 => 25,  110 => 24,  106 => 22,  98 => 18,  93 => 16,  86 => 11,  84 => 10,  77 => 8,  72 => 7,  56 => 6,  52 => 5,  46 => 1,);
  236.     }
  237.     public function getSourceContext()
  238.     {
  239.         return new Source("<nav class=\"toolbox toolbox-pagination ml-0 ml-lg-4\">
  240.     <div class=\"toolbox-left\">
  241.         <p class=\"numresults font-weight-bold\"> 
  242.             {% if paginationVariables.totalCount > 12 %}  
  243.                 {{paginationVariables.firstItemNumber}}-{{paginationVariables.lastItemNumber}} {{ 'di'|trans }} {{paginationVariables.totalCount}} {% if listtype is defined %} {{listtype}} {% else %}{{ 'risultati'|trans }}{% endif %}
  244.             {% else %}            
  245.                 {{paginationVariables.totalCount}} {{ordertype|trans}}
  246.             {% endif %}
  247.             {#{{paginationVariables.totalCount}} risultati {% if term is defined and term != \"\" %} {{ 'per'|trans }} \"{{term}}\" {% endif %} in {% if category is defined %} {{category.name}}  {% endif %}           #}
  248.         </p>
  249.     </div>
  250.     <div class=\"toolbox-center\">
  251.         <ul class=\"pagination toolbox-item\">
  252.             {%  if(paginationVariables.previous is defined) %}       
  253.                 <li class=\"page-item\">
  254.                     <a class=\"page-link\" href=\"{{  pimcore_url({'page': paginationVariables.previous}) }}\" aria-label=\"Previous\">
  255.                         <i class=\"icon-angle-left\"></i>
  256.                     </a>
  257.                 </li>
  258.             {%  endif %}   
  259.             {%  for page in paginationVariables.pagesInRange %}
  260.                 {%  if(paginationVariables.current == page) %}
  261.                     <li class=\"page-item active\" aria-current=\"page\">
  262.                                     <span class=\"page-link\">
  263.                                         {{  page }}
  264.                                         <span class=\"sr-only\">(current)</span>
  265.                                     </span>
  266.                     </li>
  267.                 {%  else %}            
  268.                     <li class=\"page-item\"><a class=\"page-link\" href=\"{{  pimcore_url({'page': page}) }}\">{{ page }}</a></li>
  269.                 {%  endif %}
  270.             {% endfor %}        
  271.         </ul>
  272.     </div>        
  273.     <div class=\"toolbox-right\">
  274.         <div class=\"select-custom d-flex align-items-center\">                   
  275.             <span class=\"mx-3\" style=\"white-space:nowrap\">{{ 'Elementi per pagina'|trans }}</span>
  276.             <select name=\"page_limit\" id=\"page_limit\" class=\"form-control\">   
  277.                 {% if limit == \"12\" %}   
  278.                     <option value=\"12\" selected>12</option>
  279.                 {%  else %} 
  280.                     <option value=\"12\">12</option> 
  281.                 {%  endif %}  
  282.                 {% if limit == \"24\" %}   
  283.                     <option value=\"24\" selected>24</option>
  284.                 {%  else %} 
  285.                     <option value=\"24\">24</option> 
  286.                 {%  endif %}  
  287.                 {% if limit == \"48\" %}   
  288.                     <option value=\"48\" selected>48</option>
  289.                 {%  else %} 
  290.                     <option value=\"48\">48</option> 
  291.                 {%  endif %} 
  292.                 {% if limit == \"100\" %}   
  293.                     <option value=\"100\" selected>100</option>
  294.                 {%  else %} 
  295.                     <option value=\"100\">100</option> 
  296.                 {%  endif %} 
  297.                 {% if limit == \"200\" %}   
  298.                     <option value=\"200\" selected>200</option>
  299.                 {%  else %} 
  300.                     <option value=\"200\">200</option> 
  301.                 {%  endif %}                                          
  302.             </select>
  303.         </div>
  304.     </div>
  305. </nav>""includes/pagination.html.twig""/home/ubuntu/mecstore/website/templates/includes/pagination.html.twig");
  306.     }
  307. }