var/cache/dev/twig/9c/9cbbd13071717957cff9ce6b29157be74a3dd72e66e142e21e896861d76564f6.php line 184

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. /* actualite-onpc/fiche.html.twig */
  14. class __TwigTemplate_8e6c420aeeb6074b0a3a9b455744395f63900af87d73c9d2c3136882649dfc0f 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.             'head' => [$this'block_head'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""actualite-onpc/fiche.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""actualite-onpc/fiche.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""actualite-onpc/fiche.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 2
  47.     public function block_head($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  54.         // line 3
  55.         echo "    <script type=\"application/ld+json\">
  56.         {
  57.             \"@context\": \"https://schema.org\",
  58.             \"@type\": \"VideoObject\",
  59.             \"name\": \"";
  60.         // line 7
  61.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse7), "html"nulltrue);
  62.         echo "\",
  63.             \"description\": \"";
  64.         // line 8
  65.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse8), "html"nulltrue);
  66.         echo "\",
  67.             \"thumbnailUrl\": [
  68.                 \"";
  69.         // line 10
  70.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse10), "html"nulltrue);
  71.         echo "\"
  72.             ],
  73.             \"uploadDate\": \"";
  74.         // line 12
  75.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse12), "html"nulltrue);
  76.         echo "\",
  77.             \"contentUrl\": \"";
  78.         // line 13
  79.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse13), "html"nulltrue);
  80.         echo "\",
  81.             \"regionsAllowed\": \"FR\"
  82.         }
  83.     </script>
  84. ";
  85.         
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  87.         
  88.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  89.     }
  90.     // line 19
  91.     public function block_body($context, array $blocks = [])
  92.     {
  93.         $macros $this->macros;
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  95.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  96.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  97.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  98.         // line 20
  99.         echo "<section class=\"container page-video single\">
  100.     <div id=\"breadcrumb\">
  101.         ";
  102.         // line 22
  103.         $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); })())]));
  104.         // line 23
  105.         echo "    </div>
  106.     <div class=\"title\">
  107.         <h1 class=\"article-title\">";
  108.         // line 26
  109.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse26), "html"nulltrue);
  110.         echo "</h1>
  111.     </div>
  112.     <section>
  113.         <article class=\"actualite-onpc\">
  114.             <div class=\"text-center\">
  115.                 <img src=\"";
  116.         // line 32
  117.         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"nulltrue);
  118.         echo "\" alt=\"";
  119.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse32), "html"nulltrue);
  120.         echo "\" class=\"img-fluid\"/>
  121.             </div>
  122.             <div class=\"content pb-4\">
  123.                   <div class=\"row\">
  124.                     <div class=\"col\">
  125.                         <p class=\"schedule\">
  126.                             <small>Le ";
  127.         // line 40
  128.         echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_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"falsefalsefalse40), "medium""d MMMM Y"), "html"nulltrue);
  129.         echo "</small>
  130.                         </p>
  131.                         <p>";
  132.         // line 42
  133.         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"falsefalsefalse42);
  134.         echo "</p>
  135.                         ";
  136.         // line 44
  137.         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"falsefalsefalse44)) {
  138.             // line 45
  139.             echo "                            <p class=\"border-top mt-4 p-0\">";
  140.             echo twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse45), "description", [], "any"falsefalsefalse45);
  141.             echo "</p>
  142.                         ";
  143.         }
  144.         // line 47
  145.         echo "                    </div>
  146.                     ";
  147.         // line 48
  148.         if ((twig_get_attribute($this->env$this->source, ($context["actualite"] ?? null), "annonceurs", [], "any"truetruefalse48) &&  !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"falsefalsefalse48)))) {
  149.             // line 49
  150.             echo "                    <div class=\"col-md-3 mt-2\">
  151.                             <div class=\"container\">
  152.                                 <div class=\"row justify-content-md-center\">
  153.                                     ";
  154.             // line 52
  155.             $context['_parent'] = $context;
  156.             $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"falsefalsefalse52));
  157.             foreach ($context['_seq'] as $context["_key"] => $context["etablissement"]) {
  158.                 // line 53
  159.                 echo "                                        ";
  160.                 $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", [=> $context["etablissement"]], "method"falsefalsefalse53);
  161.                 // line 54
  162.                 echo "                                        ";
  163.                 $context["imgAlt"] = twig_trim_filter(twig_join_filter([=> twig_get_attribute($this->env$this->source,                 // line 55
  164. $context["etablissement"], "denomination", [], "any"falsefalsefalse55), => twig_get_attribute($this->env$this->source,                 // line 56
  165. $context["etablissement"], "codePostal", [], "any"falsefalsefalse56), => ((twig_get_attribute($this->env$this->source,                 // line 57
  166. $context["etablissement"], "ville", [], "any"falsefalsefalse57)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["etablissement"], "ville", [], "any"falsefalsefalse57), "libelle", [], "any"falsefalsefalse57)) : (""))], " - "), " -");
  167.                 // line 59
  168.                 echo "                                    <div class=\"col-md-auto mb-2\">
  169.                                         <div class=\"text-center\">
  170.                                             <img src=\"";
  171.                 // line 61
  172.                 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"falsefalsefalse61), "logoFile"), "etab_hp_logo"), "html"nulltrue);
  173.                 echo "\"
  174.                                                 class=\"img-fluid mb-2\"
  175.                                                 alt=\"";
  176.                 // line 63
  177.                 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"nulltrue);
  178.                 echo "\">
  179.                                             <p class=\"mb-0 fw-semibold\"><a href=\"";
  180.                 // line 64
  181.                 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"nulltrue);
  182.                 echo "\">";
  183.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "denomination", [], "any"falsefalsefalse64), "html"nulltrue);
  184.                 echo "</a></p>
  185.                                         </div>
  186.                                     </div>
  187.                                     ";
  188.             }
  189.             $_parent $context['_parent'];
  190.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['etablissement'], $context['_parent'], $context['loop']);
  191.             $context array_intersect_key($context$_parent) + $_parent;
  192.             // line 68
  193.             echo "                                </div>
  194.                             </div>
  195.                     </div>
  196.                     ";
  197.         }
  198.         // line 72
  199.         echo "                </div>
  200.             </div>
  201.         </article>
  202.     </section>
  203.     <p class=\"mb-4 pb-4\">&nbsp;</p>
  204.     <p class=\"mb-4 pb-4\">&nbsp;</p>
  205. </section>
  206. ";
  207.         
  208.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  209.         
  210.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  211.     }
  212.     public function getTemplateName()
  213.     {
  214.         return "actualite-onpc/fiche.html.twig";
  215.     }
  216.     public function isTraitable()
  217.     {
  218.         return false;
  219.     }
  220.     public function getDebugInfo()
  221.     {
  222.         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,);
  223.     }
  224.     public function getSourceContext()
  225.     {
  226.         return new Source("{% extends 'base.html.twig' %}
  227. {% block head %}
  228.     <script type=\"application/ld+json\">
  229.         {
  230.             \"@context\": \"https://schema.org\",
  231.             \"@type\": \"VideoObject\",
  232.             \"name\": \"{{ actualite.titre }}\",
  233.             \"description\": \"{{ actualite.texte }}\",
  234.             \"thumbnailUrl\": [
  235.                 \"{{ actualite.url }}\"
  236.             ],
  237.             \"uploadDate\": \"{{ actualite.updatedAt }}\",
  238.             \"contentUrl\": \"{{ actualite.url }}\",
  239.             \"regionsAllowed\": \"FR\"
  240.         }
  241.     </script>
  242. {% endblock %}
  243. {% block body %}
  244. <section class=\"container page-video single\">
  245.     <div id=\"breadcrumb\">
  246.         {% include 'actualite-onpc/_includes/breadcrumb.html.twig' with { lieu: null, actualite: actualite } %}
  247.     </div>
  248.     <div class=\"title\">
  249.         <h1 class=\"article-title\">{{ actualite.titre }}</h1>
  250.     </div>
  251.     <section>
  252.         <article class=\"actualite-onpc\">
  253.             <div class=\"text-center\">
  254.                 <img src=\"{{ vich_uploader_asset(actualite,'photoFile') | imagine_filter('webtv_fiche')}}\" alt=\"{{actualite.titre}}\" class=\"img-fluid\"/>
  255.             </div>
  256.             <div class=\"content pb-4\">
  257.                   <div class=\"row\">
  258.                     <div class=\"col\">
  259.                         <p class=\"schedule\">
  260.                             <small>Le {{ actualite.createdAt | format_date(pattern='d MMMM Y') }}</small>
  261.                         </p>
  262.                         <p>{{ actualite.description | raw }}</p>
  263.                         {% if actualite.auteur %}
  264.                             <p class=\"border-top mt-4 p-0\">{{ actualite.auteur.description | raw }}</p>
  265.                         {% endif %}
  266.                     </div>
  267.                     {% if actualite.annonceurs is defined and actualite.annonceurs is not empty %}
  268.                     <div class=\"col-md-3 mt-2\">
  269.                             <div class=\"container\">
  270.                                 <div class=\"row justify-content-md-center\">
  271.                                     {% for etablissement in actualite.annonceurs %}
  272.                                         {% set urlFiche = pathBuilder.buildFiche(etablissement) %}
  273.                                         {% set imgAlt = [
  274.                                                 etablissement.denomination,
  275.                                                 etablissement.codePostal,
  276.                                                 (etablissement.ville ? etablissement.ville.libelle : ''),
  277.                                             ]|join(' - ')|trim(' -') %}
  278.                                     <div class=\"col-md-auto mb-2\">
  279.                                         <div class=\"text-center\">
  280.                                             <img src=\"{{ vich_uploader_asset(etablissement.logo, 'logoFile') | imagine_filter('etab_hp_logo') }}\"
  281.                                                 class=\"img-fluid mb-2\"
  282.                                                 alt=\"{{ imgAlt }}\">
  283.                                             <p class=\"mb-0 fw-semibold\"><a href=\"{{ urlFiche }}\">{{ etablissement.denomination }}</a></p>
  284.                                         </div>
  285.                                     </div>
  286.                                     {% endfor %}
  287.                                 </div>
  288.                             </div>
  289.                     </div>
  290.                     {% endif %}
  291.                 </div>
  292.             </div>
  293.         </article>
  294.     </section>
  295.     <p class=\"mb-4 pb-4\">&nbsp;</p>
  296.     <p class=\"mb-4 pb-4\">&nbsp;</p>
  297. </section>
  298. {% endblock %}
  299. ""actualite-onpc/fiche.html.twig""/app/templates/actualite-onpc/fiche.html.twig");
  300.     }
  301. }