<?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
yield " <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css\">
<link href=\"";
// line 2
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("galerie/css/main.css"), "html", null, true);
yield "\" rel=\"stylesheet\">
\t";
// line 3
$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.', 3, $this->source); })()), "getNodeByInternalName", ["homepage"], "method", false, false, false, 3);
// line 4
yield "<div class=\"hi-jumbo\">
<h1 class=\"jumbo-title\">News & Événements</h1>
</div>
<style>
footer {
background-color:#3b3b3b;
color: #d6d4d7;
padding-top: 30px;
padding-bottom: 30px;
}
.hsn-photo-viewer {
background: #F5F5F5;
}
body {
background-color: #FFF;
font-family: 'Oxygen', sans-serif;
font-size: medium;
}
</style>
<section class=\"section\" style=\"margin-bottom:25px;\">
<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 30
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.', 30, $this->source); })()), "slug", [], "any", false, false, false, 30)]), "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 33
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.', 33, $this->source); })()), "title", [], "any", false, false, false, 33), "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 41
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.', 41, $this->source); })()), "title", [], "any", false, false, false, 41), "html", null, true);
yield "</h1>
";
// line 42
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.', 42, $this->source); })()), "image", [], "any", false, false, false, 42))) {
// line 43
yield " <figure class=\"art-img\">
<img src=\"";
// line 44
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.', 44, $this->source); })()), "image", [], "any", false, false, false, 44), "url", [], "any", false, false, false, 44)), "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.', 44, $this->source); })()), "imageAltText", [], "any", false, false, false, 44))) {
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.', 44, $this->source); })()), "imageAltText", [], "any", false, false, false, 44), "html", null, true);
yield "\"";
}
yield ">
";
// line 48
yield " </figure>
";
}
// line 50
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.', 50, $this->source); })()), "date", [], "any", false, false, false, 50), "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.', 50, $this->source); })()), "date", [], "any", false, false, false, 50)), "html", null, true);
yield "</time>
<div class=\"text-content\">
<p>
";
// line 53
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.', 53, $this->source); })()), "summary", [], "any", false, false, false, 53));
yield "
</p>
</div>
";
// line 57
yield "\t\t\t\t\t\t\t
\t\t\t\t\t\t\t";
// line 58
$context["pagespart"] = $this->extensions['Kunstmaan\PagePartBundle\Twig\Extension\PagePartTwigExtension']->getPageParts((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 58, $this->source); })()), "newsmain");
// line 59
yield "\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t";
// line 61
if (((isset($context["pagespart"]) || array_key_exists("pagespart", $context) ? $context["pagespart"] : (function () { throw new RuntimeError('Variable "pagespart" does not exist.', 61, $this->source); })()) != null)) {
// line 62
yield "\t\t\t\t\t\t\t<div class=\"col-sm-12\">
\t\t\t\t\t\t<!--Content-->
\t\t\t\t\t\t<h1 class=\"title-in\">Gallérie photos</h1>
\t\t\t\t\t\t<hr style=\"border-color:#ccc\" />
\t\t\t\t\t</div>
<div class=\"col-sm-12\">
<div class=\"hsn-photo-viewer\">
<!--Liste des diapo-->
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t";
// line 72
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["pagespart"]) || array_key_exists("pagespart", $context) ? $context["pagespart"] : (function () { throw new RuntimeError('Variable "pagespart" does not exist.', 72, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["page_part"]) {
// line 73
yield "\t\t\t\t\t\t\t\t\t ";
if ($this->extensions['Kunstmaan\AdminListBundle\Twig\AdminListTwigExtension']->isInstanceOf($context["page_part"], "App\\Entity\\PageParts\\ImagePagePart")) {
yield "\t
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t<div class=\"diapo\">
\t\t\t\t\t\t\t\t ";
// line 76
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["page_part"], "media", [], "any", false, false, false, 76))) {
// line 77
yield "\t\t\t\t\t\t\t\t <img src=\"";
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, $context["page_part"], "media", [], "any", false, false, false, 77), "url", [], "any", false, false, false, 77)), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["page_part"], "altText", [], "any", false, false, false, 77), "html", null, true);
yield "\" />
\t\t\t\t\t\t\t\t
<a class=\"dl-img\" href=\"";
// line 79
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, $context["page_part"], "media", [], "any", false, false, false, 79), "url", [], "any", false, false, false, 79)), "html", null, true);
yield "\" title=\"Télécharger l'image\"><i class=\"fa fa-download fa-lg\"></i></a>
\t\t\t\t\t\t\t\t";
}
// line 81
yield " <div class=\"hsn-diapo-caption\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["page_part"], "caption", [], "any", false, false, false, 81), "html", null, true);
yield "
</div>
</div>
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t";
// line 98
yield "\t\t\t\t\t\t\t\t\t ";
}
// line 99
yield "\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['page_part'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 100
yield "
<a href=\"#\" class=\"hnext\"><i class=\"fa fa-angle-right fa-3x\"></i></a>
<a href=\"#\" class=\"hprev\"><i class=\"fa fa-angle-left fa-3x\"></i></a>
</div>
</div>
\t\t\t\t\t";
}
// line 108
yield "\t\t\t\t
</article>
</div>
</div>
</div>
";
// line 113
yield from $this->loadTemplate("@IUTUDCWebsite/Layout/_aside_right.html.twig", "Pages\\NewsPage\\pagetemplate.html.twig", 113)->unwrap()->yield($context);
// line 114
yield " </div>
</div>
</section>
<!-- Javascript -->
<script type=\"text/javascript\" src=\"";
// line 118
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("galerie/js/jquery.min.js"), "html", null, true);
yield "\"></script>
<script type=\"text/javascript\" src=\"";
// line 119
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("galerie/js/main.js"), "html", null, true);
yield "\"></script>
<br>";
$__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 ( 235 => 119, 231 => 118, 225 => 114, 223 => 113, 216 => 108, 206 => 100, 200 => 99, 197 => 98, 189 => 81, 184 => 79, 176 => 77, 174 => 76, 167 => 73, 163 => 72, 151 => 62, 149 => 61, 145 => 59, 143 => 58, 140 => 57, 134 => 53, 125 => 50, 121 => 48, 111 => 44, 108 => 43, 106 => 42, 102 => 41, 91 => 33, 85 => 30, 57 => 4, 55 => 3, 51 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source(" <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css\">
<link href=\"{{ asset('galerie/css/main.css')}}\" rel=\"stylesheet\">
\t{% set homepagePageNode = nodemenu.getNodeByInternalName('homepage') %}
<div class=\"hi-jumbo\">
<h1 class=\"jumbo-title\">News & Événements</h1>
</div>
<style>
footer {
background-color:#3b3b3b;
color: #d6d4d7;
padding-top: 30px;
padding-bottom: 30px;
}
.hsn-photo-viewer {
background: #F5F5F5;
}
body {
background-color: #FFF;
font-family: 'Oxygen', sans-serif;
font-size: medium;
}
</style>
<section class=\"section\" style=\"margin-bottom:25px;\">
<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') }#}
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t{% set pagespart = getpageparts(page, 'newsmain') %}
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t{% if pagespart!=null %}
\t\t\t\t\t\t\t<div class=\"col-sm-12\">
\t\t\t\t\t\t<!--Content-->
\t\t\t\t\t\t<h1 class=\"title-in\">Gallérie photos</h1>
\t\t\t\t\t\t<hr style=\"border-color:#ccc\" />
\t\t\t\t\t</div>
<div class=\"col-sm-12\">
<div class=\"hsn-photo-viewer\">
<!--Liste des diapo-->
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t{% for page_part in pagespart %}
\t\t\t\t\t\t\t\t\t {% if page_part is instanceof('App\\\\Entity\\\\PageParts\\\\ImagePagePart') %}\t
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t<div class=\"diapo\">
\t\t\t\t\t\t\t\t {% if page_part.media is not empty %}
\t\t\t\t\t\t\t\t <img src=\"{{ asset(page_part.media.url) }}\" alt=\"{{page_part.altText}}\" />
\t\t\t\t\t\t\t\t
<a class=\"dl-img\" href=\"{{ asset(page_part.media.url) }}\" title=\"Télécharger l'image\"><i class=\"fa fa-download fa-lg\"></i></a>
\t\t\t\t\t\t\t\t{% endif %}
<div class=\"hsn-diapo-caption\">{{page_part.caption}}
</div>
</div>
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t{# <div class=\"col-md-6\">
\t\t\t\t\t\t\t\t\t<div class=\"card-services\">
\t\t\t\t\t\t\t\t\t\t<a href=\"{{ page_part.media|replace_url }}\" class=\"stretched-link\">
\t\t\t\t\t\t\t\t\t\t\t {% if page_part.media is not empty %}
\t\t\t\t\t\t\t\t\t\t\t <img src=\"{{ asset(page_part.media.url)|imagine_filter('image_medium_jpg') }}\" class=\"card-services-img w-100\" />
\t\t\t\t\t\t\t\t\t\t\t {% endif %}
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t<div class=\"card-services-caption\">
\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"card-services-title\"></h3>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t#}
\t\t\t\t\t\t\t\t\t {% endif %}
\t\t\t\t\t\t\t\t{% endfor %}
<a href=\"#\" class=\"hnext\"><i class=\"fa fa-angle-right fa-3x\"></i></a>
<a href=\"#\" class=\"hprev\"><i class=\"fa fa-angle-left fa-3x\"></i></a>
</div>
</div>
\t\t\t\t\t{% endif %}
\t\t\t\t
</article>
</div>
</div>
</div>
{% include '@IUTUDCWebsite/Layout/_aside_right.html.twig' %}
</div>
</div>
</section>
<!-- Javascript -->
<script type=\"text/javascript\" src=\"{{ asset('galerie/js/jquery.min.js')}}\"></script>
<script type=\"text/javascript\" src=\"{{ asset('galerie/js/main.js')}}\"></script>
<br>", "Pages\\NewsPage\\pagetemplate.html.twig", "/home/u363484990/domains/iut-udc.online/public_html/templates/Pages/NewsPage/pagetemplate.html.twig");
}
}