<?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;
/* actualite-onpc/fiche.html.twig */
class __TwigTemplate_8e6c420aeeb6074b0a3a9b455744395f63900af87d73c9d2c3136882649dfc0f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'head' => [$this, 'block_head'],
'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", "actualite-onpc/fiche.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "actualite-onpc/fiche.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "actualite-onpc/fiche.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 2
public function block_head($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", "head"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
// line 3
echo " <script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"VideoObject\",
\"name\": \"";
// line 7
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 7, $this->source); })()), "titre", [], "any", false, false, false, 7), "html", null, true);
echo "\",
\"description\": \"";
// line 8
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 8, $this->source); })()), "texte", [], "any", false, false, false, 8), "html", null, true);
echo "\",
\"thumbnailUrl\": [
\"";
// line 10
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 10, $this->source); })()), "url", [], "any", false, false, false, 10), "html", null, true);
echo "\"
],
\"uploadDate\": \"";
// line 12
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 12, $this->source); })()), "updatedAt", [], "any", false, false, false, 12), "html", null, true);
echo "\",
\"contentUrl\": \"";
// line 13
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 13, $this->source); })()), "url", [], "any", false, false, false, 13), "html", null, true);
echo "\",
\"regionsAllowed\": \"FR\"
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 19
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 20
echo "<section class=\"container page-video single\">
<div id=\"breadcrumb\">
";
// line 22
$this->loadTemplate("actualite-onpc/_includes/breadcrumb.html.twig", "actualite-onpc/fiche.html.twig", 22)->display(twig_array_merge($context, ["lieu" => null, "actualite" => (isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 22, $this->source); })())]));
// line 23
echo " </div>
<div class=\"title\">
<h1 class=\"article-title\">";
// line 26
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 26, $this->source); })()), "titre", [], "any", false, false, false, 26), "html", null, true);
echo "</h1>
</div>
<section>
<article class=\"actualite-onpc\">
<div class=\"text-center\">
<img src=\"";
// line 32
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 32, $this->source); })()), "photoFile"), "webtv_fiche"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 32, $this->source); })()), "titre", [], "any", false, false, false, 32), "html", null, true);
echo "\" class=\"img-fluid\"/>
</div>
<div class=\"content pb-4\">
<div class=\"row\">
<div class=\"col\">
<p class=\"schedule\">
<small>Le ";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, (isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 40, $this->source); })()), "createdAt", [], "any", false, false, false, 40), "medium", "d MMMM Y"), "html", null, true);
echo "</small>
</p>
<p>";
// line 42
echo twig_get_attribute($this->env, $this->source, (isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 42, $this->source); })()), "description", [], "any", false, false, false, 42);
echo "</p>
";
// line 44
if (twig_get_attribute($this->env, $this->source, (isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 44, $this->source); })()), "auteur", [], "any", false, false, false, 44)) {
// line 45
echo " <p class=\"border-top mt-4 p-0\">";
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 45, $this->source); })()), "auteur", [], "any", false, false, false, 45), "description", [], "any", false, false, false, 45);
echo "</p>
";
}
// line 47
echo " </div>
";
// line 48
if ((twig_get_attribute($this->env, $this->source, ($context["actualite"] ?? null), "annonceurs", [], "any", true, true, false, 48) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 48, $this->source); })()), "annonceurs", [], "any", false, false, false, 48)))) {
// line 49
echo " <div class=\"col-md-3 mt-2\">
<div class=\"container\">
<div class=\"row justify-content-md-center\">
";
// line 52
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 52, $this->source); })()), "annonceurs", [], "any", false, false, false, 52));
foreach ($context['_seq'] as $context["_key"] => $context["etablissement"]) {
// line 53
echo " ";
$context["urlFiche"] = 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.', 53, $this->source); })()), "buildFiche", [0 => $context["etablissement"]], "method", false, false, false, 53);
// line 54
echo " ";
$context["imgAlt"] = twig_trim_filter(twig_join_filter([0 => twig_get_attribute($this->env, $this->source, // line 55
$context["etablissement"], "denomination", [], "any", false, false, false, 55), 1 => twig_get_attribute($this->env, $this->source, // line 56
$context["etablissement"], "codePostal", [], "any", false, false, false, 56), 2 => ((twig_get_attribute($this->env, $this->source, // line 57
$context["etablissement"], "ville", [], "any", false, false, false, 57)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["etablissement"], "ville", [], "any", false, false, false, 57), "libelle", [], "any", false, false, false, 57)) : (""))], " - "), " -");
// line 59
echo " <div class=\"col-md-auto mb-2\">
<div class=\"text-center\">
<img src=\"";
// line 61
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, $context["etablissement"], "logo", [], "any", false, false, false, 61), "logoFile"), "etab_hp_logo"), "html", null, true);
echo "\"
class=\"img-fluid mb-2\"
alt=\"";
// line 63
echo twig_escape_filter($this->env, (isset($context["imgAlt"]) || array_key_exists("imgAlt", $context) ? $context["imgAlt"] : (function () { throw new RuntimeError('Variable "imgAlt" does not exist.', 63, $this->source); })()), "html", null, true);
echo "\">
<p class=\"mb-0 fw-semibold\"><a href=\"";
// line 64
echo twig_escape_filter($this->env, (isset($context["urlFiche"]) || array_key_exists("urlFiche", $context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.', 64, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["etablissement"], "denomination", [], "any", false, false, false, 64), "html", null, true);
echo "</a></p>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['etablissement'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 68
echo " </div>
</div>
</div>
";
}
// line 72
echo " </div>
</div>
</article>
</section>
<p class=\"mb-4 pb-4\"> </p>
<p class=\"mb-4 pb-4\"> </p>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "actualite-onpc/fiche.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 223 => 72, 217 => 68, 205 => 64, 201 => 63, 196 => 61, 192 => 59, 190 => 57, 189 => 56, 188 => 55, 186 => 54, 183 => 53, 179 => 52, 174 => 49, 172 => 48, 169 => 47, 163 => 45, 161 => 44, 156 => 42, 151 => 40, 138 => 32, 129 => 26, 124 => 23, 122 => 22, 118 => 20, 108 => 19, 93 => 13, 89 => 12, 84 => 10, 79 => 8, 75 => 7, 69 => 3, 59 => 2, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block head %}
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"VideoObject\",
\"name\": \"{{ actualite.titre }}\",
\"description\": \"{{ actualite.texte }}\",
\"thumbnailUrl\": [
\"{{ actualite.url }}\"
],
\"uploadDate\": \"{{ actualite.updatedAt }}\",
\"contentUrl\": \"{{ actualite.url }}\",
\"regionsAllowed\": \"FR\"
}
</script>
{% endblock %}
{% block body %}
<section class=\"container page-video single\">
<div id=\"breadcrumb\">
{% include 'actualite-onpc/_includes/breadcrumb.html.twig' with { lieu: null, actualite: actualite } %}
</div>
<div class=\"title\">
<h1 class=\"article-title\">{{ actualite.titre }}</h1>
</div>
<section>
<article class=\"actualite-onpc\">
<div class=\"text-center\">
<img src=\"{{ vich_uploader_asset(actualite,'photoFile') | imagine_filter('webtv_fiche')}}\" alt=\"{{actualite.titre}}\" class=\"img-fluid\"/>
</div>
<div class=\"content pb-4\">
<div class=\"row\">
<div class=\"col\">
<p class=\"schedule\">
<small>Le {{ actualite.createdAt | format_date(pattern='d MMMM Y') }}</small>
</p>
<p>{{ actualite.description | raw }}</p>
{% if actualite.auteur %}
<p class=\"border-top mt-4 p-0\">{{ actualite.auteur.description | raw }}</p>
{% endif %}
</div>
{% if actualite.annonceurs is defined and actualite.annonceurs is not empty %}
<div class=\"col-md-3 mt-2\">
<div class=\"container\">
<div class=\"row justify-content-md-center\">
{% for etablissement in actualite.annonceurs %}
{% set urlFiche = pathBuilder.buildFiche(etablissement) %}
{% set imgAlt = [
etablissement.denomination,
etablissement.codePostal,
(etablissement.ville ? etablissement.ville.libelle : ''),
]|join(' - ')|trim(' -') %}
<div class=\"col-md-auto mb-2\">
<div class=\"text-center\">
<img src=\"{{ vich_uploader_asset(etablissement.logo, 'logoFile') | imagine_filter('etab_hp_logo') }}\"
class=\"img-fluid mb-2\"
alt=\"{{ imgAlt }}\">
<p class=\"mb-0 fw-semibold\"><a href=\"{{ urlFiche }}\">{{ etablissement.denomination }}</a></p>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
</div>
</div>
</article>
</section>
<p class=\"mb-4 pb-4\"> </p>
<p class=\"mb-4 pb-4\"> </p>
</section>
{% endblock %}
", "actualite-onpc/fiche.html.twig", "/app/templates/actualite-onpc/fiche.html.twig");
}
}