var/cache/dev/twig/38/3847a37c1193abc75ce5d0209c4270e016a7f762a4b7125a4e309b8572c78543.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* company/list.html.twig */
  15. class __TwigTemplate_5c1695e929bdfbdb58196a014a7d8d2b6a0ea0b7bb6c2e98ed7aec47a24c2ed4 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'items_description' => [$this'block_items_description'],
  25.             'pagination' => [$this'block_pagination'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 6
  31.         return "company/base_list.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""company/list.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""company/list.html.twig"));
  40.         // line 1
  41.         $context["suffix"] = (((=== CoreExtension::compare((isset($context["currentPage"]) || array_key_exists("currentPage"$context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.'1$this->source); })()), 1))) ? ("") : ("_with_page"));
  42.         // line 2
  43.         $context["title"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("company_list" . (isset($context["suffix"]) || array_key_exists("suffix"$context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.'2$this->source); })())) . ".title"), ["%page%" => (isset($context["currentPage"]) || array_key_exists("currentPage"$context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.'2$this->source); })())]);
  44.         // line 3
  45.         $context["description"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("company_list" . (isset($context["suffix"]) || array_key_exists("suffix"$context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.'3$this->source); })())) . ".description"), ["%page%" => (isset($context["currentPage"]) || array_key_exists("currentPage"$context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.'3$this->source); })())]);
  46.         // line 4
  47.         $context["keywords"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("company_list" . (isset($context["suffix"]) || array_key_exists("suffix"$context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.'4$this->source); })())) . ".keywords"), ["%page%" => (isset($context["currentPage"]) || array_key_exists("currentPage"$context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.'4$this->source); })())]);
  48.         // line 6
  49.         $this->parent $this->loadTemplate("company/base_list.html.twig""company/list.html.twig"6);
  50.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  51.         
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  53.         
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  55.     }
  56.     // line 8
  57.     public function block_items_description($context, array $blocks = [])
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""items_description"));
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""items_description"));
  64.         // line 9
  65.         yield "    <p>";
  66.         yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("company_list.list");
  67.         yield "</p>
  68. ";
  69.         
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  71.         
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  73.         return; yield '';
  74.     }
  75.     // line 12
  76.     public function block_pagination($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pagination"));
  81.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pagination"));
  83.         // line 13
  84.         yield "    <div class=\"toolbar-bottom-container\">
  85.         <nav class=\"pagination-container\">
  86.             ";
  87.         // line 15
  88.         if ((=== CoreExtension::compare((isset($context["currentPage"]) || array_key_exists("currentPage"$context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.'15$this->source); })()), 1))) {
  89.             // line 16
  90.             yield "                <a href=\"";
  91.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("company_list", ["page" => ((isset($context["currentPage"]) || array_key_exists("currentPage"$context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.'16$this->source); })()) - 1)]), "html"nulltrue);
  92.             yield "\" class=\"p-i-previous\"></a>
  93.             ";
  94.         } else {
  95.             // line 18
  96.             yield "                <span class=\"p-i-previous p-i-disabled\"></span>
  97.             ";
  98.         }
  99.         // line 20
  100.         yield "            <span class=\"pagination-pages\">
  101.                 ";
  102.         // line 21
  103.         $context['_parent'] = $context;
  104.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'21$this->source); })()));
  105.         foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
  106.             // line 22
  107.             yield "                    ";
  108.             if ((=== CoreExtension::compare($context["p"], (isset($context["currentPage"]) || array_key_exists("currentPage"$context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.'22$this->source); })())))) {
  109.                 // line 23
  110.                 yield "                        <span class=\"pagination-item p-i p-i-disabled\">";
  111.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["p"], "html"nulltrue);
  112.                 yield "</span>
  113.                     ";
  114.             } elseif ((=== CoreExtension::compare(            // line 24
  115. $context["p"], "..."))) {
  116.                 // line 25
  117.                 yield "                        <span class=\"pagination-item p-i\">…</span>
  118.                     ";
  119.             } else {
  120.                 // line 27
  121.                 yield "                        <a href=\"";
  122.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("company_list", ["page" => $context["p"]]), "html"nulltrue);
  123.                 yield "\" class=\"pagination-item p-i\">
  124.                             ";
  125.                 // line 28
  126.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["p"], "html"nulltrue);
  127.                 yield "
  128.                         </a>
  129.                     ";
  130.             }
  131.             // line 31
  132.             yield "                ";
  133.         }
  134.         $_parent $context['_parent'];
  135.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
  136.         $context array_intersect_key($context$_parent) + $_parent;
  137.         // line 32
  138.         yield "            </span>
  139.             ";
  140.         // line 33
  141.         if ((-=== CoreExtension::compare((isset($context["currentPage"]) || array_key_exists("currentPage"$context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.'33$this->source); })()), Twig\Extension\CoreExtension::last($this->env->getCharset(), (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'33$this->source); })()))))) {
  142.             // line 34
  143.             yield "                <a href=\"";
  144.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("company_list", ["page" => ((isset($context["currentPage"]) || array_key_exists("currentPage"$context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.'34$this->source); })()) + 1)]), "html"nulltrue);
  145.             yield "\" class=\"p-i-next\"></a>
  146.             ";
  147.         } else {
  148.             // line 36
  149.             yield "                <span class=\"p-i-next p-i-disabled\"></span>
  150.             ";
  151.         }
  152.         // line 38
  153.         yield "        </nav>
  154.     </div>
  155. ";
  156.         
  157.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  158.         
  159.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  160.         return; yield '';
  161.     }
  162.     /**
  163.      * @codeCoverageIgnore
  164.      */
  165.     public function getTemplateName()
  166.     {
  167.         return "company/list.html.twig";
  168.     }
  169.     /**
  170.      * @codeCoverageIgnore
  171.      */
  172.     public function isTraitable()
  173.     {
  174.         return false;
  175.     }
  176.     /**
  177.      * @codeCoverageIgnore
  178.      */
  179.     public function getDebugInfo()
  180.     {
  181.         return array (  172 => 38,  168 => 36,  162 => 34,  160 => 33,  157 => 32,  151 => 31,  145 => 28,  140 => 27,  136 => 25,  134 => 24,  129 => 23,  126 => 22,  122 => 21,  119 => 20,  115 => 18,  109 => 16,  107 => 15,  103 => 13,  93 => 12,  79 => 9,  69 => 8,  58 => 6,  56 => 4,  54 => 3,  52 => 2,  50 => 1,  37 => 6,);
  182.     }
  183.     public function getSourceContext()
  184.     {
  185.         return new Source("{% set suffix = currentPage == 1 ? '' : '_with_page' %}
  186. {% set title = ('company_list' ~ suffix ~ '.title')|trans({'%page%': currentPage}) %}
  187. {% set description = ('company_list' ~ suffix ~ '.description')|trans({'%page%': currentPage}) %}
  188. {% set keywords = ('company_list' ~ suffix ~ '.keywords')|trans({'%page%': currentPage}) %}
  189. {% extends 'company/base_list.html.twig' %}
  190. {% block items_description %}
  191.     <p>{{ 'company_list.list'|trans|raw }}</p>
  192. {% endblock items_description %}
  193. {% block pagination %}
  194.     <div class=\"toolbar-bottom-container\">
  195.         <nav class=\"pagination-container\">
  196.             {% if currentPage > 1 %}
  197.                 <a href=\"{{ path('company_list', { page: currentPage - 1 }) }}\" class=\"p-i-previous\"></a>
  198.             {% else %}
  199.                 <span class=\"p-i-previous p-i-disabled\"></span>
  200.             {% endif %}
  201.             <span class=\"pagination-pages\">
  202.                 {% for p in pagination %}
  203.                     {% if p == currentPage %}
  204.                         <span class=\"pagination-item p-i p-i-disabled\">{{ p }}</span>
  205.                     {% elseif p == '...' %}
  206.                         <span class=\"pagination-item p-i\">…</span>
  207.                     {% else %}
  208.                         <a href=\"{{ path('company_list', { page: p }) }}\" class=\"pagination-item p-i\">
  209.                             {{ p }}
  210.                         </a>
  211.                     {% endif %}
  212.                 {% endfor %}
  213.             </span>
  214.             {% if currentPage < pagination|last %}
  215.                 <a href=\"{{ path('company_list', { page: currentPage + 1 }) }}\" class=\"p-i-next\"></a>
  216.             {% else %}
  217.                 <span class=\"p-i-next p-i-disabled\"></span>
  218.             {% endif %}
  219.         </nav>
  220.     </div>
  221. {% endblock pagination %}""company/list.html.twig""/var/www/brc_frontend/templates/company/list.html.twig");
  222.     }
  223. }