<?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_5c56480b4b393254a556112ba5db9f6988e63d7a110b81428230359c0b73f748 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_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/pagination.html.twig"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/pagination.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/pagination.html.twig"));
// line 1
echo "<nav class=\"toolbox toolbox-pagination ml-0 ml-lg-4\">
<div class=\"toolbox-left\">
<p class=\"numresults font-weight-bold\">
";
// line 5
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", false, false, false, 5) > 12)) {
echo "
";
// line 6
echo twig_escape_filter($this->env, 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); })()), "firstItemNumber", [], "any", false, false, false, 6), "html", null, true);
echo "-";
echo twig_escape_filter($this->env, 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); })()), "lastItemNumber", [], "any", false, false, false, 6), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("di"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, 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); })()), "totalCount", [], "any", false, false, false, 6), "html", null, true);
echo " ";
if (array_key_exists("listtype", $context)) {
echo " ";
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", null, true);
echo " ";
} else {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("risultati"), "html", null, true);
}
// line 7
echo " ";
} else {
echo "
";
// line 8
echo twig_escape_filter($this->env, 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.', 8, $this->source); })()), "totalCount", [], "any", false, false, false, 8), "html", null, true);
echo " ";
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", null, true);
echo "
";
}
// line 10
echo " ";
// line 11
echo " </p>
</div>
<div class=\"toolbox-center\">
<ul class=\"pagination toolbox-item\">
";
// line 16
if (twig_get_attribute($this->env, $this->source, ($context["paginationVariables"] ?? null), "previous", [], "any", true, true, false, 16)) {
echo "
<li class=\"page-item\">
<a class=\"page-link\" href=\"";
// line 18
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", false, false, false, 18)]), "html", null, true);
echo "\" aria-label=\"Previous\">
<i class=\"icon-angle-left\"></i>
</a>
</li>
";
}
// line 22
echo "
";
// line 24
$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.', 24, $this->source); })()), "pagesInRange", [], "any", false, false, false, 24));
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
// line 25
echo " ";
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", false, false, false, 25) == $context["page"])) {
// line 26
echo "
<li class=\"page-item active\" aria-current=\"page\">
<span class=\"page-link\">
";
// line 29
echo twig_escape_filter($this->env, $context["page"], "html", null, true);
echo "
<span class=\"sr-only\">(current)</span>
</span>
</li>
";
} else {
// line 34
echo "
<li class=\"page-item\"><a class=\"page-link\" href=\"";
// line 35
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 37
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 38
echo "
</ul>
</div>
<div class=\"toolbox-right\">
<div class=\"select-custom d-flex align-items-center\">
<span class=\"mx-3\" style=\"white-space:nowrap\">";
// line 43
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Elementi per pagina"), "html", null, true);
echo "</span>
<select name=\"page_limit\" id=\"page_limit\" class=\"form-control\">
";
// line 45
if (((isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 45, $this->source); })()) == "12")) {
echo "
<option value=\"12\" selected>12</option>
";
} else {
// line 47
echo "
<option value=\"12\">12</option>
";
}
// line 49
echo "
";
// line 50
if (((isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 50, $this->source); })()) == "24")) {
echo "
<option value=\"24\" selected>24</option>
";
} else {
// line 52
echo "
<option value=\"24\">24</option>
";
}
// line 54
echo "
";
// line 55
if (((isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 55, $this->source); })()) == "48")) {
echo "
<option value=\"48\" selected>48</option>
";
} else {
// line 57
echo "
<option value=\"48\">48</option>
";
}
// line 59
echo "
";
// line 60
if (((isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 60, $this->source); })()) == "100")) {
echo "
<option value=\"100\" selected>100</option>
";
} else {
// line 62
echo "
<option value=\"100\">100</option>
";
}
// line 64
echo "
";
// line 66
if (((isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 66, $this->source); })()) == "200")) {
echo "
<option value=\"200\" selected>200</option>
";
} else {
// line 68
echo "
<option value=\"200\">200</option>
";
}
// line 70
echo "
</select>
</div>
</div>
</nav>";
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "includes/pagination.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<nav class=\"toolbox toolbox-pagination ml-0 ml-lg-4\">
<div class=\"toolbox-left\">
<p class=\"numresults font-weight-bold\">
{% if paginationVariables.totalCount > 12 %}
{{paginationVariables.firstItemNumber}}-{{paginationVariables.lastItemNumber}} {{ 'di'|trans }} {{paginationVariables.totalCount}} {% if listtype is defined %} {{listtype}} {% else %}{{ 'risultati'|trans }}{% endif %}
{% else %}
{{paginationVariables.totalCount}} {{ordertype|trans}}
{% endif %}
{#{{paginationVariables.totalCount}} risultati {% if term is defined and term != \"\" %} {{ 'per'|trans }} \"{{term}}\" {% endif %} in {% if category is defined %} {{category.name}} {% endif %} #}
</p>
</div>
<div class=\"toolbox-center\">
<ul class=\"pagination toolbox-item\">
{% if(paginationVariables.previous is defined) %}
<li class=\"page-item\">
<a class=\"page-link\" href=\"{{ pimcore_url({'page': paginationVariables.previous}) }}\" aria-label=\"Previous\">
<i class=\"icon-angle-left\"></i>
</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 %}
</ul>
</div>
<div class=\"toolbox-right\">
<div class=\"select-custom d-flex align-items-center\">
<span class=\"mx-3\" style=\"white-space:nowrap\">{{ 'Elementi per pagina'|trans }}</span>
<select name=\"page_limit\" id=\"page_limit\" class=\"form-control\">
{% if limit == \"12\" %}
<option value=\"12\" selected>12</option>
{% else %}
<option value=\"12\">12</option>
{% endif %}
{% if limit == \"24\" %}
<option value=\"24\" selected>24</option>
{% else %}
<option value=\"24\">24</option>
{% endif %}
{% if limit == \"48\" %}
<option value=\"48\" selected>48</option>
{% else %}
<option value=\"48\">48</option>
{% endif %}
{% if limit == \"100\" %}
<option value=\"100\" selected>100</option>
{% else %}
<option value=\"100\">100</option>
{% endif %}
{% if limit == \"200\" %}
<option value=\"200\" selected>200</option>
{% else %}
<option value=\"200\">200</option>
{% endif %}
</select>
</div>
</div>
</nav>", "includes/pagination.html.twig", "/home/ubuntu/mecstore/website/templates/includes/pagination.html.twig");
}
}