<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* includes/pagination.html.twig */
class __TwigTemplate_28ec13a88267058a3a90d86c9883c697 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/pagination.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/pagination.html.twig"));
// line 1
echo "<nav aria-label=\"Pagination\">
<ul class=\"pagination justify-content-center\">
";
// line 3
if (twig_get_attribute($this->env, $this->source, ($context["paginationVariables"] ?? null), "previous", [], "any", true, true, false, 3)) {
// line 4
echo " <li class=\"page-item\">
<a class=\"page-link prev\" href=\"";
// line 5
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.', 5, $this->source); })()), "previous", [], "any", false, false, false, 5)]), "html", null, true);
echo "\" aria-label=\"Previous\">
<span aria-hidden=\"true\"></span>
</a>
</li>
";
}
// line 10
echo "
";
// line 11
$context['_parent'] = $context;
$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", false, false, false, 11));
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
// line 12
echo "
";
// line 13
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", false, false, false, 13) == $context["page"])) {
// line 14
echo "
<li class=\"page-item active\" aria-current=\"page\">
<span class=\"page-link\">
";
// line 17
echo twig_escape_filter($this->env, $context["page"], "html", null, true);
echo "
<span class=\"sr-only\">(current)</span>
</span>
</li>
";
} else {
// line 23
echo " <li class=\"page-item\"><a class=\"page-link\" href=\"";
echo twig_escape_filter($this->env, $this->env->getFunction('pimcore_url')->getCallable()(["page" => $context["page"]]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["page"], "html", null, true);
echo "</a></li>
";
}
// line 25
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 27
echo "
";
// line 28
if (twig_get_attribute($this->env, $this->source, ($context["paginationVariables"] ?? null), "next", [], "any", true, true, false, 28)) {
// line 29
echo " <li class=\"page-item\">
<a class=\"page-link next\" href=\"";
// line 30
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.', 30, $this->source); })()), "next", [], "any", false, false, false, 30)]), "html", null, true);
echo "\" aria-label=\"Next\">
<span class=\"flip\" aria-hidden=\"true\"></span>
</a>
</li>
";
}
// line 35
echo " </ul>
</nav>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "includes/pagination.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<nav aria-label=\"Pagination\">
<ul class=\"pagination justify-content-center\">
{% if(paginationVariables.previous is defined) %}
<li class=\"page-item\">
<a class=\"page-link prev\" href=\"{{ pimcore_url({'page': paginationVariables.previous}) }}\" aria-label=\"Previous\">
<span aria-hidden=\"true\"></span>
</a>
</li>
{% endif %}
{% for page in paginationVariables.pagesInRange %}
{% if(paginationVariables.current == page) %}
<li class=\"page-item active\" aria-current=\"page\">
<span class=\"page-link\">
{{ page }}
<span class=\"sr-only\">(current)</span>
</span>
</li>
{% else %}
<li class=\"page-item\"><a class=\"page-link\" href=\"{{ pimcore_url({'page': page}) }}\">{{ page }}</a></li>
{% endif %}
{% endfor %}
{% if(paginationVariables.next is defined) %}
<li class=\"page-item\">
<a class=\"page-link next\" href=\"{{ pimcore_url({'page': paginationVariables.next}) }}\" aria-label=\"Next\">
<span class=\"flip\" aria-hidden=\"true\"></span>
</a>
</li>
{% endif %}
</ul>
</nav>", "includes/pagination.html.twig", "/www/htdocs/w0189996/pimcore-demo/templates/includes/pagination.html.twig");
}
}