/
var
/
www
/
html
/
restaurants
/
var
/
cache
/
prod
/
twig
/
52
/
Upload File
HOME
<?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; /* @KnpPaginator/Pagination/foundation_v5_pagination.html.twig */ class __TwigTemplate_dc386647cf1b57cbf47ec8f9f58b498bdb31b486a42a153415d0a9122a6c8bfb 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; // line 20 if ((1 === twig_compare(($context["pageCount"] ?? null), 1))) { // line 21 echo " <ul class=\"pagination\"> "; // line 22 if (array_key_exists("previous", $context)) { // line 23 echo " <li class=\"arrow\"> <a rel=\"prev\" href=\""; // line 24 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(($context["route"] ?? null), twig_array_merge(($context["query"] ?? null), [($context["pageParameterName"] ?? null) => ($context["previous"] ?? null)])), "html", null, true); echo "\">« "; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label_previous", [], "KnpPaginatorBundle"), "html", null, true); echo "</a> </li> "; } else { // line 27 echo " <li class=\"arrow unavailable\"> <a> « "; // line 29 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label_previous", [], "KnpPaginatorBundle"), "html", null, true); echo " </a> </li> "; } // line 33 echo " "; // line 34 if ((1 === twig_compare(($context["startPage"] ?? null), 1))) { // line 35 echo " <li> <a href=\""; // line 36 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(($context["route"] ?? null), twig_array_merge(($context["query"] ?? null), [($context["pageParameterName"] ?? null) => 1])), "html", null, true); echo "\">1</a> </li> "; // line 38 if ((0 === twig_compare(($context["startPage"] ?? null), 3))) { // line 39 echo " <li> <a href=\""; // line 40 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(($context["route"] ?? null), twig_array_merge(($context["query"] ?? null), [($context["pageParameterName"] ?? null) => 2])), "html", null, true); echo "\">2</a> </li> "; } elseif ((0 !== twig_compare( // line 42 ($context["startPage"] ?? null), 2))) { // line 43 echo " <li class=\"unavailable\"> <a>…</a> </li> "; } // line 47 echo " "; } // line 48 echo " "; // line 49 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["pagesInRange"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["page"]) { // line 50 echo " "; if ((0 !== twig_compare($context["page"], ($context["current"] ?? null)))) { // line 51 echo " <li> <a href=\""; // line 52 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(($context["route"] ?? null), twig_array_merge(($context["query"] ?? null), [($context["pageParameterName"] ?? null) => $context["page"]])), "html", null, true); echo "\"> "; // line 53 echo twig_escape_filter($this->env, $context["page"], "html", null, true); echo " </a> </li> "; } else { // line 57 echo " <li class=\"current\"> <a>"; // line 58 echo twig_escape_filter($this->env, $context["page"], "html", null, true); echo "</a> </li> "; } // line 61 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 63 echo " "; // line 64 if ((1 === twig_compare(($context["pageCount"] ?? null), ($context["endPage"] ?? null)))) { // line 65 echo " "; if ((1 === twig_compare(($context["pageCount"] ?? null), (($context["endPage"] ?? null) + 1)))) { // line 66 echo " "; if ((1 === twig_compare(($context["pageCount"] ?? null), (($context["endPage"] ?? null) + 2)))) { // line 67 echo " <li class=\"unavailable\"> <a>…</a> </li> "; } else { // line 71 echo " <li> <a href=\""; // line 72 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(($context["route"] ?? null), twig_array_merge(($context["query"] ?? null), [($context["pageParameterName"] ?? null) => (($context["pageCount"] ?? null) - 1)])), "html", null, true); echo "\"> "; // line 73 echo twig_escape_filter($this->env, (($context["pageCount"] ?? null) - 1), "html", null, true); echo " </a> </li> "; } // line 77 echo " "; } // line 78 echo " <li> <a href=\""; // line 79 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(($context["route"] ?? null), twig_array_merge(($context["query"] ?? null), [($context["pageParameterName"] ?? null) => ($context["pageCount"] ?? null)])), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, ($context["pageCount"] ?? null), "html", null, true); echo "</a> </li> "; } // line 82 echo " "; // line 83 if (array_key_exists("next", $context)) { // line 84 echo " <li class=\"arrow\"> <a rel=\"next\" href=\""; // line 85 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(($context["route"] ?? null), twig_array_merge(($context["query"] ?? null), [($context["pageParameterName"] ?? null) => ($context["next"] ?? null)])), "html", null, true); echo "\"> "; // line 86 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label_next", [], "KnpPaginatorBundle"), "html", null, true); echo " » </a> </li> "; } else { // line 90 echo " <li class=\"arrow unavailable\"> <a> "; // line 92 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label_next", [], "KnpPaginatorBundle"), "html", null, true); echo " » </a> </li> "; } // line 96 echo " </ul> "; } } public function getTemplateName() { return "@KnpPaginator/Pagination/foundation_v5_pagination.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 215 => 96, 208 => 92, 204 => 90, 197 => 86, 193 => 85, 190 => 84, 188 => 83, 185 => 82, 177 => 79, 174 => 78, 171 => 77, 164 => 73, 160 => 72, 157 => 71, 151 => 67, 148 => 66, 145 => 65, 143 => 64, 140 => 63, 133 => 61, 127 => 58, 124 => 57, 117 => 53, 113 => 52, 110 => 51, 107 => 50, 103 => 49, 100 => 48, 97 => 47, 91 => 43, 89 => 42, 84 => 40, 81 => 39, 79 => 38, 74 => 36, 71 => 35, 69 => 34, 66 => 33, 59 => 29, 55 => 27, 47 => 24, 44 => 23, 42 => 22, 39 => 21, 37 => 20,); } public function getSourceContext() { return new Source("", "@KnpPaginator/Pagination/foundation_v5_pagination.html.twig", "/var/www/html/restaurants/vendor/knplabs/knp-paginator-bundle/templates/Pagination/foundation_v5_pagination.html.twig"); } }