var/cache/dev/twig/e6/e622bb1d1a0ec4becc2a539c3335d4c7.php line 38

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* Pages\NewsPage\pagetemplate.html.twig */
  16. class __TwigTemplate_2ec999f3f2ee910fab9440d2c8a7978f extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = []): iterable
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Pages\\NewsPage\\pagetemplate.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Pages\\NewsPage\\pagetemplate.html.twig"));
  38.         // line 1
  39.         $context["homepagePageNode"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["nodemenu"]) || array_key_exists("nodemenu"$context) ? $context["nodemenu"] : (function () { throw new RuntimeError('Variable "nodemenu" does not exist.'1$this->source); })()), "getNodeByInternalName", ["homepage"], "method"falsefalsefalse1);
  40.         // line 2
  41.         yield "<div class=\"hi-jumbo\">
  42.     <h1 class=\"jumbo-title\">News &amp; Événements</h1>
  43. </div>
  44. <section class=\"section\">
  45.     <div class=\"container\">
  46.         <div class=\"row\">
  47.             <div class=\"col-12\">
  48.                 <nav aria-label=\"breadcrumb\" role=\"navigation\">
  49.                     <ol class=\"breadcrumb\">
  50.                         <li class=\"breadcrumb-item\"><a href=\"";
  51.         // line 12
  52.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_slug", ["url" => CoreExtension::getAttribute($this->env$this->source, (isset($context["homepagePageNode"]) || array_key_exists("homepagePageNode"$context) ? $context["homepagePageNode"] : (function () { throw new RuntimeError('Variable "homepagePageNode" does not exist.'12$this->source); })()), "slug", [], "any"falsefalsefalse12)]), "html"nulltrue);
  53.         yield "\"><i class=\"icon-home\"></i></a></li>
  54.                         <li class=\"breadcrumb-item\">News &amp; Événements</li>
  55.                         <li class=\"breadcrumb-item\">Lecture de l'article</li>
  56.                         <li class=\"breadcrumb-item active\" aria-current=\"page\">";
  57.         // line 15
  58.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'15$this->source); })()), "title", [], "any"falsefalsefalse15), "html"nulltrue);
  59.         yield "</li>
  60.                     </ol>
  61.                 </nav>
  62.             </div>
  63.             <div class=\"col-sm-8\">
  64.                 <div class=\"row\">
  65.                     <div class=\"col\">
  66.                         <article class=\"article-open\">
  67.                             <h1 class=\"art-title\">";
  68.         // line 23
  69.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'23$this->source); })()), "title", [], "any"falsefalsefalse23), "html"nulltrue);
  70.         yield "</h1>
  71.                             ";
  72.         // line 24
  73.         if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'24$this->source); })()), "image", [], "any"falsefalsefalse24))) {
  74.             // line 25
  75.             yield "                                <figure class=\"art-img\">
  76.                                     <img src=\"";
  77.             // line 26
  78.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'26$this->source); })()), "image", [], "any"falsefalsefalse26), "url", [], "any"falsefalsefalse26)), "html"nulltrue);
  79.             yield "\" class=\"img-fluid\" ";
  80.             if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'26$this->source); })()), "imageAltText", [], "any"falsefalsefalse26))) {
  81.                 yield "alt=\"";
  82.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'26$this->source); })()), "imageAltText", [], "any"falsefalsefalse26), "html"nulltrue);
  83.                 yield "\"";
  84.             }
  85.             yield ">
  86.                                     ";
  87.             // line 30
  88.             yield "                                </figure>
  89.                             ";
  90.         }
  91.         // line 32
  92.         yield "                            <time datetime=\"";
  93.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'32$this->source); })()), "date", [], "any"falsefalsefalse32), "Y-m-d"), "html"nulltrue);
  94.         yield "\">";
  95.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['IUTUDC\WebsiteBundle\Twig\DateTwigExtension']->returnFormatDate(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'32$this->source); })()), "date", [], "any"falsefalsefalse32)), "html"nulltrue);
  96.         yield "</time>
  97.                             <div class=\"text-content\">
  98.                                 <p>
  99.                                     ";
  100.         // line 35
  101.         yield $this->extensions['Kunstmaan\NodeBundle\Twig\UrlReplaceTwigExtension']->replaceUrl(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'35$this->source); })()), "summary", [], "any"falsefalsefalse35));
  102.         yield "
  103.                                 </p>
  104.                             </div>
  105.                             ";
  106.         // line 38
  107.         yield $this->extensions['Kunstmaan\PagePartBundle\Twig\Extension\PagePartTwigExtension']->renderPageParts($this->env$context, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'38$this->source); })()), "newsmain");
  108.         yield "
  109.                         </article>
  110.                     </div>
  111.                 </div>
  112.             </div>
  113.             ";
  114.         // line 43
  115.         yield from $this->loadTemplate("@IUTUDCWebsite/Layout/_aside_right.html.twig""Pages\\NewsPage\\pagetemplate.html.twig"43)->unwrap()->yield($context);
  116.         // line 44
  117.         yield "        </div>
  118.     </div>
  119. </section>
  120. ";
  121.         
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  123.         
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  125.         yield from [];
  126.     }
  127.     /**
  128.      * @codeCoverageIgnore
  129.      */
  130.     public function getTemplateName(): string
  131.     {
  132.         return "Pages\\NewsPage\\pagetemplate.html.twig";
  133.     }
  134.     /**
  135.      * @codeCoverageIgnore
  136.      */
  137.     public function isTraitable(): bool
  138.     {
  139.         return false;
  140.     }
  141.     /**
  142.      * @codeCoverageIgnore
  143.      */
  144.     public function getDebugInfo(): array
  145.     {
  146.         return array (  127 => 44,  125 => 43,  117 => 38,  111 => 35,  102 => 32,  98 => 30,  88 => 26,  85 => 25,  83 => 24,  79 => 23,  68 => 15,  62 => 12,  50 => 2,  48 => 1,);
  147.     }
  148.     public function getSourceContext(): Source
  149.     {
  150.         return new Source("{%  set homepagePageNode = nodemenu.getNodeByInternalName('homepage') %}
  151. <div class=\"hi-jumbo\">
  152.     <h1 class=\"jumbo-title\">News &amp; Événements</h1>
  153. </div>
  154. <section class=\"section\">
  155.     <div class=\"container\">
  156.         <div class=\"row\">
  157.             <div class=\"col-12\">
  158.                 <nav aria-label=\"breadcrumb\" role=\"navigation\">
  159.                     <ol class=\"breadcrumb\">
  160.                         <li class=\"breadcrumb-item\"><a href=\"{{ path('_slug', { 'url': homepagePageNode.slug }) }}\"><i class=\"icon-home\"></i></a></li>
  161.                         <li class=\"breadcrumb-item\">News &amp; Événements</li>
  162.                         <li class=\"breadcrumb-item\">Lecture de l'article</li>
  163.                         <li class=\"breadcrumb-item active\" aria-current=\"page\">{{ page.title }}</li>
  164.                     </ol>
  165.                 </nav>
  166.             </div>
  167.             <div class=\"col-sm-8\">
  168.                 <div class=\"row\">
  169.                     <div class=\"col\">
  170.                         <article class=\"article-open\">
  171.                             <h1 class=\"art-title\">{{ page.title }}</h1>
  172.                             {% if page.image is not empty %}
  173.                                 <figure class=\"art-img\">
  174.                                     <img src=\"{{ asset(page.image.url) }}\" class=\"img-fluid\" {% if page.imageAltText is not empty %}alt=\"{{ page.imageAltText }}\"{% endif %}>
  175.                                     {#<figcaption>
  176.                                         Aenean sit amet mi in nunc fermentum varius. Cras vehicula mauris sed est laoreet, et sagittis quam euismod. Fusce nisi risus, posuere in urna et, suscipit rutrum ex
  177.                                     </figcaption>#}
  178.                                 </figure>
  179.                             {% endif %}
  180.                             <time datetime=\"{{ page.date | date(\"Y-m-d\")}}\">{{ format_date(page.date) }}</time>
  181.                             <div class=\"text-content\">
  182.                                 <p>
  183.                                     {{ page.summary|replace_url|raw }}
  184.                                 </p>
  185.                             </div>
  186.                             {{ render_pageparts(page, 'newsmain') }}
  187.                         </article>
  188.                     </div>
  189.                 </div>
  190.             </div>
  191.             {% include '@IUTUDCWebsite/Layout/_aside_right.html.twig' %}
  192.         </div>
  193.     </div>
  194. </section>
  195. ""Pages\\NewsPage\\pagetemplate.html.twig""/home/u363484990/domains/iut-udc.online/public_html/templates/Pages/NewsPage/pagetemplate.html.twig");
  196.     }
  197. }