templates/includes/pagination.html.twig line 1

Open in your IDE?
  1. <nav class="toolbox toolbox-pagination ml-0 ml-lg-4">
  2.     <div class="toolbox-left">
  3.         <p class="numresults font-weight-bold"> 
  4.             {% if paginationVariables.totalCount > 12 %}  
  5.                 {{paginationVariables.firstItemNumber}}-{{paginationVariables.lastItemNumber}} {{ 'di'|trans }} {{paginationVariables.totalCount}} {% if listtype is defined %} {{listtype}} {% else %}{{ 'risultati'|trans }}{% endif %}
  6.             {% else %}            
  7.                 {{paginationVariables.totalCount}} {{ordertype|trans}}
  8.             {% endif %}
  9.             {#{{paginationVariables.totalCount}} risultati {% if term is defined and term != "" %} {{ 'per'|trans }} "{{term}}" {% endif %} in {% if category is defined %} {{category.name}}  {% endif %}           #}
  10.         </p>
  11.     </div>
  12.     <div class="toolbox-center">
  13.         <ul class="pagination toolbox-item">
  14.             {%  if(paginationVariables.previous is defined) %}       
  15.                 <li class="page-item">
  16.                     <a class="page-link" href="{{  pimcore_url({'page': paginationVariables.previous}) }}" aria-label="Previous">
  17.                         <i class="icon-angle-left"></i>
  18.                     </a>
  19.                 </li>
  20.             {%  endif %}   
  21.             {%  for page in paginationVariables.pagesInRange %}
  22.                 {%  if(paginationVariables.current == page) %}
  23.                     <li class="page-item active" aria-current="page">
  24.                                     <span class="page-link">
  25.                                         {{  page }}
  26.                                         <span class="sr-only">(current)</span>
  27.                                     </span>
  28.                     </li>
  29.                 {%  else %}            
  30.                     <li class="page-item"><a class="page-link" href="{{  pimcore_url({'page': page}) }}">{{ page }}</a></li>
  31.                 {%  endif %}
  32.             {% endfor %}        
  33.         </ul>
  34.     </div>        
  35.     <div class="toolbox-right">
  36.         <div class="select-custom d-flex align-items-center">                   
  37.             <span class="mx-3" style="white-space:nowrap">{{ 'Elementi per pagina'|trans }}</span>
  38.             <select name="page_limit" id="page_limit" class="form-control">   
  39.                 {% if limit == "12" %}   
  40.                     <option value="12" selected>12</option>
  41.                 {%  else %} 
  42.                     <option value="12">12</option> 
  43.                 {%  endif %}  
  44.                 {% if limit == "24" %}   
  45.                     <option value="24" selected>24</option>
  46.                 {%  else %} 
  47.                     <option value="24">24</option> 
  48.                 {%  endif %}  
  49.                 {% if limit == "48" %}   
  50.                     <option value="48" selected>48</option>
  51.                 {%  else %} 
  52.                     <option value="48">48</option> 
  53.                 {%  endif %} 
  54.                 {% if limit == "100" %}   
  55.                     <option value="100" selected>100</option>
  56.                 {%  else %} 
  57.                     <option value="100">100</option> 
  58.                 {%  endif %} 
  59.                 {% if limit == "200" %}   
  60.                     <option value="200" selected>200</option>
  61.                 {%  else %} 
  62.                     <option value="200">200</option> 
  63.                 {%  endif %}                                          
  64.             </select>
  65.         </div>
  66.     </div>
  67. </nav>