<?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;
/* partenaires/list.html.twig */
class __TwigTemplate_4947769c93ad62347375b38f5abcd7ea1f2897a7a49fac711556a84c8fa867ae extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partenaires/list.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partenaires/list.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "partenaires/list.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Partenaires - enseignement-prive.info";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
echo "<section class=\"container page-partner\">
<ul class=\"page-topnav search-infos pt-4\">
<li class=\"title-search\">
<h1>Partenaires</h1>
<div class=\"triangle-defaut\"></div>
</li>
</ul>
<div class=\"wrap\">
<section>
<article>
";
// line 16
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); })()))) {
// line 17
echo " <ul class=\"partners-list\">
";
// line 18
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["partenaire"]) {
// line 19
echo " <li>
";
// line 20
$context["imgSrc"] = $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["partenaire"], "imageFile");
// line 21
echo " ";
if ((isset($context["imgSrc"]) || array_key_exists("imgSrc", $context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.', 21, $this->source); })())) {
// line 22
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["partenaire"], "url", [], "any", false, false, false, 22), "html", null, true);
echo "\" target=\"_blank\">
<figure>
<img src=\"";
// line 24
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", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["partenaire"], "libelle", [], "any", false, false, false, 24), "html", null, true);
echo "\">
</figure>
</a>
";
}
// line 28
echo " <p>
";
// line 29
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["partenaire"], "libelle", [], "any", false, false, false, 29))) {
// line 30
echo " <a class=\"link\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["partenaire"], "url", [], "any", false, false, false, 30), "html", null, true);
echo "\" target=\"_blank\">
";
// line 31
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["partenaire"], "libelle", [], "any", false, false, false, 31), "html", null, true);
echo "
</a>
<br>
";
}
// line 35
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["partenaire"], "description", [], "any", false, false, false, 35), "html", null, true);
echo "
</p>
<a class=\"link\" href=\"";
// line 37
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["partenaire"], "url", [], "any", false, false, false, 37), "html", null, true);
echo "\" target=\"_blank\">
";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, $context["partenaire"], "url", [], "any", false, false, false, 38), "://"), 1, [], "array", false, false, false, 38), "/"), 0, [], "array", false, false, false, 38), "html", null, true);
echo "
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['partenaire'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 42
echo " </ul>
";
}
// line 44
echo " </article>
</section>
<aside>
";
// line 47
$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
(isset($context["quoi"]) || array_key_exists("quoi", $context) ? $context["quoi"] : (function () { throw new RuntimeError('Variable "quoi" does not exist.', 48, $this->source); })()), "libelle", [], "any", false, false, false, 48))) ? ($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", false, false, false, 48))) : ($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"]));
// line 51
echo "
<div class=\"last-flex\">
";
// line 53
$this->loadTemplate("annuaire/_includes/lien-guide.html.twig", "partenaires/list.html.twig", 53)->display($context);
// line 54
echo " ";
$this->loadTemplate("_includes/newsletter.html.twig", "partenaires/list.html.twig", 54)->display($context);
// line 55
echo " ";
$this->loadTemplate("_includes/last-search.html.twig", "partenaires/list.html.twig", 55)->display($context);
// line 56
echo " ";
$this->loadTemplate("_includes/last-establishment.html.twig", "partenaires/list.html.twig", 56)->display($context);
// line 57
echo " </div>
</aside>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "partenaires/list.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}Partenaires - enseignement-prive.info{% endblock %}
{% block body %}
<section class=\"container page-partner\">
<ul class=\"page-topnav search-infos pt-4\">
<li class=\"title-search\">
<h1>Partenaires</h1>
<div class=\"triangle-defaut\"></div>
</li>
</ul>
<div class=\"wrap\">
<section>
<article>
{% if partenaires|length %}
<ul class=\"partners-list\">
{% for partenaire in partenaires %}
<li>
{% set imgSrc = vich_uploader_asset(partenaire, 'imageFile') %}
{% if imgSrc %}
<a href=\"{{ partenaire.url }}\" target=\"_blank\">
<figure>
<img src=\"{{ imgSrc }}\" alt=\"{{ partenaire.libelle }}\">
</figure>
</a>
{% endif %}
<p>
{% if partenaire.libelle is not empty %}
<a class=\"link\" href=\"{{ partenaire.url }}\" target=\"_blank\">
{{ partenaire.libelle }}
</a>
<br>
{% endif %}
{{ partenaire.description }}
</p>
<a class=\"link\" href=\"{{ partenaire.url }}\" target=\"_blank\">
{{ partenaire.url|split('://')[1]|split('/')[0] }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</article>
</section>
<aside>
{% include '_includes/banners-list.html.twig' with {
'emplacement': onglet2banniereEmplacement(quoi.libelle) ?: etablissements2banniereEmplacement(etablissements),
'lieu': 'DEFAULT',
} only %}
<div class=\"last-flex\">
{% include 'annuaire/_includes/lien-guide.html.twig' %}
{% include '_includes/newsletter.html.twig' %}
{% include '_includes/last-search.html.twig' %}
{% include '_includes/last-establishment.html.twig' %}
</div>
</aside>
</div>
</section>
{% endblock %}
", "partenaires/list.html.twig", "/app/templates/partenaires/list.html.twig");
}
}