<?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;
/* diaporama/list.html.twig */
class __TwigTemplate_e344a74dc99692afc938c979ca03aa104a73e76df89feee62ac0d932547c45f5 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'description' => [$this, 'block_description'],
'body' => [$this, 'block_body'],
'h1' => [$this, 'block_h1'],
];
}
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", "diaporama/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", "diaporama/list.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "diaporama/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"));
$this->displayBlock("h1", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_description($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", "description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
// line 6
if ((array_key_exists("lieu", $context) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 6, $this->source); })()), "libelle", [], "any", false, false, false, 6), "DEFAULT")))) {
// line 7
echo "Découvrez les différents diaporamas de l'Annuaire Enseignement Privé pour la zone ";
echo twig_get_attribute($this->env, $this->source, (isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 7, $this->source); })()), "libelle", [], "any", false, false, false, 7);
} else {
// line 9
echo "Découvrez les différents diaporamas de l'Annuaire Enseignement Privé";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 13
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 14
echo " <section class=\"container page-diapo\">
<div id=\"breadcrumb\">
";
// line 16
$this->loadTemplate("diaporama/_includes/breadcrumb.html.twig", "diaporama/list.html.twig", 16)->display(twig_to_array(["lieu" => // line 17
(isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 17, $this->source); })())]));
// line 20
echo " </div>
<div class=\"title mb-4\">";
// line 22
ob_start();
// line 23
echo "<h1>";
// line 24
$this->displayBlock('h1', $context, $blocks);
// line 32
echo "</h1>
<div class=\"triangle-defaut\"></div>";
$___internal_parse_15_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 22
echo twig_spaceless($___internal_parse_15_);
// line 35
echo "</div>
";
// line 36
if ( !(null === (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 36, $this->source); })()))) {
// line 37
echo " <div class=\"recherche-contexte text-left\" role=\"group\">
<a href=\"#\" onclick=\"history.back()\" class=\"liste \">
Retour à la fiche
</a>
</div>
";
}
// line 43
echo " <div class=\"wrap\">
<section>
<div class=\"diapo-list-tri\">
";
// line 46
if ((null === (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 46, $this->source); })()))) {
// line 47
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DiaporamaController::blocDiaposALaUne", ["type" => "liste"]));
// line 50
echo "
";
}
// line 52
echo " <div>
<div class=\"w-100 d-md-block d-lg-none pb-4\">
";
// line 54
$this->loadTemplate("actualite-etablissement/_includes/search-options.html.twig", "diaporama/list.html.twig", 54)->display(twig_array_merge($context, ["type" => "mobile"]));
// line 55
echo " </div>
<div>
";
// line 57
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["diaporamas"]) || array_key_exists("diaporamas", $context) ? $context["diaporamas"] : (function () { throw new RuntimeError('Variable "diaporamas" does not exist.', 57, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["diaporama"]) {
// line 58
echo " <article class=\"p-0 ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["diaporama"], "etablissement", [], "any", false, false, false, 58), "diapoPlus", [], "any", false, false, false, 58)) {
echo "bckgrnd-plus";
} else {
echo "bckgrnd-plus";
}
echo " card-video\">
";
// line 59
$context["imgSrc"] = $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["diaporama"], "photo", [], "any", false, false, false, 59), 0, [], "array", false, false, false, 59), "photoFile"), "diapo_list");
// line 60
echo " ";
if ((isset($context["imgSrc"]) || array_key_exists("imgSrc", $context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.', 60, $this->source); })())) {
// line 61
echo " <div class=\"position-relative pt-0\">
<i class=\"i-diapo\"></i>
";
// line 63
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["diaporama"], "etablissement", [], "any", false, false, false, 63), "diapoPlus", [], "any", false, false, false, 63)) {
// line 64
echo " <span class=\"badge-plus\"></span>
";
}
// line 66
echo " <img class=\"w-100 img-video\" src='";
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.', 66, $this->source); })()), "html", null, true);
echo "'/>
</div>
";
}
// line 69
echo " <div class=\"content text-center\">
<a href=\"";
// line 70
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder", $context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.', 70, $this->source); })()), "buildFiche", [0 => twig_get_attribute($this->env, $this->source, $context["diaporama"], "etablissement", [], "any", false, false, false, 70), 1 => ["diapo-id" => twig_get_attribute($this->env, $this->source, $context["diaporama"], "id", [], "any", false, false, false, 70)]], "method", false, false, false, 70), "html", null, true);
echo "\" data-trace-etab=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["diaporama"], "etablissement", [], "any", false, false, false, 70), "id", [], "any", false, false, false, 70), "html_attr");
echo "\" class=\"date\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["diaporama"], "titre", [], "any", false, false, false, 70), "html", null, true);
echo "</a>
<p class=\"estab\">";
// line 71
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["diaporama"], "etablissement", [], "any", false, false, false, 71), "denomination", [], "any", false, false, false, 71)), "truncate", [0 => 50, 1 => "…", 2 => true], "method", false, false, false, 71), "html", null, true);
echo "
<br/>
<small>";
// line 73
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["diaporama"], "etablissement", [], "any", false, false, false, 73), "ville", [], "any", false, false, false, 73), "libelle", [], "any", false, false, false, 73), "html", null, true);
echo "
";
// line 74
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["diaporama"], "etablissement", [], "any", false, false, false, 74), "ville", [], "any", false, false, false, 74), "departement", [], "any", false, false, false, 74))) {
// line 75
echo " (";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["diaporama"], "etablissement", [], "any", false, false, false, 75), "ville", [], "any", false, false, false, 75), "departement", [], "any", false, false, false, 75), "id", [], "any", false, false, false, 75), "html", null, true);
echo ")
";
}
// line 77
echo " </small>
</p>
<span class=\"see-more\">Découvrir</span>
</div>
</article>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['diaporama'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 83
echo " </div>
</div>
</div>
</section>
<aside>
";
// line 88
$this->loadTemplate("actualite-etablissement/_includes/search-options.html.twig", "diaporama/list.html.twig", 88)->display(twig_array_merge($context, ["type" => "aside"]));
// line 89
echo " </aside>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 24
public function block_h1($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", "h1"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "h1"));
// line 25
if (array_key_exists("diaporamas", $context)) {
// line 26
(((1 === twig_compare(twig_length_filter($this->env, (isset($context["diaporamas"]) || array_key_exists("diaporamas", $context) ? $context["diaporamas"] : (function () { throw new RuntimeError('Variable "diaporamas" does not exist.', 26, $this->source); })())), 1))) ? (print (twig_escape_filter($this->env, (twig_length_filter($this->env, (isset($context["diaporamas"]) || array_key_exists("diaporamas", $context) ? $context["diaporamas"] : (function () { throw new RuntimeError('Variable "diaporamas" does not exist.', 26, $this->source); })())) . " diaporamas"), "html", null, true))) : (print ("Diaporamas")));
} else {
// line 28
echo "Diaporamas";
}
// line 29
echo " de l'enseignement privé";
// line 30
if ((array_key_exists("lieu", $context) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 30, $this->source); })()), "libelle", [], "any", false, false, false, 30), "DEFAULT")))) {
echo " - ";
echo twig_get_attribute($this->env, $this->source, (isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 30, $this->source); })()), "libelle", [], "any", false, false, false, 30);
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "diaporama/list.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 292 => 30, 290 => 29, 287 => 28, 284 => 26, 282 => 25, 272 => 24, 259 => 89, 257 => 88, 250 => 83, 239 => 77, 233 => 75, 231 => 74, 227 => 73, 222 => 71, 214 => 70, 211 => 69, 204 => 66, 200 => 64, 198 => 63, 194 => 61, 191 => 60, 189 => 59, 180 => 58, 176 => 57, 172 => 55, 170 => 54, 166 => 52, 162 => 50, 159 => 47, 157 => 46, 152 => 43, 144 => 37, 142 => 36, 139 => 35, 137 => 22, 133 => 32, 131 => 24, 129 => 23, 127 => 22, 124 => 20, 122 => 17, 121 => 16, 117 => 14, 107 => 13, 96 => 9, 92 => 7, 90 => 6, 80 => 5, 61 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{{ block('h1') }}{% endblock %}
{%- block description -%}
{%- if lieu is defined and lieu.libelle != 'DEFAULT' -%}
Découvrez les différents diaporamas de l'Annuaire Enseignement Privé pour la zone {% autoescape false %}{{lieu.libelle}}{% endautoescape %}
{%- else -%}
Découvrez les différents diaporamas de l'Annuaire Enseignement Privé
{%- endif -%}
{%- endblock -%}
{% block body %}
<section class=\"container page-diapo\">
<div id=\"breadcrumb\">
{% include 'diaporama/_includes/breadcrumb.html.twig' with {
'lieu' : lieu,
}
only %}
</div>
<div class=\"title mb-4\">
{%- apply spaceless -%}
<h1>
{%- block h1 -%}
{%- if diaporamas is defined -%}
{{- diaporamas | length > 1 ? diaporamas | length ~ ' diaporamas' : 'Diaporamas' -}}
{%- else -%}
Diaporamas
{%- endif %} de l'enseignement privé
{%- if lieu is defined and lieu.libelle != 'DEFAULT' %} - {% autoescape false %}{{lieu.libelle}}{% endautoescape %}{%- endif -%}
{%- endblock -%}
</h1>
<div class=\"triangle-defaut\"></div>
{%- endapply -%}
</div>
{% if etablissement is not null %}
<div class=\"recherche-contexte text-left\" role=\"group\">
<a href=\"#\" onclick=\"history.back()\" class=\"liste \">
Retour à la fiche
</a>
</div>
{% endif %}
<div class=\"wrap\">
<section>
<div class=\"diapo-list-tri\">
{% if etablissement is null %}
{{ render(controller(
'App\\\\Controller\\\\DiaporamaController::blocDiaposALaUne',
{ type:'liste' }
)) }}
{% endif %}
<div>
<div class=\"w-100 d-md-block d-lg-none pb-4\">
{% include 'actualite-etablissement/_includes/search-options.html.twig' with { type: 'mobile'} %}
</div>
<div>
{% for diaporama in diaporamas %}
<article class=\"p-0 {% if diaporama.etablissement.diapoPlus %}bckgrnd-plus{% else %}bckgrnd-plus{% endif%} card-video\">
{% set imgSrc = vich_uploader_asset(diaporama.photo[0], 'photoFile')|imagine_filter('diapo_list') %}
{% if imgSrc %}
<div class=\"position-relative pt-0\">
<i class=\"i-diapo\"></i>
{% if diaporama.etablissement.diapoPlus %}
<span class=\"badge-plus\"></span>
{% endif %}
<img class=\"w-100 img-video\" src='{{imgSrc}}'/>
</div>
{% endif %}
<div class=\"content text-center\">
<a href=\"{{ pathBuilder.buildFiche(diaporama.etablissement,{'diapo-id': diaporama.id}) }}\" data-trace-etab=\"{{ diaporama.etablissement.id | e('html_attr') }}\" class=\"date\">{{diaporama.titre }}</a>
<p class=\"estab\">{{ diaporama.etablissement.denomination | u.truncate(50, '…', true)}}
<br/>
<small>{{ diaporama.etablissement.ville.libelle }}
{% if diaporama.etablissement.ville.departement is not null %}
({{ diaporama.etablissement.ville.departement.id }})
{% endif %}
</small>
</p>
<span class=\"see-more\">Découvrir</span>
</div>
</article>
{% endfor %}
</div>
</div>
</div>
</section>
<aside>
{% include 'actualite-etablissement/_includes/search-options.html.twig' with { type: 'aside'} %}
</aside>
</div>
</section>
{% endblock %}
", "diaporama/list.html.twig", "/app/templates/diaporama/list.html.twig");
}
}