<?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/blog.html.twig */
class __TwigTemplate_d6c531e450c5f62d6b920f00d36a22ba 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->blocks = [
'css' => [$this, 'block_css'],
'content' => [$this, 'block_content'],
'js' => [$this, 'block_js'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.html.twig";
}
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/blog.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/blog.html.twig"));
$this->parent = $this->load("base.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_css(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(), "block", "css"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "css"));
// line 3
yield " ";
yield from $this->yieldParentBlock("css", $context, $blocks);
yield "
<style>
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 9
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(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(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 10
yield "
<section id=\"page-content\" class=\"sidebar-right\">
<div class=\"container\">
<div class=\"row\">
<div class=\"content col-lg-9\">
<div id=\"blog\" class=\"single-post\">
<div class=\"post-item\">
<div class=\"post-item-wrap\">
<div class=\"post-image\">
<a href=\"\">
<img alt=\"";
// line 23
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 23, $this->source); })()), "altDescription", [], "any", false, false, false, 23), "html", null, true);
yield "\" ";
yield $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 23, $this->source); })()), "image", [], "any", false, false, false, 23))));
yield ">
</a>
</div>
<div class=\"post-item-description\">
<h2>";
// line 27
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 27, $this->source); })()), "titre", [], "any", false, false, false, 27), "html", null, true);
yield "</h2>
<div class=\"post-meta\">
<span class=\"post-meta-date\"><i class=\"fa fa-calendar-o\"></i>";
// line 29
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 29, $this->source); })()), "date", [], "any", false, false, false, 29), "d M Y"), "html", null, true);
yield "</span>
</div>
<div class=\"blog-content\">
<div>";
// line 32
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 32, $this->source); })()), "displayContent", [], "any", false, false, false, 32);
yield "</div>
</div>
</div>
<div class=\"post-navigation\">
";
// line 36
if ((($tmp = !(null === (isset($context["previousBlog"]) || array_key_exists("previousBlog", $context) ? $context["previousBlog"] : (function () { throw new RuntimeError('Variable "previousBlog" does not exist.', 36, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 37
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["previousBlog"]) || array_key_exists("previousBlog", $context) ? $context["previousBlog"] : (function () { throw new RuntimeError('Variable "previousBlog" does not exist.', 37, $this->source); })()), "id", [], "any", false, false, false, 37)]), "html", null, true);
yield "\" class=\"post-prev\">
<div class=\"post-prev-title\"><span>";
// line 38
yield $this->extensions['App\Twig\TransExtension']->trans("blogs.previous");
yield "</span>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["previousBlog"]) || array_key_exists("previousBlog", $context) ? $context["previousBlog"] : (function () { throw new RuntimeError('Variable "previousBlog" does not exist.', 38, $this->source); })()), "titre", [], "any", false, false, false, 38), "html", null, true);
yield "</div>
</a>
";
}
// line 41
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blogs");
yield "\" class=\"post-all\">
<i class=\"icon-grid\"> </i>
</a>
";
// line 44
if ((($tmp = !(null === (isset($context["nextBlog"]) || array_key_exists("nextBlog", $context) ? $context["nextBlog"] : (function () { throw new RuntimeError('Variable "nextBlog" does not exist.', 44, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 45
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["nextBlog"]) || array_key_exists("nextBlog", $context) ? $context["nextBlog"] : (function () { throw new RuntimeError('Variable "nextBlog" does not exist.', 45, $this->source); })()), "id", [], "any", false, false, false, 45)]), "html", null, true);
yield "\" class=\"post-next\">
<div class=\"post-next-title\"><span>";
// line 46
yield $this->extensions['App\Twig\TransExtension']->trans("blogs.next");
yield "</span>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["nextBlog"]) || array_key_exists("nextBlog", $context) ? $context["nextBlog"] : (function () { throw new RuntimeError('Variable "nextBlog" does not exist.', 46, $this->source); })()), "titre", [], "any", false, false, false, 46), "html", null, true);
yield "</div>
</a>
";
}
// line 49
yield " </div>
</div>
</div>
</div>
</div>
<div class=\"sidebar sticky-sidebar col-lg-3\">
<div class=\"widget\">
<h2 class=\"widget-title\">";
// line 61
yield $this->extensions['App\Twig\TransExtension']->trans("blog.other");
yield "</h2>
<div class=\"post-thumbnail-list\">
";
// line 63
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["otherBlogs"]) || array_key_exists("otherBlogs", $context) ? $context["otherBlogs"] : (function () { throw new RuntimeError('Variable "otherBlogs" does not exist.', 63, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
// line 64
yield " <div class=\"post-thumbnail-entry\">
<img alt=\"";
// line 65
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["blog"], "altDescription", [], "any", false, false, false, 65), "html", null, true);
yield "\" ";
yield $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" . CoreExtension::getAttribute($this->env, $this->source, $context["blog"], "image", [], "any", false, false, false, 65))));
yield ">
<div class=\"post-thumbnail-content\">
<a href=\"";
// line 67
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["blog"], "id", [], "any", false, false, false, 67)]), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["blog"], "titre", [], "any", false, false, false, 67), "html", null, true);
yield "</a>
<span class=\"post-date\"><i class=\"fa fa-calendar-o\"></i>";
// line 68
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["blog"], "date", [], "any", false, false, false, 68), "d M Y"), "html", null, true);
yield "</span>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['blog'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 72
yield "
</div>
</div>
</div>
</div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 82
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_js(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(), "block", "js"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "js"));
// line 83
yield " ";
yield from $this->yieldParentBlock("js", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/blog.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 269 => 83, 256 => 82, 237 => 72, 227 => 68, 221 => 67, 214 => 65, 211 => 64, 207 => 63, 202 => 61, 188 => 49, 180 => 46, 175 => 45, 173 => 44, 166 => 41, 158 => 38, 153 => 37, 151 => 36, 144 => 32, 138 => 29, 133 => 27, 124 => 23, 109 => 10, 96 => 9, 78 => 3, 65 => 2, 42 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'base.html.twig' %}
{% block css %}
{{ parent() }}
<style>
</style>
{% endblock %}
{% block content %}
<section id=\"page-content\" class=\"sidebar-right\">
<div class=\"container\">
<div class=\"row\">
<div class=\"content col-lg-9\">
<div id=\"blog\" class=\"single-post\">
<div class=\"post-item\">
<div class=\"post-item-wrap\">
<div class=\"post-image\">
<a href=\"\">
<img alt=\"{{ blog.altDescription }}\" {{ responsive_src(asset('images/upload/' ~ blog.image)) | raw }}>
</a>
</div>
<div class=\"post-item-description\">
<h2>{{ blog.titre }}</h2>
<div class=\"post-meta\">
<span class=\"post-meta-date\"><i class=\"fa fa-calendar-o\"></i>{{ blog.date | date('d M Y') }}</span>
</div>
<div class=\"blog-content\">
<div>{{ blog.displayContent | raw }}</div>
</div>
</div>
<div class=\"post-navigation\">
{% if previousBlog is not null %}
<a href=\"{{ path('blog',{'id' : previousBlog.id}) }}\" class=\"post-prev\">
<div class=\"post-prev-title\"><span>{{ 'blogs.previous' | admintrans | raw }}</span>{{ previousBlog.titre }}</div>
</a>
{% endif %}
<a href=\"{{ path('blogs') }}\" class=\"post-all\">
<i class=\"icon-grid\"> </i>
</a>
{% if nextBlog is not null %}
<a href=\"{{ path('blog',{'id' : nextBlog.id}) }}\" class=\"post-next\">
<div class=\"post-next-title\"><span>{{ 'blogs.next' | admintrans | raw }}</span>{{ nextBlog.titre }}</div>
</a>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class=\"sidebar sticky-sidebar col-lg-3\">
<div class=\"widget\">
<h2 class=\"widget-title\">{{ 'blog.other' | admintrans | raw }}</h2>
<div class=\"post-thumbnail-list\">
{% for blog in otherBlogs %}
<div class=\"post-thumbnail-entry\">
<img alt=\"{{ blog.altDescription }}\" {{ responsive_src(asset('images/upload/' ~ blog.image)) | raw }}>
<div class=\"post-thumbnail-content\">
<a href=\"{{ path('blog',{'id' : blog.id}) }}\">{{ blog.titre }}</a>
<span class=\"post-date\"><i class=\"fa fa-calendar-o\"></i>{{ blog.date | date('d M Y') }}</span>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</section>
{% endblock %}
{% block js %}
{{ parent() }}
{% endblock %}
", "pages/blog.html.twig", "/app/templates/pages/blog.html.twig");
}
}