/
var
/
www
/
html
/
restaurants
/
var
/
cache
/
prod
/
twig
/
19
/
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/sliding.html.twig */ class __TwigTemplate_4a7314edae8f5e6c7f83cc025f9fde33cc7d2208392cb86f1bcf1b15727162cb 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 2 if ((1 === twig_compare(($context["pageCount"] ?? null), 1))) { // line 3 echo " <div class=\"pagination\"> "; // line 4 if ((array_key_exists("first", $context) && (0 !== twig_compare(($context["current"] ?? null), ($context["first"] ?? null))))) { // line 5 echo " <span class=\"first\"> <a href=\""; // line 6 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["first"] ?? null)])), "html", null, true); echo "\"><<</a> </span> "; } // line 9 echo " "; // line 10 if (array_key_exists("previous", $context)) { // line 11 echo " <span class=\"previous\"> <a rel=\"prev\" href=\""; // line 12 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 "\"><</a> </span> "; } // line 15 echo " "; // line 16 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["pagesInRange"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["page"]) { // line 17 echo " "; if ((0 !== twig_compare($context["page"], ($context["current"] ?? null)))) { // line 18 echo " <span class=\"page\"> <a href=\""; // line 19 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 "\">"; echo twig_escape_filter($this->env, $context["page"], "html", null, true); echo "</a> </span> "; } else { // line 22 echo " <span class=\"current\">"; echo twig_escape_filter($this->env, $context["page"], "html", null, true); echo "</span> "; } // line 24 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 25 echo " "; // line 26 if (array_key_exists("next", $context)) { // line 27 echo " <span class=\"next\"> <a rel=\"next\" href=\""; // line 28 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 "\">></a> </span> "; } // line 31 echo " "; // line 32 if ((array_key_exists("last", $context) && (0 !== twig_compare(($context["current"] ?? null), ($context["last"] ?? null))))) { // line 33 echo " <span class=\"last\"> <a href=\""; // line 34 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["last"] ?? null)])), "html", null, true); echo "\">>></a> </span> "; } // line 37 echo " </div> "; } } public function getTemplateName() { return "@KnpPaginator/Pagination/sliding.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 128 => 37, 122 => 34, 119 => 33, 117 => 32, 114 => 31, 108 => 28, 105 => 27, 103 => 26, 100 => 25, 94 => 24, 88 => 22, 80 => 19, 77 => 18, 74 => 17, 70 => 16, 67 => 15, 61 => 12, 58 => 11, 56 => 10, 53 => 9, 47 => 6, 44 => 5, 42 => 4, 39 => 3, 37 => 2,); } public function getSourceContext() { return new Source("", "@KnpPaginator/Pagination/sliding.html.twig", "/var/www/html/restaurants/vendor/knplabs/knp-paginator-bundle/templates/Pagination/sliding.html.twig"); } }