<?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;
/* structure/show.html.twig */
class __TwigTemplate_2456b87fda7349dac5708c33b3339557 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "structure/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "structure/show.html.twig"));
// line 3
$context["activeMenu"] = "infos-pratiques";
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "structure/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 4, $this->source); })()), "title", [], "any", false, false, false, 4), ["<br>" => ""]), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 6
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 7
echo "\t";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
\t";
// line 8
if ((twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 8, $this->source); })()), "longitude", [], "any", false, false, false, 8) && twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 8, $this->source); })()), "latitude", [], "any", false, false, false, 8))) {
// line 9
echo "\t\t";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("map");
echo "
\t";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 13
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 14
echo "\t<div class=\"titre\">
\t\t<h1>";
// line 15
echo twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 15, $this->source); })()), "title", [], "any", false, false, false, 15);
echo "</h1>
\t\t";
// line 16
if (twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 16, $this->source); })()), "subtitle", [], "any", false, false, false, 16)) {
// line 17
echo "\t\t\t<p class=\"subtitle mt-0\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 17, $this->source); })()), "subtitle", [], "any", false, false, false, 17), "html", null, true);
echo "</p>
\t\t";
}
// line 19
echo "\t</div>
\t";
// line 21
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_EDITOR")) {
// line 22
echo "\t\t";
$context["url"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->getAdminUrlGenerator(), "setController", ["App\\Controller\\Admin\\StructureCrudController"], "method", false, false, false, 22), "setAction", ["edit"], "method", false, false, false, 23), "setEntityId", [twig_get_attribute($this->env, $this->source, // line 25
(isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 25, $this->source); })()), "id", [], "any", false, false, false, 25)], "method", false, false, false, 24);
// line 26
echo "\t\t<p><a class=\"adm-link\" href=\"";
echo twig_escape_filter($this->env, (isset($context["url"]) || array_key_exists("url", $context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.', 26, $this->source); })()), "html", null, true);
echo "\" target=\"_blank\">administrer la structure (";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 26, $this->source); })()), "id", [], "any", false, false, false, 26), "html", null, true);
echo ")</a></p>
\t";
}
// line 28
echo "
\t<div class=\"row\">
\t\t<div class=\"col\">
\t\t\t";
// line 34
echo "\t\t\t
\t\t\t";
// line 35
$this->loadTemplate("media/postMedias.html.twig", "structure/show.html.twig", 35)->display(twig_array_merge($context, ["medias" => twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 35, $this->source); })()), "medias", [], "any", false, false, false, 35), "mediasType" => "slides"]));
// line 36
echo "
";
// line 37
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 37, $this->source); })()), "chapo", [], "any", false, false, false, 37)) > 5)) {
// line 38
echo " <div class=\"chapo\">
";
// line 39
echo twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 39, $this->source); })()), "chapo", [], "any", false, false, false, 39);
echo "
</div>
";
}
// line 42
echo "
\t\t\t";
// line 43
$context["hideThumbnails"] = false;
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 43, $this->source); })()), "medias", [], "any", false, false, false, 43), function ($__media__) use ($context, $macros) { $context["media"] = $__media__; return (twig_get_attribute($this->env, $this->source, $context["media"], "role", [], "any", false, false, false, 43) == "slide"); }));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
$context["hideThumbnails"] = true;
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
echo " ";
if ( !(isset($context["hideThumbnails"]) || array_key_exists("hideThumbnails", $context) ? $context["hideThumbnails"] : (function () { throw new RuntimeError('Variable "hideThumbnails" does not exist.', 44, $this->source); })())) {
$this->loadTemplate("media/postMedias.html.twig", "structure/show.html.twig", 44)->display(twig_array_merge($context, ["medias" => twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 44, $this->source); })()), "medias", [], "any", false, false, false, 44), "mediasType" => "thumbnails"]));
}
// line 45
echo "\t
\t\t\t<div class=\"contenu\">
\t\t\t\t";
// line 47
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SUPER_ADMIN")) {
echo "<strong>tmpOldIds: ";
echo twig_escape_filter($this->env, twig_join_filter(twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 47, $this->source); })()), "tmpOldIds", [], "any", false, false, false, 47), ","), "html", null, true);
echo "</strong><br><br>";
}
// line 48
echo "\t\t\t\t";
echo twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 48, $this->source); })()), "content", [], "any", false, false, false, 48);
echo "
\t\t\t</div>
\t\t\t";
// line 51
$this->loadTemplate("media/postMedias.html.twig", "structure/show.html.twig", 51)->display(twig_array_merge($context, ["medias" => twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 51, $this->source); })()), "medias", [], "any", false, false, false, 51), "mediasType" => "documents"]));
// line 52
echo "
\t\t</div>
\t\t<div class=\"col-md-12 col-lg-3\">
\t\t\t";
// line 56
if ((twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 56, $this->source); })()), "address", [], "any", false, false, false, 56) || twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 56, $this->source); })()), "website", [], "any", false, false, false, 56))) {
// line 57
echo "\t\t\t\t<h4>Coordonnées</h4>
\t\t\t\t<p class=\"mb-3\">
\t\t\t\t\t";
// line 59
if (twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 59, $this->source); })()), "host", [], "any", false, false, false, 59)) {
// line 60
echo "\t\t\t\t\t\t";
$context["host"] = twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 60, $this->source); })()), "host", [], "any", false, false, false, 60);
// line 61
echo "\t\t\t\t\t\tAccueilli par :<br>
\t\t\t\t\t\t<a href=\"";
// line 62
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("showStructure", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["host"]) || array_key_exists("host", $context) ? $context["host"] : (function () { throw new RuntimeError('Variable "host" does not exist.', 62, $this->source); })()), "id", [], "any", false, false, false, 62)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["host"]) || array_key_exists("host", $context) ? $context["host"] : (function () { throw new RuntimeError('Variable "host" does not exist.', 62, $this->source); })()), "name", [], "any", false, false, false, 62), "html", null, true);
echo "</a><br>
\t\t\t\t\t";
}
// line 64
echo "\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 64, $this->source); })()), "includer", [], "any", false, false, false, 64)) {
// line 65
echo "\t\t\t\t\t\t";
$context["includer"] = twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 65, $this->source); })()), "includer", [], "any", false, false, false, 65);
// line 66
echo "\t\t\t\t\t\tInclus dans :<br>
\t\t\t\t\t\t<a href=\"";
// line 67
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("showStructure", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["includer"]) || array_key_exists("includer", $context) ? $context["includer"] : (function () { throw new RuntimeError('Variable "includer" does not exist.', 67, $this->source); })()), "id", [], "any", false, false, false, 67)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["includer"]) || array_key_exists("includer", $context) ? $context["includer"] : (function () { throw new RuntimeError('Variable "includer" does not exist.', 67, $this->source); })()), "name", [], "any", false, false, false, 67), "html", null, true);
echo "</a><br>
\t\t\t\t\t";
}
// line 69
echo "\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 69, $this->source); })()), "address", [], "any", false, false, false, 69)) {
// line 70
echo "\t\t\t\t\t\t";
$context["coordonnees"] = twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 70, $this->source); })()), "address", [], "any", false, false, false, 70);
// line 71
echo "\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 71, $this->source); })()), "postalCode", [], "any", false, false, false, 71)) {
// line 72
echo "\t\t\t\t\t\t\t";
$context["coordonnees"] = ((isset($context["coordonnees"]) || array_key_exists("coordonnees", $context) ? $context["coordonnees"] : (function () { throw new RuntimeError('Variable "coordonnees" does not exist.', 72, $this->source); })()) . twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 72, $this->source); })()), "postalCode", [], "any", false, false, false, 72));
// line 73
echo "\t\t\t\t\t\t\t";
$context["prefixTown"] = " ";
// line 74
echo "\t\t\t\t\t\t";
} else {
// line 75
echo "\t\t\t\t\t\t\t";
$context["prefixTown"] = "";
// line 76
echo "\t\t\t\t\t\t";
}
// line 77
echo "\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 77, $this->source); })()), "town", [], "any", false, false, false, 77)) {
// line 78
echo "\t\t\t\t\t\t\t";
$context["coordonnees"] = (((isset($context["coordonnees"]) || array_key_exists("coordonnees", $context) ? $context["coordonnees"] : (function () { throw new RuntimeError('Variable "coordonnees" does not exist.', 78, $this->source); })()) . (isset($context["prefixTown"]) || array_key_exists("prefixTown", $context) ? $context["prefixTown"] : (function () { throw new RuntimeError('Variable "prefixTown" does not exist.', 78, $this->source); })())) . twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 78, $this->source); })()), "town", [], "any", false, false, false, 78));
// line 79
echo "\t\t\t\t\t\t";
}
// line 80
echo "\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 80, $this->source); })()), "phone", [], "any", false, false, false, 80)) {
// line 81
echo "\t\t\t\t\t\t\t";
$context["coordonnees"] = ((((isset($context["coordonnees"]) || array_key_exists("coordonnees", $context) ? $context["coordonnees"] : (function () { throw new RuntimeError('Variable "coordonnees" does not exist.', 81, $this->source); })()) . "</br><em>Tel. : ") . twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 81, $this->source); })()), "phone", [], "any", false, false, false, 81)) . "</em>");
// line 82
echo "\t\t\t\t\t\t";
}
// line 83
echo "\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 83, $this->source); })()), "email", [], "any", false, false, false, 83)) {
// line 84
echo "\t\t\t\t\t\t\t";
$context["coordonnees"] = ((((((isset($context["coordonnees"]) || array_key_exists("coordonnees", $context) ? $context["coordonnees"] : (function () { throw new RuntimeError('Variable "coordonnees" does not exist.', 84, $this->source); })()) . "</br><a href=\"mailto:") . twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 84, $this->source); })()), "email", [], "any", false, false, false, 84)) . "\" />") . twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 84, $this->source); })()), "email", [], "any", false, false, false, 84)) . "</a>");
// line 85
echo "\t\t\t\t\t\t";
}
// line 86
echo "\t\t\t\t\t\t<address>
\t\t\t\t\t\t\t";
// line 87
echo (isset($context["coordonnees"]) || array_key_exists("coordonnees", $context) ? $context["coordonnees"] : (function () { throw new RuntimeError('Variable "coordonnees" does not exist.', 87, $this->source); })());
echo "
\t\t\t\t\t\t</address>
\t\t\t\t\t";
}
// line 90
echo "\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 90, $this->source); })()), "website", [], "any", false, false, false, 90)) {
// line 91
echo "\t\t\t\t\t\t<a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 91, $this->source); })()), "website", [], "any", false, false, false, 91), "html", null, true);
echo "\" target=\"_blank\">";
echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 91, $this->source); })()), "website", [], "any", false, false, false, 91), ["http://" => "", "https://" => ""]), "html", null, true);
echo "</a>
\t\t\t\t\t";
}
// line 93
echo "\t\t\t\t</p>
\t\t\t";
}
// line 95
echo "\t\t\t
\t\t\t";
// line 96
if ((twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 96, $this->source); })()), "longitude", [], "any", false, false, false, 96) && twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 96, $this->source); })()), "latitude", [], "any", false, false, false, 96))) {
// line 97
echo "\t\t\t\t";
$this->loadTemplate("common/mapElts.html.twig", "structure/show.html.twig", 97)->display($context);
// line 98
echo "\t\t\t";
}
// line 99
echo "\t\t</div>
\t</div>
<div class=\"row\">
<div class=\"col\">
";
// line 105
echo " ";
$this->loadTemplate("common/seealso.html.twig", "structure/show.html.twig", 105)->display(twig_array_merge($context, ["entity" => (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 105, $this->source); })())]));
// line 106
echo "
\t\t\t<p>
\t\t\t\tUne erreur ? Un complément à ajouter ? <a href=\"";
// line 108
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("contact");
echo "\"><strong>Signalez-le nous !</strong></a>
\t\t\t</p>
\t\t\t<p>
\t\t\t\tVous souhaitez faire une autre recherche ? <a href=\"";
// line 111
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("themeList");
echo "\">Faites une recherche par thème ou par mot-clé</a>
\t\t\t</p>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 118
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 119
echo "\t";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
\t";
// line 120
if ((twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 120, $this->source); })()), "longitude", [], "any", false, false, false, 120) && twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 120, $this->source); })()), "latitude", [], "any", false, false, false, 120))) {
// line 121
echo "\t\t<script>
\t\t\tvar structureId = ";
// line 122
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 122, $this->source); })()), "id", [], "any", false, false, false, 122), "html", null, true);
echo ";
\t\t</script>
\t\t";
// line 124
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("map");
echo "
\t";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "structure/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 408 => 124, 403 => 122, 400 => 121, 398 => 120, 393 => 119, 383 => 118, 367 => 111, 361 => 108, 357 => 106, 354 => 105, 347 => 99, 344 => 98, 341 => 97, 339 => 96, 336 => 95, 332 => 93, 324 => 91, 321 => 90, 315 => 87, 312 => 86, 309 => 85, 306 => 84, 303 => 83, 300 => 82, 297 => 81, 294 => 80, 291 => 79, 288 => 78, 285 => 77, 282 => 76, 279 => 75, 276 => 74, 273 => 73, 270 => 72, 267 => 71, 264 => 70, 261 => 69, 254 => 67, 251 => 66, 248 => 65, 245 => 64, 238 => 62, 235 => 61, 232 => 60, 230 => 59, 226 => 57, 224 => 56, 218 => 52, 216 => 51, 209 => 48, 203 => 47, 199 => 45, 194 => 44, 184 => 43, 181 => 42, 175 => 39, 172 => 38, 170 => 37, 167 => 36, 165 => 35, 162 => 34, 157 => 28, 149 => 26, 147 => 25, 145 => 22, 143 => 21, 139 => 19, 133 => 17, 131 => 16, 127 => 15, 124 => 14, 114 => 13, 100 => 9, 98 => 8, 93 => 7, 83 => 6, 64 => 4, 53 => 1, 51 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% set activeMenu = \"infos-pratiques\" %}
{% block title %}{{ structure.title|replace({ '<br>':'' }) }}{% endblock %}
{% block stylesheets %}
\t{{ parent() }}
\t{% if structure.longitude and structure.latitude %}
\t\t{{ encore_entry_link_tags('map') }}
\t{% endif %}
{% endblock %}
{% block body %}
\t<div class=\"titre\">
\t\t<h1>{{ structure.title|raw }}</h1>
\t\t{% if structure.subtitle %}
\t\t\t<p class=\"subtitle mt-0\">{{ structure.subtitle }}</p>
\t\t{% endif %}
\t</div>
\t{% if is_granted('ROLE_EDITOR') %}
\t\t{% set url = ea_url()
\t\t\t.setController('App\\\\Controller\\\\Admin\\\\StructureCrudController')
\t\t\t.setAction('edit')
\t\t\t.setEntityId(structure.id) %}
\t\t<p><a class=\"adm-link\" href=\"{{ url }}\" target=\"_blank\">administrer la structure ({{ structure.id }})</a></p>
\t{% endif %}
\t<div class=\"row\">
\t\t<div class=\"col\">
\t\t\t{# <div class=\"date\">
\t\t\t\t{{structure.createdAt|date(\"d/m/Y\")}}
\t\t\t</div> #}
\t\t\t
\t\t\t{% include 'media/postMedias.html.twig' with {'medias': structure.medias, 'mediasType': 'slides' } %}
{% if structure.chapo|length > 5 %}
<div class=\"chapo\">
{{ structure.chapo|raw }}
</div>
{% endif %}
\t\t\t{% set hideThumbnails = false %}{% for media in structure.medias|filter(media => media.role == \"slide\") %}{% set hideThumbnails = true %}{% endfor %}{# car icig ne veut pas de thumbnail s'il y a des slides #}
{% if not hideThumbnails %}{% include 'media/postMedias.html.twig' with {'medias': structure.medias, 'mediasType': 'thumbnails' } %}{% endif %}
\t
\t\t\t<div class=\"contenu\">
\t\t\t\t{% if is_granted('ROLE_SUPER_ADMIN') %}<strong>tmpOldIds: {{ structure.tmpOldIds|join(\",\") }}</strong><br><br>{% endif %}
\t\t\t\t{{ structure.content|raw }}
\t\t\t</div>
\t\t\t{% include 'media/postMedias.html.twig' with {'medias': structure.medias, 'mediasType': 'documents' } %}
\t\t</div>
\t\t<div class=\"col-md-12 col-lg-3\">
\t\t\t{% if structure.address or structure.website %}
\t\t\t\t<h4>Coordonnées</h4>
\t\t\t\t<p class=\"mb-3\">
\t\t\t\t\t{% if structure.host %}
\t\t\t\t\t\t{% set host = structure.host %}
\t\t\t\t\t\tAccueilli par :<br>
\t\t\t\t\t\t<a href=\"{{ path('showStructure', {id:host.id}) }}\">{{ host.name }}</a><br>
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if structure.includer %}
\t\t\t\t\t\t{% set includer = structure.includer %}
\t\t\t\t\t\tInclus dans :<br>
\t\t\t\t\t\t<a href=\"{{ path('showStructure', {id:includer.id}) }}\">{{ includer.name }}</a><br>
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if structure.address %}
\t\t\t\t\t\t{% set coordonnees = structure.address %}
\t\t\t\t\t\t{% if structure.postalCode %}
\t\t\t\t\t\t\t{% set coordonnees = coordonnees ~ structure.postalCode %}
\t\t\t\t\t\t\t{% set prefixTown = \" \" %}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t{% set prefixTown = \"\" %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if structure.town %}
\t\t\t\t\t\t\t{% set coordonnees = coordonnees ~ prefixTown ~ structure.town %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if structure.phone %}
\t\t\t\t\t\t\t{% set coordonnees = coordonnees ~ \"</br><em>Tel. : \" ~ structure.phone ~ \"</em>\" %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if structure.email %}
\t\t\t\t\t\t\t{% set coordonnees = coordonnees ~ \"</br><a href=\\\"mailto:\" ~ structure.email ~ \"\\\" />\" ~ structure.email ~ \"</a>\" %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<address>
\t\t\t\t\t\t\t{{ coordonnees|raw }}
\t\t\t\t\t\t</address>
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if structure.website %}
\t\t\t\t\t\t<a href=\"{{ structure.website }}\" target=\"_blank\">{{ structure.website|replace({\"http://\": \"\", \"https://\": \"\"}) }}</a>
\t\t\t\t\t{% endif %}
\t\t\t\t</p>
\t\t\t{% endif %}
\t\t\t
\t\t\t{% if structure.longitude and structure.latitude %}
\t\t\t\t{% include 'common/mapElts.html.twig' %}
\t\t\t{% endif %}
\t\t</div>
\t</div>
<div class=\"row\">
<div class=\"col\">
{# {{ render(controller('App\\\\Controller\\\\StructureController:listSame', { 'id' : structure.id })) }} #}
{% include 'common/seealso.html.twig' with {'entity': structure } %}
\t\t\t<p>
\t\t\t\tUne erreur ? Un complément à ajouter ? <a href=\"{{ path('contact') }}\"><strong>Signalez-le nous !</strong></a>
\t\t\t</p>
\t\t\t<p>
\t\t\t\tVous souhaitez faire une autre recherche ? <a href=\"{{ path('themeList') }}\">Faites une recherche par thème ou par mot-clé</a>
\t\t\t</p>
</div>
</div>
{% endblock %}
{% block javascripts %}
\t{{ parent() }}
\t{% if structure.longitude and structure.latitude %}
\t\t<script>
\t\t\tvar structureId = {{ structure.id }};
\t\t</script>
\t\t{{ encore_entry_script_tags('map') }}
\t{% endif %}
{% endblock %}
", "structure/show.html.twig", "/home/ovow2306/public_html/ici-grenoble/ici-gre-back-dev/templates/structure/show.html.twig");
}
}