var/cache/dev/twig/13/13199e637bec97a99e1663dc60076d9f261511e5bc32fa792c63678c86e3bbde.php line 191

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. /* partenaires/list.html.twig */
  14. class __TwigTemplate_4947769c93ad62347375b38f5abcd7ea1f2897a7a49fac711556a84c8fa867ae 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.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""partenaires/list.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""partenaires/list.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""partenaires/list.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo "Partenaires - enseignement-prive.info";
  55.         
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.     }
  60.     // line 5
  61.     public function block_body($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         // line 6
  69.         echo "<section class=\"container page-partner\">
  70.     <ul class=\"page-topnav search-infos pt-4\">
  71.         <li class=\"title-search\">
  72.             <h1>Partenaires</h1>
  73.             <div class=\"triangle-defaut\"></div>
  74.         </li>
  75.     </ul>
  76.     <div class=\"wrap\">
  77.         <section>
  78.             <article>
  79.                 ";
  80.         // line 16
  81.         if (twig_length_filter($this->env, (isset($context["partenaires"]) || array_key_exists("partenaires"$context) ? $context["partenaires"] : (function () { throw new RuntimeError('Variable "partenaires" does not exist.'16$this->source); })()))) {
  82.             // line 17
  83.             echo "                    <ul class=\"partners-list\">
  84.                         ";
  85.             // line 18
  86.             $context['_parent'] = $context;
  87.             $context['_seq'] = twig_ensure_traversable((isset($context["partenaires"]) || array_key_exists("partenaires"$context) ? $context["partenaires"] : (function () { throw new RuntimeError('Variable "partenaires" does not exist.'18$this->source); })()));
  88.             foreach ($context['_seq'] as $context["_key"] => $context["partenaire"]) {
  89.                 // line 19
  90.                 echo "                            <li>
  91.                                 ";
  92.                 // line 20
  93.                 $context["imgSrc"] = $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["partenaire"], "imageFile");
  94.                 // line 21
  95.                 echo "                                ";
  96.                 if ((isset($context["imgSrc"]) || array_key_exists("imgSrc"$context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.'21$this->source); })())) {
  97.                     // line 22
  98.                     echo "                                    <a href=\"";
  99.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["partenaire"], "url", [], "any"falsefalsefalse22), "html"nulltrue);
  100.                     echo "\" target=\"_blank\">
  101.                                         <figure>
  102.                                             <img src=\"";
  103.                     // line 24
  104.                     echo twig_escape_filter($this->env, (isset($context["imgSrc"]) || array_key_exists("imgSrc"$context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.'24$this->source); })()), "html"nulltrue);
  105.                     echo "\" alt=\"";
  106.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["partenaire"], "libelle", [], "any"falsefalsefalse24), "html"nulltrue);
  107.                     echo "\">
  108.                                         </figure>
  109.                                     </a>
  110.                                 ";
  111.                 }
  112.                 // line 28
  113.                 echo "                                <p>
  114.                                     ";
  115.                 // line 29
  116.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["partenaire"], "libelle", [], "any"falsefalsefalse29))) {
  117.                     // line 30
  118.                     echo "                                        <a class=\"link\" href=\"";
  119.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["partenaire"], "url", [], "any"falsefalsefalse30), "html"nulltrue);
  120.                     echo "\" target=\"_blank\">
  121.                                             ";
  122.                     // line 31
  123.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["partenaire"], "libelle", [], "any"falsefalsefalse31), "html"nulltrue);
  124.                     echo "
  125.                                         </a>
  126.                                         <br>
  127.                                     ";
  128.                 }
  129.                 // line 35
  130.                 echo "                                    ";
  131.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["partenaire"], "description", [], "any"falsefalsefalse35), "html"nulltrue);
  132.                 echo "
  133.                                 </p>
  134.                                 <a class=\"link\" href=\"";
  135.                 // line 37
  136.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["partenaire"], "url", [], "any"falsefalsefalse37), "html"nulltrue);
  137.                 echo "\" target=\"_blank\">
  138.                                     ";
  139.                 // line 38
  140.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_split_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_split_filter($this->envtwig_get_attribute($this->env$this->source$context["partenaire"], "url", [], "any"falsefalsefalse38), "://"), 1, [], "array"falsefalsefalse38), "/"), 0, [], "array"falsefalsefalse38), "html"nulltrue);
  141.                 echo "
  142.                                 </a>
  143.                             </li>
  144.                         ";
  145.             }
  146.             $_parent $context['_parent'];
  147.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['partenaire'], $context['_parent'], $context['loop']);
  148.             $context array_intersect_key($context$_parent) + $_parent;
  149.             // line 42
  150.             echo "                    </ul>
  151.                 ";
  152.         }
  153.         // line 44
  154.         echo "            </article>
  155.         </section>
  156.         <aside>
  157.             ";
  158.         // line 47
  159.         $this->loadTemplate("_includes/banners-list.html.twig""partenaires/list.html.twig"47)->display(twig_to_array(["emplacement" => (($this->extensions['App\Twig\BanniereExtension']->onglet2emplacement(twig_get_attribute($this->env$this->source,         // line 48
  160. (isset($context["quoi"]) || array_key_exists("quoi"$context) ? $context["quoi"] : (function () { throw new RuntimeError('Variable "quoi" does not exist.'48$this->source); })()), "libelle", [], "any"falsefalsefalse48))) ? ($this->extensions['App\Twig\BanniereExtension']->onglet2emplacement(twig_get_attribute($this->env$this->source, (isset($context["quoi"]) || array_key_exists("quoi"$context) ? $context["quoi"] : (function () { throw new RuntimeError('Variable "quoi" does not exist.'48$this->source); })()), "libelle", [], "any"falsefalsefalse48))) : ($this->extensions['App\Twig\BanniereExtension']->fromEtablissements((isset($context["etablissements"]) || array_key_exists("etablissements"$context) ? $context["etablissements"] : (function () { throw new RuntimeError('Variable "etablissements" does not exist.'48$this->source); })())))), "lieu" => "DEFAULT"]));
  161.         // line 51
  162.         echo "
  163.             <div class=\"last-flex\">
  164.                 ";
  165.         // line 53
  166.         $this->loadTemplate("annuaire/_includes/lien-guide.html.twig""partenaires/list.html.twig"53)->display($context);
  167.         // line 54
  168.         echo "                ";
  169.         $this->loadTemplate("_includes/newsletter.html.twig""partenaires/list.html.twig"54)->display($context);
  170.         // line 55
  171.         echo "                ";
  172.         $this->loadTemplate("_includes/last-search.html.twig""partenaires/list.html.twig"55)->display($context);
  173.         // line 56
  174.         echo "                ";
  175.         $this->loadTemplate("_includes/last-establishment.html.twig""partenaires/list.html.twig"56)->display($context);
  176.         // line 57
  177.         echo "            </div>
  178.         </aside>
  179.     </div>
  180. </section>
  181. ";
  182.         
  183.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  184.         
  185.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  186.     }
  187.     public function getTemplateName()
  188.     {
  189.         return "partenaires/list.html.twig";
  190.     }
  191.     public function isTraitable()
  192.     {
  193.         return false;
  194.     }
  195.     public function getDebugInfo()
  196.     {
  197.         return array (  196 => 57,  193 => 56,  190 => 55,  187 => 54,  185 => 53,  181 => 51,  179 => 48,  178 => 47,  173 => 44,  169 => 42,  159 => 38,  155 => 37,  149 => 35,  142 => 31,  137 => 30,  135 => 29,  132 => 28,  123 => 24,  117 => 22,  114 => 21,  112 => 20,  109 => 19,  105 => 18,  102 => 17,  100 => 16,  88 => 6,  78 => 5,  59 => 3,  36 => 1,);
  198.     }
  199.     public function getSourceContext()
  200.     {
  201.         return new Source("{% extends 'base.html.twig' %}
  202. {% block title %}Partenaires - enseignement-prive.info{% endblock %}
  203. {% block body %}
  204. <section class=\"container page-partner\">
  205.     <ul class=\"page-topnav search-infos pt-4\">
  206.         <li class=\"title-search\">
  207.             <h1>Partenaires</h1>
  208.             <div class=\"triangle-defaut\"></div>
  209.         </li>
  210.     </ul>
  211.     <div class=\"wrap\">
  212.         <section>
  213.             <article>
  214.                 {% if partenaires|length %}
  215.                     <ul class=\"partners-list\">
  216.                         {% for partenaire in partenaires %}
  217.                             <li>
  218.                                 {% set imgSrc = vich_uploader_asset(partenaire, 'imageFile') %}
  219.                                 {% if imgSrc %}
  220.                                     <a href=\"{{ partenaire.url }}\" target=\"_blank\">
  221.                                         <figure>
  222.                                             <img src=\"{{ imgSrc }}\" alt=\"{{ partenaire.libelle }}\">
  223.                                         </figure>
  224.                                     </a>
  225.                                 {% endif %}
  226.                                 <p>
  227.                                     {% if partenaire.libelle is not empty %}
  228.                                         <a class=\"link\" href=\"{{ partenaire.url }}\" target=\"_blank\">
  229.                                             {{ partenaire.libelle }}
  230.                                         </a>
  231.                                         <br>
  232.                                     {% endif %}
  233.                                     {{ partenaire.description }}
  234.                                 </p>
  235.                                 <a class=\"link\" href=\"{{ partenaire.url }}\" target=\"_blank\">
  236.                                     {{ partenaire.url|split('://')[1]|split('/')[0] }}
  237.                                 </a>
  238.                             </li>
  239.                         {% endfor %}
  240.                     </ul>
  241.                 {% endif %}
  242.             </article>
  243.         </section>
  244.         <aside>
  245.             {% include '_includes/banners-list.html.twig' with {
  246.             'emplacement': onglet2banniereEmplacement(quoi.libelle) ?: etablissements2banniereEmplacement(etablissements),
  247.             'lieu': 'DEFAULT',
  248.             } only %}
  249.             <div class=\"last-flex\">
  250.                 {% include 'annuaire/_includes/lien-guide.html.twig' %}
  251.                 {% include '_includes/newsletter.html.twig' %}
  252.                 {% include '_includes/last-search.html.twig' %}
  253.                 {% include '_includes/last-establishment.html.twig' %}
  254.             </div>
  255.         </aside>
  256.     </div>
  257. </section>
  258. {% endblock %}
  259. ""partenaires/list.html.twig""/app/templates/partenaires/list.html.twig");
  260.     }
  261. }