var/cache/dev/twig/50/50f01f0c4a8854dbd05e277a461f5cd4.php line 52

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_2ac81a62863b9df603be8b2a646735fb 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/pagination.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""includes/pagination.html.twig"));
  33.         // line 1
  34.         echo "<nav aria-label=\"Pagination\">
  35.     <ul class=\"pagination justify-content-center\">
  36.         ";
  37.         // line 3
  38.         if (twig_get_attribute($this->env$this->source, ($context["paginationVariables"] ?? null), "previous", [], "any"truetruefalse3)) {
  39.             // line 4
  40.             echo "            <li class=\"page-item\">
  41.                 <a class=\"page-link prev\" href=\"";
  42.             // line 5
  43.             echo twig_escape_filter($this->envcall_user_func_array($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.'5$this->source); })()), "previous", [], "any"falsefalsefalse5)]]), "html"nulltrue);
  44.             echo "\" aria-label=\"Previous\">
  45.                     <span aria-hidden=\"true\"></span>
  46.                 </a>
  47.             </li>
  48.         ";
  49.         }
  50.         // line 10
  51.         echo "
  52.         ";
  53.         // line 11
  54.         $context['_parent'] = $context;
  55.         $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.'11$this->source); })()), "pagesInRange", [], "any"falsefalsefalse11));
  56.         foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
  57.             // line 12
  58.             echo "
  59.             ";
  60.             // line 13
  61.             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.'13$this->source); })()), "current", [], "any"falsefalsefalse13) == $context["page"])) {
  62.                 // line 14
  63.                 echo "
  64.                 <li class=\"page-item active\" aria-current=\"page\">
  65.                                   <span class=\"page-link\">
  66.                                     ";
  67.                 // line 17
  68.                 echo twig_escape_filter($this->env$context["page"], "html"nulltrue);
  69.                 echo "
  70.                                     <span class=\"sr-only\">(current)</span>
  71.                                   </span>
  72.                 </li>
  73.             ";
  74.             } else {
  75.                 // line 23
  76.                 echo "                <li class=\"page-item\"><a class=\"page-link\" href=\"";
  77.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('pimcore_url')->getCallable(), [["page" => $context["page"]]]), "html"nulltrue);
  78.                 echo "\">";
  79.                 echo twig_escape_filter($this->env$context["page"], "html"nulltrue);
  80.                 echo "</a></li>
  81.             ";
  82.             }
  83.             // line 25
  84.             echo "
  85.         ";
  86.         }
  87.         $_parent $context['_parent'];
  88.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
  89.         $context array_intersect_key($context$_parent) + $_parent;
  90.         // line 27
  91.         echo "
  92.         ";
  93.         // line 28
  94.         if (twig_get_attribute($this->env$this->source, ($context["paginationVariables"] ?? null), "next", [], "any"truetruefalse28)) {
  95.             // line 29
  96.             echo "            <li class=\"page-item\">
  97.                 <a class=\"page-link next\" href=\"";
  98.             // line 30
  99.             echo twig_escape_filter($this->envcall_user_func_array($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.'30$this->source); })()), "next", [], "any"falsefalsefalse30)]]), "html"nulltrue);
  100.             echo "\" aria-label=\"Next\">
  101.                     <span class=\"flip\" aria-hidden=\"true\"></span>
  102.                 </a>
  103.             </li>
  104.         ";
  105.         }
  106.         // line 35
  107.         echo "    </ul>
  108. </nav>";
  109.         
  110.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  111.         
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  113.     }
  114.     public function getTemplateName()
  115.     {
  116.         return "includes/pagination.html.twig";
  117.     }
  118.     public function isTraitable()
  119.     {
  120.         return false;
  121.     }
  122.     public function getDebugInfo()
  123.     {
  124.         return array (  117 => 35,  109 => 30,  106 => 29,  104 => 28,  101 => 27,  94 => 25,  86 => 23,  77 => 17,  72 => 14,  70 => 13,  67 => 12,  63 => 11,  60 => 10,  52 => 5,  49 => 4,  47 => 3,  43 => 1,);
  125.     }
  126.     public function getSourceContext()
  127.     {
  128.         return new Source("<nav aria-label=\"Pagination\">
  129.     <ul class=\"pagination justify-content-center\">
  130.         {%  if(paginationVariables.previous is defined) %}
  131.             <li class=\"page-item\">
  132.                 <a class=\"page-link prev\" href=\"{{  pimcore_url({'page': paginationVariables.previous}) }}\" aria-label=\"Previous\">
  133.                     <span aria-hidden=\"true\"></span>
  134.                 </a>
  135.             </li>
  136.         {%  endif %}
  137.         {%  for page in paginationVariables.pagesInRange %}
  138.             {%  if(paginationVariables.current == page) %}
  139.                 <li class=\"page-item active\" aria-current=\"page\">
  140.                                   <span class=\"page-link\">
  141.                                     {{  page }}
  142.                                     <span class=\"sr-only\">(current)</span>
  143.                                   </span>
  144.                 </li>
  145.             {%  else %}
  146.                 <li class=\"page-item\"><a class=\"page-link\" href=\"{{  pimcore_url({'page': page}) }}\">{{ page }}</a></li>
  147.             {%  endif %}
  148.         {% endfor %}
  149.         {%  if(paginationVariables.next is defined) %}
  150.             <li class=\"page-item\">
  151.                 <a class=\"page-link next\" href=\"{{  pimcore_url({'page': paginationVariables.next}) }}\" aria-label=\"Next\">
  152.                     <span class=\"flip\" aria-hidden=\"true\"></span>
  153.                 </a>
  154.             </li>
  155.         {%  endif %}
  156.     </ul>
  157. </nav>""includes/pagination.html.twig""/var/www/html/siteone/templates/includes/pagination.html.twig");
  158.     }
  159. }