var/cache/dev/twig/32/320903489498916d50eb6297ce3c43ab.php line 53

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_55fde21f71aeba52688bd883a2f08544 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 4
  38.         if (twig_get_attribute($this->env$this->source, ($context["paginationVariables"] ?? null), "first", [], "any"truetruefalse4)) {
  39.             // line 5
  40.             echo "            <li class=\"page-item\">
  41.                 <a class=\"page-link first\" href=\"";
  42.             // line 6
  43.             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.'6$this->source); })()), "first", [], "any"falsefalsefalse6)]), "html"nulltrue);
  44.             echo "\" aria-label=\"First\">
  45.                     <span class=\"pagination-double flip\" aria-hidden=\"true\"></span>
  46.                 </a>
  47.             </li>
  48.         ";
  49.         }
  50.         // line 11
  51.         echo "
  52.         ";
  53.         // line 13
  54.         if (twig_get_attribute($this->env$this->source, ($context["paginationVariables"] ?? null), "previous", [], "any"truetruefalse13)) {
  55.             // line 14
  56.             echo "            <li class=\"page-item\">
  57.                 <a class=\"page-link prev\" href=\"";
  58.             // line 15
  59.             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.'15$this->source); })()), "previous", [], "any"falsefalsefalse15)]), "html"nulltrue);
  60.             echo "\" aria-label=\"Previous\">
  61.                     <span aria-hidden=\"true\"></span>
  62.                 </a>
  63.             </li>
  64.         ";
  65.         }
  66.         // line 20
  67.         echo "
  68.         ";
  69.         // line 21
  70.         $context['_parent'] = $context;
  71.         $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.'21$this->source); })()), "pagesInRange", [], "any"falsefalsefalse21));
  72.         foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
  73.             // line 22
  74.             echo "
  75.             ";
  76.             // line 23
  77.             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.'23$this->source); })()), "current", [], "any"falsefalsefalse23) == $context["page"])) {
  78.                 // line 24
  79.                 echo "
  80.                 <li class=\"page-item active\" aria-current=\"page\">
  81.                                   <span class=\"page-link\">
  82.                                     ";
  83.                 // line 27
  84.                 echo twig_escape_filter($this->env$context["page"], "html"nulltrue);
  85.                 echo "
  86.                                     <span class=\"sr-only\">(current)</span>
  87.                                   </span>
  88.                 </li>
  89.             ";
  90.             } else {
  91.                 // line 33
  92.                 echo "                <li class=\"page-item\"><a class=\"page-link\" href=\"";
  93.                 echo twig_escape_filter($this->env$this->env->getFunction('pimcore_url')->getCallable()(["page" => $context["page"]]), "html"nulltrue);
  94.                 echo "\">";
  95.                 echo twig_escape_filter($this->env$context["page"], "html"nulltrue);
  96.                 echo "</a></li>
  97.             ";
  98.             }
  99.             // line 35
  100.             echo "
  101.         ";
  102.         }
  103.         $_parent $context['_parent'];
  104.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
  105.         $context array_intersect_key($context$_parent) + $_parent;
  106.         // line 37
  107.         echo "
  108.         ";
  109.         // line 38
  110.         if (twig_get_attribute($this->env$this->source, ($context["paginationVariables"] ?? null), "next", [], "any"truetruefalse38)) {
  111.             // line 39
  112.             echo "            <li class=\"page-item\">
  113.                 <a class=\"page-link next\" href=\"";
  114.             // line 40
  115.             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.'40$this->source); })()), "next", [], "any"falsefalsefalse40)]), "html"nulltrue);
  116.             echo "\" aria-label=\"Next\">
  117.                     <span class=\"flip\" aria-hidden=\"true\"></span>
  118.                 </a>
  119.             </li>
  120.         ";
  121.         }
  122.         // line 45
  123.         echo "
  124.         ";
  125.         // line 46
  126.         if (twig_get_attribute($this->env$this->source, ($context["paginationVariables"] ?? null), "last", [], "any"truetruefalse46)) {
  127.             // line 47
  128.             echo "            <li class=\"page-item\">
  129.                 <a class=\"page-link last\" href=\"";
  130.             // line 48
  131.             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.'48$this->source); })()), "last", [], "any"falsefalsefalse48)]), "html"nulltrue);
  132.             echo "\" aria-label=\"Last\">
  133.                     <span class=\"pagination-double\" aria-hidden=\"true\"></span>
  134.                 </a>
  135.             </li>
  136.         ";
  137.         }
  138.         // line 53
  139.         echo "    </ul>
  140. </nav>";
  141.         
  142.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  143.         
  144.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  145.     }
  146.     public function getTemplateName()
  147.     {
  148.         return "includes/pagination.html.twig";
  149.     }
  150.     public function isTraitable()
  151.     {
  152.         return false;
  153.     }
  154.     public function getDebugInfo()
  155.     {
  156.         return array (  151 => 53,  143 => 48,  140 => 47,  138 => 46,  135 => 45,  127 => 40,  124 => 39,  122 => 38,  119 => 37,  112 => 35,  104 => 33,  95 => 27,  90 => 24,  88 => 23,  85 => 22,  81 => 21,  78 => 20,  70 => 15,  67 => 14,  65 => 13,  61 => 11,  53 => 6,  50 => 5,  48 => 4,  43 => 1,);
  157.     }
  158.     public function getSourceContext()
  159.     {
  160.         return new Source("<nav aria-label=\"Pagination\">
  161.     <ul class=\"pagination justify-content-center\">
  162.         {%  if(paginationVariables.first is defined) %}
  163.             <li class=\"page-item\">
  164.                 <a class=\"page-link first\" href=\"{{  pimcore_url({'page': paginationVariables.first}) }}\" aria-label=\"First\">
  165.                     <span class=\"pagination-double flip\" aria-hidden=\"true\"></span>
  166.                 </a>
  167.             </li>
  168.         {%  endif %}
  169.         {%  if(paginationVariables.previous is defined) %}
  170.             <li class=\"page-item\">
  171.                 <a class=\"page-link prev\" href=\"{{  pimcore_url({'page': paginationVariables.previous}) }}\" aria-label=\"Previous\">
  172.                     <span aria-hidden=\"true\"></span>
  173.                 </a>
  174.             </li>
  175.         {%  endif %}
  176.         {%  for page in paginationVariables.pagesInRange %}
  177.             {%  if(paginationVariables.current == page) %}
  178.                 <li class=\"page-item active\" aria-current=\"page\">
  179.                                   <span class=\"page-link\">
  180.                                     {{  page }}
  181.                                     <span class=\"sr-only\">(current)</span>
  182.                                   </span>
  183.                 </li>
  184.             {%  else %}
  185.                 <li class=\"page-item\"><a class=\"page-link\" href=\"{{  pimcore_url({'page': page}) }}\">{{ page }}</a></li>
  186.             {%  endif %}
  187.         {% endfor %}
  188.         {%  if(paginationVariables.next is defined) %}
  189.             <li class=\"page-item\">
  190.                 <a class=\"page-link next\" href=\"{{  pimcore_url({'page': paginationVariables.next}) }}\" aria-label=\"Next\">
  191.                     <span class=\"flip\" aria-hidden=\"true\"></span>
  192.                 </a>
  193.             </li>
  194.         {%  endif %}
  195.         {%  if(paginationVariables.last is defined) %}
  196.             <li class=\"page-item\">
  197.                 <a class=\"page-link last\" href=\"{{  pimcore_url({'page': paginationVariables.last}) }}\" aria-label=\"Last\">
  198.                     <span class=\"pagination-double\" aria-hidden=\"true\"></span>
  199.                 </a>
  200.             </li>
  201.         {%  endif %}
  202.     </ul>
  203. </nav>""includes/pagination.html.twig""/var/www/pimcore/MovieCollection/templates/includes/pagination.html.twig");
  204.     }
  205. }