<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* Pages\NewsPage\pagetemplate.html.twig */
class __TwigTemplate_2ec999f3f2ee910fab9440d2c8a7978f extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "Pages\\NewsPage\\pagetemplate.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Pages\\NewsPage\\pagetemplate.html.twig"));
// line 1
$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", false, false, false, 1);
// line 2
yield "<div class=\"hi-jumbo\">
<h1 class=\"jumbo-title\">News & Événements</h1>
</div>
<section class=\"section\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
<nav aria-label=\"breadcrumb\" role=\"navigation\">
<ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 12
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", false, false, false, 12)]), "html", null, true);
yield "\"><i class=\"icon-home\"></i></a></li>
<li class=\"breadcrumb-item\">News & Événements</li>
<li class=\"breadcrumb-item\">Lecture de l'article</li>
<li class=\"breadcrumb-item active\" aria-current=\"page\">";
// line 15
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", false, false, false, 15), "html", null, true);
yield "</li>
</ol>
</nav>
</div>
<div class=\"col-sm-8\">
<div class=\"row\">
<div class=\"col\">
<article class=\"article-open\">
<h1 class=\"art-title\">";
// line 23
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", false, false, false, 23), "html", null, true);
yield "</h1>
";
// line 24
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", false, false, false, 24))) {
// line 25
yield " <figure class=\"art-img\">
<img src=\"";
// line 26
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env, $this->source, 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); })()), "image", [], "any", false, false, false, 26), "url", [], "any", false, false, false, 26)), "html", null, true);
yield "\" class=\"img-fluid\" ";
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", false, false, false, 26))) {
yield "alt=\"";
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", false, false, false, 26), "html", null, true);
yield "\"";
}
yield ">
";
// line 30
yield " </figure>
";
}
// line 32
yield " <time datetime=\"";
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", false, false, false, 32), "Y-m-d"), "html", null, true);
yield "\">";
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", false, false, false, 32)), "html", null, true);
yield "</time>
<div class=\"text-content\">
<p>
";
// line 35
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", false, false, false, 35));
yield "
</p>
</div>
";
// line 38
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");
yield "
</article>
</div>
</div>
</div>
";
// line 43
yield from $this->loadTemplate("@IUTUDCWebsite/Layout/_aside_right.html.twig", "Pages\\NewsPage\\pagetemplate.html.twig", 43)->unwrap()->yield($context);
// line 44
yield " </div>
</div>
</section>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "Pages\\NewsPage\\pagetemplate.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% set homepagePageNode = nodemenu.getNodeByInternalName('homepage') %}
<div class=\"hi-jumbo\">
<h1 class=\"jumbo-title\">News & Événements</h1>
</div>
<section class=\"section\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
<nav aria-label=\"breadcrumb\" role=\"navigation\">
<ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\"><a href=\"{{ path('_slug', { 'url': homepagePageNode.slug }) }}\"><i class=\"icon-home\"></i></a></li>
<li class=\"breadcrumb-item\">News & Événements</li>
<li class=\"breadcrumb-item\">Lecture de l'article</li>
<li class=\"breadcrumb-item active\" aria-current=\"page\">{{ page.title }}</li>
</ol>
</nav>
</div>
<div class=\"col-sm-8\">
<div class=\"row\">
<div class=\"col\">
<article class=\"article-open\">
<h1 class=\"art-title\">{{ page.title }}</h1>
{% if page.image is not empty %}
<figure class=\"art-img\">
<img src=\"{{ asset(page.image.url) }}\" class=\"img-fluid\" {% if page.imageAltText is not empty %}alt=\"{{ page.imageAltText }}\"{% endif %}>
{#<figcaption>
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
</figcaption>#}
</figure>
{% endif %}
<time datetime=\"{{ page.date | date(\"Y-m-d\")}}\">{{ format_date(page.date) }}</time>
<div class=\"text-content\">
<p>
{{ page.summary|replace_url|raw }}
</p>
</div>
{{ render_pageparts(page, 'newsmain') }}
</article>
</div>
</div>
</div>
{% include '@IUTUDCWebsite/Layout/_aside_right.html.twig' %}
</div>
</div>
</section>
", "Pages\\NewsPage\\pagetemplate.html.twig", "/home/u363484990/domains/iut-udc.online/public_html/templates/Pages/NewsPage/pagetemplate.html.twig");
}
}