<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* pages/blog.html.twig */
class __TwigTemplate_88e493d42d120e8c6d5128b41097aa91 extends Template
{
private $source;
private $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)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$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->loadTemplate("base.html.twig", "pages/blog.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_css($context, array $blocks = [])
{
$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
echo " ";
$this->displayParentBlock("css", $context, $blocks);
echo "
<style>
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 9
public function block_content($context, array $blocks = [])
{
$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
echo "
<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
echo twig_escape_filter($this->env, twig_get_attribute($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);
echo "\" ";
echo $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" . twig_get_attribute($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))));
echo ">
</a>
</div>
<div class=\"post-item-description\">
<h2>";
// line 27
echo twig_escape_filter($this->env, twig_get_attribute($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);
echo "</h2>
<div class=\"post-meta\">
<span class=\"post-meta-date\"><i class=\"fa fa-calendar-o\"></i>";
// line 29
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($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);
echo "</span>
</div>
<div class=\"blog-content\">
<div>";
// line 32
echo twig_get_attribute($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);
echo "</div>
</div>
</div>
<div class=\"post-navigation\">
";
// line 36
if ( !(null === (isset($context["previousBlog"]) || array_key_exists("previousBlog", $context) ? $context["previousBlog"] : (function () { throw new RuntimeError('Variable "previousBlog" does not exist.', 36, $this->source); })()))) {
// line 37
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog", ["id" => twig_get_attribute($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);
echo "\" class=\"post-prev\">
<div class=\"post-prev-title\"><span>";
// line 38
echo $this->extensions['App\Twig\TransExtension']->trans("blogs.previous");
echo "</span>";
echo twig_escape_filter($this->env, twig_get_attribute($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);
echo "</div>
</a>
";
}
// line 41
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blogs");
echo "\" class=\"post-all\">
<i class=\"icon-grid\"> </i>
</a>
";
// line 44
if ( !(null === (isset($context["nextBlog"]) || array_key_exists("nextBlog", $context) ? $context["nextBlog"] : (function () { throw new RuntimeError('Variable "nextBlog" does not exist.', 44, $this->source); })()))) {
// line 45
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog", ["id" => twig_get_attribute($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);
echo "\" class=\"post-next\">
<div class=\"post-next-title\"><span>";
// line 46
echo $this->extensions['App\Twig\TransExtension']->trans("blogs.next");
echo "</span>";
echo twig_escape_filter($this->env, twig_get_attribute($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);
echo "</div>
</a>
";
}
// line 49
echo " </div>
</div>
</div>
</div>
</div>
<div class=\"sidebar sticky-sidebar col-lg-3\">
<div class=\"widget\">
<h2 class=\"widget-title\">";
// line 61
echo $this->extensions['App\Twig\TransExtension']->trans("blog.other");
echo "</h2>
<div class=\"post-thumbnail-list\">
";
// line 63
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((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
echo " <div class=\"post-thumbnail-entry\">
<img alt=\"";
// line 65
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "altDescription", [], "any", false, false, false, 65), "html", null, true);
echo "\" ";
echo $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" . twig_get_attribute($this->env, $this->source, $context["blog"], "image", [], "any", false, false, false, 65))));
echo ">
<div class=\"post-thumbnail-content\">
<a href=\"";
// line 67
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog", ["id" => twig_get_attribute($this->env, $this->source, $context["blog"], "id", [], "any", false, false, false, 67)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "titre", [], "any", false, false, false, 67), "html", null, true);
echo "</a>
<span class=\"post-date\"><i class=\"fa fa-calendar-o\"></i>";
// line 68
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "date", [], "any", false, false, false, 68), "d M Y"), "html", null, true);
echo "</span>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 72
echo "
</div>
</div>
</div>
</div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 82
public function block_js($context, array $blocks = [])
{
$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
echo " ";
$this->displayParentBlock("js", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "pages/blog.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 253 => 83, 243 => 82, 225 => 72, 215 => 68, 209 => 67, 202 => 65, 199 => 64, 195 => 63, 190 => 61, 176 => 49, 168 => 46, 163 => 45, 161 => 44, 154 => 41, 146 => 38, 141 => 37, 139 => 36, 132 => 32, 126 => 29, 121 => 27, 112 => 23, 97 => 10, 87 => 9, 70 => 3, 60 => 2, 37 => 1,);
}
public function getSourceContext()
{
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", "/var/www/vhosts/bsbroyalconstruction.fr/spidertec.fr/httpdocs/templates/pages/blog.html.twig");
}
}