var/cache/dev/twig/7d/7d98a90d8e1e01fdd2f1bc42db861a2d.php line 54

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. /* structure/show.html.twig */
  14. class __TwigTemplate_2456b87fda7349dac5708c33b3339557 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.             'stylesheets' => [$this'block_stylesheets'],
  25.             'body' => [$this'block_body'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""structure/show.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""structure/show.html.twig"));
  41.         // line 3
  42.         $context["activeMenu"] = "infos-pratiques";
  43.         // line 1
  44.         $this->parent $this->loadTemplate("base.html.twig""structure/show.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 4
  52.     public function block_title($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse4), ["<br>" => ""]), "html"nulltrue);
  60.         
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62.         
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  64.     }
  65.     // line 6
  66.     public function block_stylesheets($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  73.         // line 7
  74.         echo "\t";
  75.         $this->displayParentBlock("stylesheets"$context$blocks);
  76.         echo "
  77. \t";
  78.         // line 8
  79.         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"falsefalsefalse8) && 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"falsefalsefalse8))) {
  80.             // line 9
  81.             echo "\t\t";
  82.             echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("map");
  83.             echo "
  84. \t";
  85.         }
  86.         
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  88.         
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  90.     }
  91.     // line 13
  92.     public function block_body($context, array $blocks = [])
  93.     {
  94.         $macros $this->macros;
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  97.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  99.         // line 14
  100.         echo "\t<div class=\"titre\">
  101. \t\t<h1>";
  102.         // line 15
  103.         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"falsefalsefalse15);
  104.         echo "</h1>
  105. \t\t";
  106.         // line 16
  107.         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"falsefalsefalse16)) {
  108.             // line 17
  109.             echo "\t\t\t<p class=\"subtitle mt-0\">";
  110.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse17), "html"nulltrue);
  111.             echo "</p>
  112. \t\t";
  113.         }
  114.         // line 19
  115.         echo "\t</div>
  116. \t";
  117.         // line 21
  118.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_EDITOR")) {
  119.             // line 22
  120.             echo "\t\t";
  121.             $context["url"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->getAdminUrlGenerator(), "setController", ["App\\Controller\\Admin\\StructureCrudController"], "method"falsefalsefalse22), "setAction", ["edit"], "method"falsefalsefalse23), "setEntityId", [twig_get_attribute($this->env$this->source,             // line 25
  122. (isset($context["structure"]) || array_key_exists("structure"$context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.'25$this->source); })()), "id", [], "any"falsefalsefalse25)], "method"falsefalsefalse24);
  123.             // line 26
  124.             echo "\t\t<p><a class=\"adm-link\" href=\"";
  125.             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"nulltrue);
  126.             echo "\" target=\"_blank\">administrer la structure (";
  127.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse26), "html"nulltrue);
  128.             echo ")</a></p>
  129. \t";
  130.         }
  131.         // line 28
  132.         echo "
  133. \t<div class=\"row\">
  134. \t\t<div class=\"col\">
  135. \t\t\t";
  136.         // line 34
  137.         echo "\t\t\t
  138. \t\t\t";
  139.         // line 35
  140.         $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"falsefalsefalse35), "mediasType" => "slides"]));
  141.         // line 36
  142.         echo "
  143.             ";
  144.         // line 37
  145.         if ((twig_length_filter($this->envtwig_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"falsefalsefalse37)) > 5)) {
  146.             // line 38
  147.             echo "                <div class=\"chapo\">
  148.                     ";
  149.             // line 39
  150.             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"falsefalsefalse39);
  151.             echo "
  152.                 </div>
  153.             ";
  154.         }
  155.         // line 42
  156.         echo "
  157. \t\t\t";
  158.         // line 43
  159.         $context["hideThumbnails"] = false;
  160.         $context['_parent'] = $context;
  161.         $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->envtwig_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"falsefalsefalse43), function ($__media__) use ($context$macros) { $context["media"] = $__media__; return (twig_get_attribute($this->env$this->source$context["media"], "role", [], "any"falsefalsefalse43) == "slide"); }));
  162.         foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  163.             $context["hideThumbnails"] = true;
  164.         }
  165.         $_parent $context['_parent'];
  166.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  167.         $context array_intersect_key($context$_parent) + $_parent;
  168.         // line 44
  169.         echo "            ";
  170.         if ( !(isset($context["hideThumbnails"]) || array_key_exists("hideThumbnails"$context) ? $context["hideThumbnails"] : (function () { throw new RuntimeError('Variable "hideThumbnails" does not exist.'44$this->source); })())) {
  171.             $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"falsefalsefalse44), "mediasType" => "thumbnails"]));
  172.         }
  173.         // line 45
  174.         echo "\t
  175. \t\t\t<div class=\"contenu\">
  176. \t\t\t\t";
  177.         // line 47
  178.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SUPER_ADMIN")) {
  179.             echo "<strong>tmpOldIds: ";
  180.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse47), ","), "html"nulltrue);
  181.             echo "</strong><br><br>";
  182.         }
  183.         // line 48
  184.         echo "\t\t\t\t";
  185.         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"falsefalsefalse48);
  186.         echo "
  187. \t\t\t</div>
  188. \t\t\t";
  189.         // line 51
  190.         $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"falsefalsefalse51), "mediasType" => "documents"]));
  191.         // line 52
  192.         echo "
  193. \t\t</div>
  194. \t\t<div class=\"col-md-12 col-lg-3\">
  195. \t\t\t";
  196.         // line 56
  197.         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"falsefalsefalse56) || 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"falsefalsefalse56))) {
  198.             // line 57
  199.             echo "\t\t\t\t<h4>Coordonnées</h4>
  200. \t\t\t\t<p class=\"mb-3\">
  201. \t\t\t\t\t";
  202.             // line 59
  203.             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"falsefalsefalse59)) {
  204.                 // line 60
  205.                 echo "\t\t\t\t\t\t";
  206.                 $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"falsefalsefalse60);
  207.                 // line 61
  208.                 echo "\t\t\t\t\t\tAccueilli par :<br>
  209. \t\t\t\t\t\t<a href=\"";
  210.                 // line 62
  211.                 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"falsefalsefalse62)]), "html"nulltrue);
  212.                 echo "\">";
  213.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse62), "html"nulltrue);
  214.                 echo "</a><br>
  215. \t\t\t\t\t";
  216.             }
  217.             // line 64
  218.             echo "\t\t\t\t\t";
  219.             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"falsefalsefalse64)) {
  220.                 // line 65
  221.                 echo "\t\t\t\t\t\t";
  222.                 $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"falsefalsefalse65);
  223.                 // line 66
  224.                 echo "\t\t\t\t\t\tInclus dans :<br>
  225. \t\t\t\t\t\t<a href=\"";
  226.                 // line 67
  227.                 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"falsefalsefalse67)]), "html"nulltrue);
  228.                 echo "\">";
  229.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse67), "html"nulltrue);
  230.                 echo "</a><br>
  231. \t\t\t\t\t";
  232.             }
  233.             // line 69
  234.             echo "\t\t\t\t\t";
  235.             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"falsefalsefalse69)) {
  236.                 // line 70
  237.                 echo "\t\t\t\t\t\t";
  238.                 $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"falsefalsefalse70);
  239.                 // line 71
  240.                 echo "\t\t\t\t\t\t";
  241.                 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"falsefalsefalse71)) {
  242.                     // line 72
  243.                     echo "\t\t\t\t\t\t\t";
  244.                     $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"falsefalsefalse72));
  245.                     // line 73
  246.                     echo "\t\t\t\t\t\t\t";
  247.                     $context["prefixTown"] = " ";
  248.                     // line 74
  249.                     echo "\t\t\t\t\t\t";
  250.                 } else {
  251.                     // line 75
  252.                     echo "\t\t\t\t\t\t\t";
  253.                     $context["prefixTown"] = "";
  254.                     // line 76
  255.                     echo "\t\t\t\t\t\t";
  256.                 }
  257.                 // line 77
  258.                 echo "\t\t\t\t\t\t";
  259.                 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"falsefalsefalse77)) {
  260.                     // line 78
  261.                     echo "\t\t\t\t\t\t\t";
  262.                     $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"falsefalsefalse78));
  263.                     // line 79
  264.                     echo "\t\t\t\t\t\t";
  265.                 }
  266.                 // line 80
  267.                 echo "\t\t\t\t\t\t";
  268.                 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"falsefalsefalse80)) {
  269.                     // line 81
  270.                     echo "\t\t\t\t\t\t\t";
  271.                     $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"falsefalsefalse81)) . "</em>");
  272.                     // line 82
  273.                     echo "\t\t\t\t\t\t";
  274.                 }
  275.                 // line 83
  276.                 echo "\t\t\t\t\t\t";
  277.                 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"falsefalsefalse83)) {
  278.                     // line 84
  279.                     echo "\t\t\t\t\t\t\t";
  280.                     $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"falsefalsefalse84)) . "\" />") . 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"falsefalsefalse84)) . "</a>");
  281.                     // line 85
  282.                     echo "\t\t\t\t\t\t";
  283.                 }
  284.                 // line 86
  285.                 echo "\t\t\t\t\t\t<address>
  286. \t\t\t\t\t\t\t";
  287.                 // line 87
  288.                 echo (isset($context["coordonnees"]) || array_key_exists("coordonnees"$context) ? $context["coordonnees"] : (function () { throw new RuntimeError('Variable "coordonnees" does not exist.'87$this->source); })());
  289.                 echo "
  290. \t\t\t\t\t\t</address>
  291. \t\t\t\t\t";
  292.             }
  293.             // line 90
  294.             echo "\t\t\t\t\t";
  295.             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"falsefalsefalse90)) {
  296.                 // line 91
  297.                 echo "\t\t\t\t\t\t<a href=\"";
  298.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse91), "html"nulltrue);
  299.                 echo "\" target=\"_blank\">";
  300.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse91), ["http://" => """https://" => ""]), "html"nulltrue);
  301.                 echo "</a>
  302. \t\t\t\t\t";
  303.             }
  304.             // line 93
  305.             echo "\t\t\t\t</p>
  306. \t\t\t";
  307.         }
  308.         // line 95
  309.         echo "\t\t\t
  310. \t\t\t";
  311.         // line 96
  312.         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"falsefalsefalse96) && 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"falsefalsefalse96))) {
  313.             // line 97
  314.             echo "\t\t\t\t";
  315.             $this->loadTemplate("common/mapElts.html.twig""structure/show.html.twig"97)->display($context);
  316.             // line 98
  317.             echo "\t\t\t";
  318.         }
  319.         // line 99
  320.         echo "\t\t</div>
  321. \t</div>
  322.     <div class=\"row\">
  323.         <div class=\"col\">
  324.             ";
  325.         // line 105
  326.         echo "            ";
  327.         $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); })())]));
  328.         // line 106
  329.         echo "
  330. \t\t\t<p>
  331. \t\t\t\tUne erreur ? Un complément à ajouter ? <a href=\"";
  332.         // line 108
  333.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("contact");
  334.         echo "\"><strong>Signalez-le nous !</strong></a>
  335. \t\t\t</p>
  336. \t\t\t<p>
  337. \t\t\t\tVous souhaitez faire une autre recherche ? <a href=\"";
  338.         // line 111
  339.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("themeList");
  340.         echo "\">Faites une recherche par thème ou par mot-clé</a>
  341. \t\t\t</p>
  342.         </div>
  343.     </div>
  344. ";
  345.         
  346.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  347.         
  348.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  349.     }
  350.     // line 118
  351.     public function block_javascripts($context, array $blocks = [])
  352.     {
  353.         $macros $this->macros;
  354.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  355.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  356.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  357.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  358.         // line 119
  359.         echo "\t";
  360.         $this->displayParentBlock("javascripts"$context$blocks);
  361.         echo "
  362. \t";
  363.         // line 120
  364.         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"falsefalsefalse120) && 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"falsefalsefalse120))) {
  365.             // line 121
  366.             echo "\t\t<script>
  367. \t\t\tvar structureId = ";
  368.             // line 122
  369.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse122), "html"nulltrue);
  370.             echo ";
  371. \t\t</script>
  372. \t\t";
  373.             // line 124
  374.             echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("map");
  375.             echo "
  376. \t";
  377.         }
  378.         
  379.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  380.         
  381.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  382.     }
  383.     public function getTemplateName()
  384.     {
  385.         return "structure/show.html.twig";
  386.     }
  387.     public function isTraitable()
  388.     {
  389.         return false;
  390.     }
  391.     public function getDebugInfo()
  392.     {
  393.         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,);
  394.     }
  395.     public function getSourceContext()
  396.     {
  397.         return new Source("{% extends 'base.html.twig' %}
  398. {% set activeMenu = \"infos-pratiques\" %}
  399. {% block title %}{{ structure.title|replace({ '<br>':'' }) }}{% endblock %}
  400. {% block stylesheets %}
  401. \t{{ parent() }}
  402. \t{% if structure.longitude and structure.latitude %}
  403. \t\t{{ encore_entry_link_tags('map') }}
  404. \t{% endif %}
  405. {% endblock %}
  406. {% block body %}
  407. \t<div class=\"titre\">
  408. \t\t<h1>{{ structure.title|raw }}</h1>
  409. \t\t{% if structure.subtitle %}
  410. \t\t\t<p class=\"subtitle mt-0\">{{ structure.subtitle }}</p>
  411. \t\t{% endif %}
  412. \t</div>
  413. \t{% if is_granted('ROLE_EDITOR') %}
  414. \t\t{% set url = ea_url()
  415. \t\t\t.setController('App\\\\Controller\\\\Admin\\\\StructureCrudController')
  416. \t\t\t.setAction('edit')
  417. \t\t\t.setEntityId(structure.id) %}
  418. \t\t<p><a class=\"adm-link\" href=\"{{ url }}\" target=\"_blank\">administrer la structure ({{ structure.id }})</a></p>
  419. \t{% endif %}
  420. \t<div class=\"row\">
  421. \t\t<div class=\"col\">
  422. \t\t\t{# <div class=\"date\">
  423. \t\t\t\t{{structure.createdAt|date(\"d/m/Y\")}}
  424. \t\t\t</div> #}
  425. \t\t\t
  426. \t\t\t{% include 'media/postMedias.html.twig' with {'medias': structure.medias, 'mediasType': 'slides' } %}
  427.             {% if structure.chapo|length > 5 %}
  428.                 <div class=\"chapo\">
  429.                     {{ structure.chapo|raw }}
  430.                 </div>
  431.             {% endif %}
  432. \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 #}
  433.             {% if not hideThumbnails %}{% include 'media/postMedias.html.twig' with {'medias': structure.medias, 'mediasType': 'thumbnails' } %}{% endif %}
  434. \t
  435. \t\t\t<div class=\"contenu\">
  436. \t\t\t\t{% if is_granted('ROLE_SUPER_ADMIN') %}<strong>tmpOldIds: {{ structure.tmpOldIds|join(\",\") }}</strong><br><br>{% endif %}
  437. \t\t\t\t{{ structure.content|raw }}
  438. \t\t\t</div>
  439. \t\t\t{% include 'media/postMedias.html.twig' with {'medias': structure.medias, 'mediasType': 'documents' } %}
  440. \t\t</div>
  441. \t\t<div class=\"col-md-12 col-lg-3\">
  442. \t\t\t{% if structure.address or structure.website %}
  443. \t\t\t\t<h4>Coordonnées</h4>
  444. \t\t\t\t<p class=\"mb-3\">
  445. \t\t\t\t\t{% if structure.host %}
  446. \t\t\t\t\t\t{% set host = structure.host %}
  447. \t\t\t\t\t\tAccueilli par :<br>
  448. \t\t\t\t\t\t<a href=\"{{ path('showStructure', {id:host.id}) }}\">{{ host.name }}</a><br>
  449. \t\t\t\t\t{% endif %}
  450. \t\t\t\t\t{% if structure.includer %}
  451. \t\t\t\t\t\t{% set includer = structure.includer %}
  452. \t\t\t\t\t\tInclus dans :<br>
  453. \t\t\t\t\t\t<a href=\"{{ path('showStructure', {id:includer.id}) }}\">{{ includer.name }}</a><br>
  454. \t\t\t\t\t{% endif %}
  455. \t\t\t\t\t{% if structure.address %}
  456. \t\t\t\t\t\t{% set coordonnees = structure.address %}
  457. \t\t\t\t\t\t{% if structure.postalCode %}
  458. \t\t\t\t\t\t\t{% set coordonnees = coordonnees ~ structure.postalCode %}
  459. \t\t\t\t\t\t\t{% set prefixTown = \" \" %}
  460. \t\t\t\t\t\t{% else %}
  461. \t\t\t\t\t\t\t{% set prefixTown = \"\" %}
  462. \t\t\t\t\t\t{% endif %}
  463. \t\t\t\t\t\t{% if structure.town %}
  464. \t\t\t\t\t\t\t{% set coordonnees = coordonnees ~ prefixTown ~ structure.town %}
  465. \t\t\t\t\t\t{% endif %}
  466. \t\t\t\t\t\t{% if structure.phone %}
  467. \t\t\t\t\t\t\t{% set coordonnees = coordonnees ~ \"</br><em>Tel. : \" ~ structure.phone ~ \"</em>\" %}
  468. \t\t\t\t\t\t{% endif %}
  469. \t\t\t\t\t\t{% if structure.email %}
  470. \t\t\t\t\t\t\t{% set coordonnees = coordonnees ~ \"</br><a href=\\\"mailto:\" ~ structure.email ~ \"\\\" />\" ~ structure.email ~ \"</a>\" %}
  471. \t\t\t\t\t\t{% endif %}
  472. \t\t\t\t\t\t<address>
  473. \t\t\t\t\t\t\t{{ coordonnees|raw }}
  474. \t\t\t\t\t\t</address>
  475. \t\t\t\t\t{% endif %}
  476. \t\t\t\t\t{% if structure.website %}
  477. \t\t\t\t\t\t<a href=\"{{ structure.website }}\" target=\"_blank\">{{ structure.website|replace({\"http://\": \"\", \"https://\": \"\"}) }}</a>
  478. \t\t\t\t\t{% endif %}
  479. \t\t\t\t</p>
  480. \t\t\t{% endif %}
  481. \t\t\t
  482. \t\t\t{% if structure.longitude and structure.latitude %}
  483. \t\t\t\t{% include 'common/mapElts.html.twig' %}
  484. \t\t\t{% endif %}
  485. \t\t</div>
  486. \t</div>
  487.     <div class=\"row\">
  488.         <div class=\"col\">
  489.             {# {{ render(controller('App\\\\Controller\\\\StructureController:listSame', { 'id' : structure.id })) }} #}
  490.             {% include 'common/seealso.html.twig' with {'entity': structure } %}
  491. \t\t\t<p>
  492. \t\t\t\tUne erreur ? Un complément à ajouter ? <a href=\"{{ path('contact') }}\"><strong>Signalez-le nous !</strong></a>
  493. \t\t\t</p>
  494. \t\t\t<p>
  495. \t\t\t\tVous souhaitez faire une autre recherche ? <a href=\"{{ path('themeList') }}\">Faites une recherche par thème ou par mot-clé</a>
  496. \t\t\t</p>
  497.         </div>
  498.     </div>
  499. {% endblock %}
  500. {% block javascripts %}
  501. \t{{ parent() }}
  502. \t{% if structure.longitude and structure.latitude %}
  503. \t\t<script>
  504. \t\t\tvar structureId = {{ structure.id }};
  505. \t\t</script>
  506. \t\t{{ encore_entry_script_tags('map') }}
  507. \t{% endif %}
  508. {% endblock %}
  509. ""structure/show.html.twig""/home/ovow2306/public_html/ici-grenoble/ici-gre-back-dev/templates/structure/show.html.twig");
  510.     }
  511. }