var/cache/dev/twig/d8/d8e3c80c7be8ac0a2192d5c0cdf5cf3665a18bc13d8cdb739f9250bfb36f7c75.php line 244

Open in your IDE?
  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. /* organisme/liste.html.twig */
  14. class __TwigTemplate_b35c88c07f39993d50684b7c0b24f528ba1187b230211e50c8af7b3531c59730 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->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'description' => [$this'block_description'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.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""organisme/liste.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""organisme/liste.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""organisme/liste.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo "Liste des organismes - L'annuaire de l'enseignement privé";
  56.         
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  58.         
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  60.     }
  61.     // line 5
  62.     public function block_description($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  69.         echo "Liste des organismes - L'annuaire de l'enseignement privé";
  70.         
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  72.         
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  74.     }
  75.     // line 7
  76.     public function block_body($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""body"));
  81.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  83.         // line 8
  84.         echo "
  85. <section class=\"container page-list organismes\">
  86.     <div id=\"breadcrumb\">
  87.         ";
  88.         // line 11
  89.         $this->loadTemplate("organisme/_includes/breadcrumb.html.twig""organisme/liste.html.twig"11)->display($context);
  90.         // line 12
  91.         echo "    </div>
  92.     <ul class=\"page-topnav search-infos\">
  93.         <li class=\"title-search\">
  94.             <h1>
  95.                 ";
  96.         // line 16
  97.         if ((=== twig_compare(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.'16$this->source); })()), "request", [], "any"falsefalsefalse16), "attributes", [], "any"falsefalsefalse16), "get", [=> "_route"], "method"falsefalsefalse16), "organismes_cos"))) {
  98.             // line 17
  99.             echo "                    Les centres d'orientation scolaire
  100.                 ";
  101.         } else {
  102.             // line 19
  103.             echo "                    Les organismes
  104.                 ";
  105.         }
  106.         // line 21
  107.         echo "            </h1>
  108.             <div class=\"triangle-defaut\"></div>
  109.         </li>
  110.         <li>
  111.           <span>";
  112.         // line 25
  113.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["organismes"]) || array_key_exists("organismes"$context) ? $context["organismes"] : (function () { throw new RuntimeError('Variable "organismes" does not exist.'25$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse25), "html"nulltrue);
  114.         echo " résultat";
  115.         if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["organismes"]) || array_key_exists("organismes"$context) ? $context["organismes"] : (function () { throw new RuntimeError('Variable "organismes" does not exist.'25$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse25), 1))) {
  116.             echo "s";
  117.         }
  118.         echo "</span>
  119.         </li>
  120.     </ul>
  121.     <div class=\"wrap\">
  122.         ";
  123.         // line 30
  124.         echo "        <section>
  125.             <div class=\"clearfix establishments-list\">
  126.                 ";
  127.         // line 32
  128.         $context['_parent'] = $context;
  129.         $context['_seq'] = twig_ensure_traversable((isset($context["organismes"]) || array_key_exists("organismes"$context) ? $context["organismes"] : (function () { throw new RuntimeError('Variable "organismes" does not exist.'32$this->source); })()));
  130.         foreach ($context['_seq'] as $context["_key"] => $context["etablissement"]) {
  131.             // line 33
  132.             echo "
  133.                 ";
  134.             // line 34
  135.             $context["urlOrganisme"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fiche-organisme", ["id" => twig_get_attribute($this->env$this->source$context["etablissement"], "id", [], "any"falsefalsefalse34)]);
  136.             // line 35
  137.             echo "
  138.                     <article class=\"organisme\">
  139.                         <header>
  140.                             <h1><a href=\"";
  141.             // line 38
  142.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fiche-organisme", ["id" => twig_get_attribute($this->env$this->source$context["etablissement"], "id", [], "any"falsefalsefalse38)]), "html"nulltrue);
  143.             echo "\">";
  144.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "denomination", [], "any"falsefalsefalse38), "html"nulltrue);
  145.             echo "</a></h1>
  146.                             <p class=\"establishment-address\">";
  147.             // line 39
  148.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "adresse1", [], "any"falsefalsefalse39), "html"nulltrue);
  149.             echo " ";
  150.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "adresse2", [], "any"falsefalsefalse39), "html"nulltrue);
  151.             echo " ";
  152.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "adresse3", [], "any"falsefalsefalse39), "html"nulltrue);
  153.             echo "<br> ";
  154.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "codePostal", [], "any"falsefalsefalse39), "html"nulltrue);
  155.             echo " ";
  156.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["etablissement"], "ville", [], "any"falsefalsefalse39), "libelle", [], "any"falsefalsefalse39), "html"nulltrue);
  157.             echo "</p>
  158.                             ";
  159.             // line 41
  160.             if ( !(null === twig_get_attribute($this->env$this->source$context["etablissement"], "telephonePrincipal", [], "any"falsefalsefalse41))) {
  161.                 // line 42
  162.                 echo "                            <p class=\"phone\">";
  163.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\TelephoneExtension']->format(twig_get_attribute($this->env$this->source$context["etablissement"], "telephonePrincipal", [], "any"falsefalsefalse42)), "html_attr");
  164.                 echo "</p>
  165.                             ";
  166.             }
  167.             // line 44
  168.             echo "
  169.                         </header>
  170.                         <ul class=\"establishment-options\">
  171.                             <li class=\"infos\">
  172.                             ";
  173.             // line 48
  174.             $this->loadTemplate("_includes/lien-masque.html.twig""organisme/liste.html.twig"48)->display(twig_to_array(["target" =>             // line 49
  175. (isset($context["urlOrganisme"]) || array_key_exists("urlOrganisme"$context) ? $context["urlOrganisme"] : (function () { throw new RuntimeError('Variable "urlOrganisme" does not exist.'49$this->source); })()), "content" => "Voir la fiche"]));
  176.             // line 52
  177.             echo "                            </li>
  178.                             <li class=\"mail\">
  179.                                 ";
  180.             // line 54
  181.             $this->loadTemplate("_includes/lien-masque.html.twig""organisme/liste.html.twig"54)->display(twig_to_array(["target" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("form-di", ["id" => twig_get_attribute($this->env$this->source,             // line 55
  182. $context["etablissement"], "id", [], "any"falsefalsefalse55)]), "content" => "Contacter l’établissement"]));
  183.             // line 58
  184.             echo "                            </li>
  185.                         </ul>
  186.                     </article>
  187.                 ";
  188.         }
  189.         $_parent $context['_parent'];
  190.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['etablissement'], $context['_parent'], $context['loop']);
  191.         $context array_intersect_key($context$_parent) + $_parent;
  192.         // line 62
  193.         echo "            </div>
  194.             <div class=\"navigation\">
  195.                 ";
  196.         // line 64
  197.         echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["organismes"]) || array_key_exists("organismes"$context) ? $context["organismes"] : (function () { throw new RuntimeError('Variable "organismes" does not exist.'64$this->source); })()));
  198.         echo "
  199.             </div>
  200.         </section>
  201.         <aside>
  202.             ";
  203.         // line 68
  204.         $this->loadTemplate("_includes/banners-list.html.twig""organisme/liste.html.twig"68)->display(twig_to_array(["emplacement" => twig_constant("App\\Entity\\Banniere::ESPACE_ORGANISMES"), "lieu" => "DEFAULT"]));
  205.         // line 72
  206.         echo "
  207.             <div class=\"last-flex\">
  208.                 ";
  209.         // line 74
  210.         $this->loadTemplate("annuaire/_includes/lien-guide.html.twig""organisme/liste.html.twig"74)->display($context);
  211.         // line 75
  212.         echo "                ";
  213.         $this->loadTemplate("_includes/newsletter.html.twig""organisme/liste.html.twig"75)->display($context);
  214.         // line 76
  215.         echo "                ";
  216.         $this->loadTemplate("_includes/last-search.html.twig""organisme/liste.html.twig"76)->display($context);
  217.         // line 77
  218.         echo "                ";
  219.         $this->loadTemplate("_includes/last-establishment.html.twig""organisme/liste.html.twig"77)->display($context);
  220.         // line 78
  221.         echo "            </div>
  222.         </aside>
  223.     </div>
  224. </section>
  225. ";
  226.         
  227.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  228.         
  229.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  230.     }
  231.     public function getTemplateName()
  232.     {
  233.         return "organisme/liste.html.twig";
  234.     }
  235.     public function isTraitable()
  236.     {
  237.         return false;
  238.     }
  239.     public function getDebugInfo()
  240.     {
  241.         return array (  246 => 78,  243 => 77,  240 => 76,  237 => 75,  235 => 74,  231 => 72,  229 => 68,  222 => 64,  218 => 62,  209 => 58,  207 => 55,  206 => 54,  202 => 52,  200 => 49,  199 => 48,  193 => 44,  187 => 42,  185 => 41,  172 => 39,  166 => 38,  161 => 35,  159 => 34,  156 => 33,  152 => 32,  148 => 30,  137 => 25,  131 => 21,  127 => 19,  123 => 17,  121 => 16,  115 => 12,  113 => 11,  108 => 8,  98 => 7,  79 => 5,  60 => 3,  37 => 1,);
  242.     }
  243.     public function getSourceContext()
  244.     {
  245.         return new Source("{% extends 'base.html.twig' %}
  246. {% block title %}Liste des organismes - L'annuaire de l'enseignement privé{% endblock %}
  247. {% block description %}Liste des organismes - L'annuaire de l'enseignement privé{% endblock %}
  248. {% block body %}
  249. <section class=\"container page-list organismes\">
  250.     <div id=\"breadcrumb\">
  251.         {% include 'organisme/_includes/breadcrumb.html.twig' %}
  252.     </div>
  253.     <ul class=\"page-topnav search-infos\">
  254.         <li class=\"title-search\">
  255.             <h1>
  256.                 {% if app.request.attributes.get('_route') == \"organismes_cos\" %}
  257.                     Les centres d'orientation scolaire
  258.                 {% else %}
  259.                     Les organismes
  260.                 {% endif %}
  261.             </h1>
  262.             <div class=\"triangle-defaut\"></div>
  263.         </li>
  264.         <li>
  265.           <span>{{ organismes.getTotalItemCount }} résultat{% if (organismes.getTotalItemCount) > 1 %}s{% endif %}</span>
  266.         </li>
  267.     </ul>
  268.     <div class=\"wrap\">
  269.         {# <code> manque la pagination </code> #}
  270.         <section>
  271.             <div class=\"clearfix establishments-list\">
  272.                 {% for etablissement in organismes %}
  273.                 {% set urlOrganisme =  path('fiche-organisme', {'id' : etablissement.id})  %}
  274.                     <article class=\"organisme\">
  275.                         <header>
  276.                             <h1><a href=\"{{ path('fiche-organisme', {'id' : etablissement.id}) }}\">{{ etablissement.denomination }}</a></h1>
  277.                             <p class=\"establishment-address\">{{ etablissement.adresse1 }} {{ etablissement.adresse2 }} {{ etablissement.adresse3 }}<br> {{ etablissement.codePostal }} {{ etablissement.ville.libelle }}</p>
  278.                             {% if etablissement.telephonePrincipal is not null %}
  279.                             <p class=\"phone\">{{ etablissement.telephonePrincipal|telephone|e('html_attr') }}</p>
  280.                             {% endif %}
  281.                         </header>
  282.                         <ul class=\"establishment-options\">
  283.                             <li class=\"infos\">
  284.                             {% include '_includes/lien-masque.html.twig' with {
  285.                                 'target':  urlOrganisme ,
  286.                                 'content': 'Voir la fiche'
  287.                             } only %}
  288.                             </li>
  289.                             <li class=\"mail\">
  290.                                 {% include '_includes/lien-masque.html.twig' with {
  291.                                     'target': path('form-di', {id : etablissement.id}),
  292.                                     'content': 'Contacter l’établissement',
  293.                                 } only %}
  294.                             </li>
  295.                         </ul>
  296.                     </article>
  297.                 {% endfor %}
  298.             </div>
  299.             <div class=\"navigation\">
  300.                 {{ knp_pagination_render(organismes) }}
  301.             </div>
  302.         </section>
  303.         <aside>
  304.             {% include '_includes/banners-list.html.twig' with {
  305.             'emplacement': constant('App\\\\Entity\\\\Banniere::ESPACE_ORGANISMES'),
  306.             'lieu': 'DEFAULT',
  307.             } only %}
  308.             <div class=\"last-flex\">
  309.                 {% include 'annuaire/_includes/lien-guide.html.twig' %}
  310.                 {% include '_includes/newsletter.html.twig' %}
  311.                 {% include '_includes/last-search.html.twig' %}
  312.                 {% include '_includes/last-establishment.html.twig' %}
  313.             </div>
  314.         </aside>
  315.     </div>
  316. </section>
  317. {% endblock %}
  318. ""organisme/liste.html.twig""/app/templates/organisme/liste.html.twig");
  319.     }
  320. }