var/cache/dev/twig/f0/f0394d062cb23c109a865cead69ce254.php line 67

  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. /* Default/counter.html.twig */
  14. class __TwigTemplate_69b758af1f9326a72cd5f6d2fc341896 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.         $macros["_self"] = $this->macros["_self"] = $this;
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Default/counter.html.twig"));
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Default/counter.html.twig"));
  34.         // line 10
  35.         echo "
  36. ";
  37.         // line 11
  38.         $context["expanded"] = (((array_key_exists("expanded"$context) && (isset($context["expanded"]) || array_key_exists("expanded"$context) ? $context["expanded"] : (function () { throw new RuntimeError('Variable "expanded" does not exist.'11$this->source); })()))) ? (true) : (false));
  39.         // line 12
  40.         echo "
  41. ";
  42.         // line 13
  43.         if ((array_key_exists("offset"$context) && array_key_exists("count"$context))) {
  44.             // line 14
  45.             echo "    ";
  46.             if (((isset($context["count"]) || array_key_exists("count"$context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.'14$this->source); })()) > 0)) {
  47.                 // line 15
  48.                 echo "    <div class='flex row space counters-box middle'>
  49.         ";
  50.                 // line 17
  51.                 $context["route"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'17$this->source); })()), "request", [], "any"falsefalsefalse17), "attributes", [], "any"falsefalsefalse17), "get", [=> "_route"], "method"falsefalsefalse17);
  52.                 // line 18
  53.                 echo "        ";
  54.                 $context["pageRoute"] = ((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'18$this->source); })()) . "-page");
  55.                 // line 19
  56.                 echo "        ";
  57.                 $context["route"] = (($this->extensions['App\Twig\OSExtension']->isRoute((isset($context["pageRoute"]) || array_key_exists("pageRoute"$context) ? $context["pageRoute"] : (function () { throw new RuntimeError('Variable "pageRoute" does not exist.'19$this->source); })()))) ? ((isset($context["pageRoute"]) || array_key_exists("pageRoute"$context) ? $context["pageRoute"] : (function () { throw new RuntimeError('Variable "pageRoute" does not exist.'19$this->source); })())) : ((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'19$this->source); })())));
  58.                 // line 20
  59.                 echo "
  60.         ";
  61.                 // line 21
  62.                 if ( !array_key_exists("table_limit"$context)) {
  63.                     // line 22
  64.                     echo "            ";
  65.                     $context["table_limit"] = 20;
  66.                     // line 23
  67.                     echo "        ";
  68.                 }
  69.                 // line 24
  70.                 echo "
  71.         ";
  72.                 // line 25
  73.                 $context["limit"] = (((isset($context["offset"]) || array_key_exists("offset"$context) ? $context["offset"] : (function () { throw new RuntimeError('Variable "offset" does not exist.'25$this->source); })()) + 1) * (isset($context["table_limit"]) || array_key_exists("table_limit"$context) ? $context["table_limit"] : (function () { throw new RuntimeError('Variable "table_limit" does not exist.'25$this->source); })()));
  74.                 // line 26
  75.                 echo "        ";
  76.                 $context["currentPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'26$this->source); })()), "request", [], "any"falsefalsefalse26), "attributes", [], "any"falsefalsefalse26), "get", [=> "_route"], "method"falsefalsefalse26), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'26$this->source); })()), "request", [], "any"falsefalsefalse26), "attributes", [], "any"falsefalsefalse26), "get", [=> "_route_params"], "method"falsefalsefalse26));
  77.                 // line 27
  78.                 echo "
  79.         ";
  80.                 // line 28
  81.                 if (((isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'28$this->source); })()) > (isset($context["count"]) || array_key_exists("count"$context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.'28$this->source); })()))) {
  82.                     echo " ";
  83.                     $context["limit"] = (isset($context["count"]) || array_key_exists("count"$context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.'28$this->source); })());
  84.                     echo " ";
  85.                 }
  86.                 // line 29
  87.                 echo "
  88.         ";
  89.                 // line 30
  90.                 if ( !(isset($context["expanded"]) || array_key_exists("expanded"$context) ? $context["expanded"] : (function () { throw new RuntimeError('Variable "expanded" does not exist.'30$this->source); })())) {
  91.                     // line 31
  92.                     echo "        <div class='right-20 adapt p'>
  93. \t\t\t<label>Résultats : </label>
  94. \t\t\t<b class=\"\">";
  95.                     // line 33
  96.                     echo twig_escape_filter($this->env, (((isset($context["offset"]) || array_key_exists("offset"$context) ? $context["offset"] : (function () { throw new RuntimeError('Variable "offset" does not exist.'33$this->source); })()) * (isset($context["table_limit"]) || array_key_exists("table_limit"$context) ? $context["table_limit"] : (function () { throw new RuntimeError('Variable "table_limit" does not exist.'33$this->source); })())) + 1), "html"nulltrue);
  97.                     echo " - ";
  98.                     echo twig_escape_filter($this->env, (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'33$this->source); })()), "html"nulltrue);
  99.                     echo " sur ";
  100.                     echo twig_escape_filter($this->env, (isset($context["count"]) || array_key_exists("count"$context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.'33$this->source); })()), "html"nulltrue);
  101.                     echo "</b>
  102. \t\t</div>
  103.         ";
  104.                 }
  105.                 // line 36
  106.                 echo "
  107.         ";
  108.                 // line 37
  109.                 $context["link"] = false;
  110.                 // line 38
  111.                 echo "        ";
  112.                 if (((((isset($context["offset"]) || array_key_exists("offset"$context) ? $context["offset"] : (function () { throw new RuntimeError('Variable "offset" does not exist.'38$this->source); })()) * (isset($context["table_limit"]) || array_key_exists("table_limit"$context) ? $context["table_limit"] : (function () { throw new RuntimeError('Variable "table_limit" does not exist.'38$this->source); })())) + 1) > 1)) {
  113.                     // line 39
  114.                     echo "            ";
  115.                     if ((array_key_exists("params"$context) && twig_length_filter($this->env, (isset($context["params"]) || array_key_exists("params"$context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.'39$this->source); })())))) {
  116.                         // line 40
  117.                         echo "                ";
  118.                         $context["params"] = twig_array_merge((isset($context["params"]) || array_key_exists("params"$context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.'40$this->source); })()), ["offset" => (isset($context["offset"]) || array_key_exists("offset"$context) ? $context["offset"] : (function () { throw new RuntimeError('Variable "offset" does not exist.'40$this->source); })())]);
  119.                         // line 41
  120.                         echo "                ";
  121.                         $context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'41$this->source); })()), (isset($context["params"]) || array_key_exists("params"$context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.'41$this->source); })()));
  122.                         // line 42
  123.                         echo "            ";
  124.                     } elseif ((array_key_exists("cat"$context) && (isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'42$this->source); })()))) {
  125.                         // line 43
  126.                         echo "                ";
  127.                         $context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'43$this->source); })()), ["cat" => (isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'43$this->source); })()), "offset" => (isset($context["offset"]) || array_key_exists("offset"$context) ? $context["offset"] : (function () { throw new RuntimeError('Variable "offset" does not exist.'43$this->source); })())]);
  128.                         // line 44
  129.                         echo "            ";
  130.                     } else {
  131.                         // line 45
  132.                         echo "                ";
  133.                         $context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'45$this->source); })()), ["offset" => (isset($context["offset"]) || array_key_exists("offset"$context) ? $context["offset"] : (function () { throw new RuntimeError('Variable "offset" does not exist.'45$this->source); })())]);
  134.                         // line 46
  135.                         echo "            ";
  136.                     }
  137.                     // line 47
  138.                     echo "        ";
  139.                 }
  140.                 // line 48
  141.                 echo "
  142.         ";
  143.                 // line 49
  144.                 echo twig_call_macro($macros["_self"], "macro_btn", [(isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'49$this->source); })()), (isset($context["expanded"]) || array_key_exists("expanded"$context) ? $context["expanded"] : (function () { throw new RuntimeError('Variable "expanded" does not exist.'49$this->source); })()), "arrow-left""Page précédente""Précédent""adapt right-5"], 49$context$this->getSourceContext());
  145.                 echo "
  146.         ";
  147.                 // line 51
  148.                 if ((isset($context["expanded"]) || array_key_exists("expanded"$context) ? $context["expanded"] : (function () { throw new RuntimeError('Variable "expanded" does not exist.'51$this->source); })())) {
  149.                     // line 52
  150.                     echo "        <b class='btn btn-success small trans'>";
  151.                     echo twig_escape_filter($this->env, (((isset($context["offset"]) || array_key_exists("offset"$context) ? $context["offset"] : (function () { throw new RuntimeError('Variable "offset" does not exist.'52$this->source); })()) * (isset($context["table_limit"]) || array_key_exists("table_limit"$context) ? $context["table_limit"] : (function () { throw new RuntimeError('Variable "table_limit" does not exist.'52$this->source); })())) + 1), "html"nulltrue);
  152.                     echo " - ";
  153.                     echo twig_escape_filter($this->env, (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'52$this->source); })()), "html"nulltrue);
  154.                     echo " sur ";
  155.                     echo twig_escape_filter($this->env, (isset($context["count"]) || array_key_exists("count"$context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.'52$this->source); })()), "html"nulltrue);
  156.                     echo "</b>
  157.         ";
  158.                 }
  159.                 // line 54
  160.                 echo "
  161.         ";
  162.                 // line 55
  163.                 $context["link"] = false;
  164.                 // line 56
  165.                 echo "        ";
  166.                 if (((isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'56$this->source); })()) < (isset($context["count"]) || array_key_exists("count"$context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.'56$this->source); })()))) {
  167.                     // line 57
  168.                     echo "            ";
  169.                     if ((array_key_exists("params"$context) && twig_length_filter($this->env, (isset($context["params"]) || array_key_exists("params"$context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.'57$this->source); })())))) {
  170.                         // line 58
  171.                         echo "                ";
  172.                         $context["params"] = twig_array_merge((isset($context["params"]) || array_key_exists("params"$context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.'58$this->source); })()), ["offset" => ((isset($context["offset"]) || array_key_exists("offset"$context) ? $context["offset"] : (function () { throw new RuntimeError('Variable "offset" does not exist.'58$this->source); })()) + 2)]);
  173.                         // line 59
  174.                         echo "                ";
  175.                         $context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'59$this->source); })()), (isset($context["params"]) || array_key_exists("params"$context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.'59$this->source); })()));
  176.                         // line 60
  177.                         echo "            ";
  178.                     } elseif ((array_key_exists("cat"$context) && (isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'60$this->source); })()))) {
  179.                         // line 61
  180.                         echo "                ";
  181.                         $context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'61$this->source); })()), ["cat" => (isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'61$this->source); })()), "offset" => ((isset($context["offset"]) || array_key_exists("offset"$context) ? $context["offset"] : (function () { throw new RuntimeError('Variable "offset" does not exist.'61$this->source); })()) + 2)]);
  182.                         // line 62
  183.                         echo "            ";
  184.                     } else {
  185.                         // line 63
  186.                         echo "                ";
  187.                         $context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl((isset($context["route"]) || array_key_exists("route"$context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.'63$this->source); })()), ["offset" => ((isset($context["offset"]) || array_key_exists("offset"$context) ? $context["offset"] : (function () { throw new RuntimeError('Variable "offset" does not exist.'63$this->source); })()) + 2)]);
  188.                         // line 64
  189.                         echo "            ";
  190.                     }
  191.                     // line 65
  192.                     echo "        ";
  193.                 }
  194.                 // line 66
  195.                 echo "        ";
  196.                 echo twig_call_macro($macros["_self"], "macro_btn", [(isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'66$this->source); })()), (isset($context["expanded"]) || array_key_exists("expanded"$context) ? $context["expanded"] : (function () { throw new RuntimeError('Variable "expanded" does not exist.'66$this->source); })()), "arrow-right""Page suivante""Suivant""adapt left-5 reverse"], 66$context$this->getSourceContext());
  197.                 echo "
  198.     </div>
  199.     ";
  200.             } else {
  201.                 // line 69
  202.                 echo "    <label>Aucune donnée trouvée</label>
  203.     ";
  204.             }
  205.         }
  206.         
  207.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  208.         
  209.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  210.     }
  211.     // line 1
  212.     public function macro_btn($__link__ null$__expanded__ null$__icon__ null$__title__ null$__text__ null$__class__ null, ...$__varargs__)
  213.     {
  214.         $macros $this->macros;
  215.         $context $this->env->mergeGlobals([
  216.             "link" => $__link__,
  217.             "expanded" => $__expanded__,
  218.             "icon" => $__icon__,
  219.             "title" => $__title__,
  220.             "text" => $__text__,
  221.             "class" => $__class__,
  222.             "varargs" => $__varargs__,
  223.         ]);
  224.         $blocks = [];
  225.         ob_start();
  226.         try {
  227.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  228.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""btn"));
  229.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  230.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""btn"));
  231.             // line 2
  232.             echo "<a ";
  233.             if ((isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'2$this->source); })())) {
  234.                 echo " href='";
  235.                 echo twig_escape_filter($this->env, (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'2$this->source); })()), "html"nulltrue);
  236.                 echo "' ";
  237.             }
  238.             // line 3
  239.             echo "\tclass='";
  240.             echo (((isset($context["expanded"]) || array_key_exists("expanded"$context) ? $context["expanded"] : (function () { throw new RuntimeError('Variable "expanded" does not exist.'3$this->source); })())) ? ("flex row middle vt-5-in hz-15-in border border-success success p upper") : ("icon border small radius-50 iflex col middle"));
  241.             echo " ";
  242.             echo (( !(isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'3$this->source); })())) ? ("disabled") : (""));
  243.             echo " ";
  244.             echo twig_escape_filter($this->env, (isset($context["class"]) || array_key_exists("class"$context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.'3$this->source); })()), "html"nulltrue);
  245.             echo "' title='";
  246.             echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'3$this->source); })()), "html"nulltrue);
  247.             echo "'>
  248. \t<i class='icon contain min ";
  249.             // line 4
  250.             echo twig_escape_filter($this->env, (isset($context["icon"]) || array_key_exists("icon"$context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.'4$this->source); })()), "html"nulltrue);
  251.             echo "'></i>
  252. \t";
  253.             // line 5
  254.             if (((isset($context["expanded"]) || array_key_exists("expanded"$context) ? $context["expanded"] : (function () { throw new RuntimeError('Variable "expanded" does not exist.'5$this->source); })()) &&  !$this->env->getFunction('isMobile')->getCallable()())) {
  255.                 // line 6
  256.                 echo "\t<span> ";
  257.                 echo twig_escape_filter($this->env, (isset($context["text"]) || array_key_exists("text"$context) ? $context["text"] : (function () { throw new RuntimeError('Variable "text" does not exist.'6$this->source); })()), "html"nulltrue);
  258.                 echo "</span>
  259. \t";
  260.             }
  261.             // line 8
  262.             echo "</a>
  263. ";
  264.             
  265.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  266.             
  267.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  268.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  269.         } finally {
  270.             ob_end_clean();
  271.         }
  272.     }
  273.     public function getTemplateName()
  274.     {
  275.         return "Default/counter.html.twig";
  276.     }
  277.     public function isTraitable()
  278.     {
  279.         return false;
  280.     }
  281.     public function getDebugInfo()
  282.     {
  283.         return array (  280 => 8,  274 => 6,  272 => 5,  268 => 4,  257 => 3,  250 => 2,  226 => 1,  213 => 69,  206 => 66,  203 => 65,  200 => 64,  197 => 63,  194 => 62,  191 => 61,  188 => 60,  185 => 59,  182 => 58,  179 => 57,  176 => 56,  174 => 55,  171 => 54,  161 => 52,  159 => 51,  154 => 49,  151 => 48,  148 => 47,  145 => 46,  142 => 45,  139 => 44,  136 => 43,  133 => 42,  130 => 41,  127 => 40,  124 => 39,  121 => 38,  119 => 37,  116 => 36,  106 => 33,  102 => 31,  100 => 30,  97 => 29,  91 => 28,  88 => 27,  85 => 26,  83 => 25,  80 => 24,  77 => 23,  74 => 22,  72 => 21,  69 => 20,  66 => 19,  63 => 18,  61 => 17,  57 => 15,  54 => 14,  52 => 13,  49 => 12,  47 => 11,  44 => 10,);
  284.     }
  285.     public function getSourceContext()
  286.     {
  287.         return new Source("{% macro btn(link, expanded, icon, title, text, class) %}
  288. <a {% if link %} href='{{link}}' {% endif %}
  289. \tclass='{{ expanded ? \"flex row middle vt-5-in hz-15-in border border-success success p upper\" : \"icon border small radius-50 iflex col middle\" }} {{not link ? \"disabled\"}} {{class}}' title='{{title}}'>
  290. \t<i class='icon contain min {{icon}}'></i>
  291. \t{% if expanded and not isMobile() %}
  292. \t<span> {{text}}</span>
  293. \t{% endif %}
  294. </a>
  295. {% endmacro %}
  296. {% set expanded = expanded is defined and expanded ? true : false %}
  297. {% if offset is defined and count is defined %}
  298.     {% if count > 0 %}
  299.     <div class='flex row space counters-box middle'>
  300.         {% set route = app.request.attributes.get('_route') %}
  301.         {% set pageRoute = route~'-page' %}
  302.         {% set route = isRoute(pageRoute) ? pageRoute : route %}
  303.         {% if table_limit is not defined %}
  304.             {% set table_limit = 20 %}
  305.         {% endif %}
  306.         {% set limit = (offset+1)*table_limit %}
  307.         {% set currentPath = path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')) %}
  308.         {% if limit > count %} {% set limit = count %} {% endif %}
  309.         {% if not expanded %}
  310.         <div class='right-20 adapt p'>
  311. \t\t\t<label>Résultats : </label>
  312. \t\t\t<b class=\"\">{{ (offset*table_limit)+1 }} - {{ limit }} sur {{ count }}</b>
  313. \t\t</div>
  314.         {% endif %}
  315.         {% set link = false %}
  316.         {% if (offset*table_limit)+1 > 1 %}
  317.             {% if params is defined and params|length %}
  318.                 {% set params = params|merge({'offset':offset}) %}
  319.                 {% set link = url(route,params) %}
  320.             {% elseif cat is defined and cat %}
  321.                 {% set link = url(route,{'cat':cat,'offset':offset}) %}
  322.             {% else %}
  323.                 {% set link = url(route,{'offset':offset}) %}
  324.             {% endif %}
  325.         {% endif %}
  326.         {{ _self.btn(link, expanded, \"arrow-left\", \"Page précédente\", \"Précédent\", \"adapt right-5\") }}
  327.         {% if expanded %}
  328.         <b class='btn btn-success small trans'>{{ (offset*table_limit)+1 }} - {{ limit }} sur {{ count }}</b>
  329.         {% endif %}
  330.         {% set link = false %}
  331.         {% if limit < count %}
  332.             {% if params is defined and params|length %}
  333.                 {% set params = params|merge({'offset':offset+2}) %}
  334.                 {% set link = url(route,params) %}
  335.             {% elseif cat is defined and cat %}
  336.                 {% set link = url(route,{'cat':cat,'offset':offset+2}) %}
  337.             {% else %}
  338.                 {% set link = url(route,{'offset':offset+2}) %}
  339.             {% endif %}
  340.         {% endif %}
  341.         {{ _self.btn(link, expanded, \"arrow-right\", \"Page suivante\", \"Suivant\", \"adapt left-5 reverse\") }}
  342.     </div>
  343.     {% else %}
  344.     <label>Aucune donnée trouvée</label>
  345.     {% endif %}
  346. {% endif %}
  347. ""Default/counter.html.twig""/home/olasoftnka/asin/templates/Default/counter.html.twig");
  348.     }
  349. }