<?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;
/* front/blog/single.html.twig */
class __TwigTemplate_fcdc56d0318d7ab68b9d3b02fc1fc947bad340af20cd03ae3e447fcf720e2384 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'meta' => [$this, 'block_meta'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base_front.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/blog/single.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/blog/single.html.twig"));
$this->parent = $this->loadTemplate("base_front.html.twig", "front/blog/single.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_meta($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
// line 4
yield " <title>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 4, $this->source); })()), "metaTitle", [], "any", false, false, false, 4), "html", null, true);
yield "</title>
<meta name=\"description\" content=\"";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 5, $this->source); })()), "metaDescription", [], "any", false, false, false, 5), "html", null, true);
yield "\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 8
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 9
yield " <div class=\"page-header\" style=\"background: url(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((Twig\Extension\CoreExtension::constant("App\\Services\\File::IMAGE_BLOG_DIR") . CoreExtension::getAttribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 9, $this->source); })()), "image", [], "any", false, false, false, 9))), "html", null, true);
yield ") no-repeat center;background-size: cover\">
<div class=\"container\">
<div class=\"row\">
<!-- page caption -->
<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 \">
<div class=\"page-caption\">
<h1 class=\"page-title\">";
// line 15
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 15, $this->source); })()), "title", [], "any", false, false, false, 15), "html", null, true);
yield "</h1>
</div>
</div>
<!-- /.page caption -->
</div>
</div>
<!-- page caption -->
<div class=\"page-breadcrumb\">
<div class=\"container\">
<div class=\"row\">
<nav aria-label=\"breadcrumb\">
<ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 27
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_home");
yield "\" class=\"breadcrumb-link\">Accueil</a></li>
<li class=\"breadcrumb-item\"><a href=\"";
// line 28
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_blog_list");
yield "\" class=\"breadcrumb-link\">Tous les articles</a></li>
<li class=\"breadcrumb-item active text-white\" aria-current=\"page\">Article : ";
// line 29
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 29, $this->source); })()), "title", [], "any", false, false, false, 29), "html", null, true);
yield "</li>
</ol>
</nav>
</div>
</div>
</div>
<!-- page breadcrumb -->
</div>
<!-- /.page-header -->
<div class=\"content\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-xl-8 col-lg-8 col-md-8 col-sm-12 col-12\">
<!-- post-content -->
<div class=\"post-content-single\">
<div class=\"row\">
<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
<div class=\"post-img zoomimg\">
</div>
<div class=\"post-content text-left\">
<h2>";
// line 49
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 49, $this->source); })()), "title", [], "any", false, false, false, 49), "html", null, true);
yield "</h2>
<p class=\"meta\">
<span class=\"meta-date\">PubliƩ ";
// line 51
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 51, $this->source); })()), "publishedAt", [], "any", false, false, false, 51), "full", "short", "", null, "gregorian", "fr"), "html", null, true);
yield "</span>
</p>
<p class=\"lead\">";
// line 53
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 53, $this->source); })()), "text", [], "any", false, false, false, 53);
yield "</p>
</div>
</div>
</div>
</div>
</div>
<div class=\"col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12\">
<div class=\"sidebar\">
<!-- widget-categories -->
<div class=\"widget widget-category\">
<h3 class=\"widget-title\">Categories</h3>
<ul class=\"angle\">
";
// line 66
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 66, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 67
yield " <li><a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_blog_category_list", ["categorySlug" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 67, $this->source); })()), "blogCategory", [], "any", false, false, false, 67), "categorySlug", [], "any", false, false, false, 67)]), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 67), "html", null, true);
yield "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 69
yield " </ul>
</div>
<div class=\"widget widget-recent-post\">
<h3 class=\"widget-title\">Derniers Articles</h3>
<ul class=\"\">
";
// line 75
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["lastArticles"]) || array_key_exists("lastArticles", $context) ? $context["lastArticles"] : (function () { throw new RuntimeError('Variable "lastArticles" does not exist.', 75, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["lastArticle"]) {
// line 76
yield " <li>
<div class=\"row\">
<div class=\"col-xl-4 col-lg-4 col-md-4 col-sm-4 col-4\">
<div class=\"recent-post-img\">
<a href=\"";
// line 80
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_blog_single", ["categorySlug" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["lastArticle"], "blogCategory", [], "any", false, false, false, 80), "categorySlug", [], "any", false, false, false, 80), "slug" => CoreExtension::getAttribute($this->env, $this->source, $context["lastArticle"], "slug", [], "any", false, false, false, 80)]), "html", null, true);
yield "\">
<img src=\"";
// line 81
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((Twig\Extension\CoreExtension::constant("App\\Services\\File::IMAGE_BLOG_DIR") . CoreExtension::getAttribute($this->env, $this->source, $context["lastArticle"], "image", [], "any", false, false, false, 81))), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["lastArticle"], "title", [], "any", false, false, false, 81), "html", null, true);
yield "\"></a>
</div>
</div>
<div class=\"col-xl-8 col-lg-8 col-md-8 col-sm-8 col-8\">
<div class=\"recent-post-content\">
<h4 class=\"recent-title\"><a href=\"";
// line 86
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_blog_single", ["categorySlug" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["lastArticle"], "blogCategory", [], "any", false, false, false, 86), "categorySlug", [], "any", false, false, false, 86), "slug" => CoreExtension::getAttribute($this->env, $this->source, $context["lastArticle"], "slug", [], "any", false, false, false, 86)]), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["lastArticle"], "title", [], "any", false, false, false, 86), "html", null, true);
yield "</a></h4>
<p class=\"meta font-italic text-default\">";
// line 87
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["lastArticle"], "publishedAt", [], "any", false, false, false, 87), "d/m/Y"), "html", null, true);
yield "</p>
</div>
</div>
</div>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lastArticle'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 93
yield " </ul>
</div>
</div>
</div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/blog/single.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 245 => 93, 233 => 87, 227 => 86, 217 => 81, 213 => 80, 207 => 76, 203 => 75, 195 => 69, 184 => 67, 180 => 66, 164 => 53, 159 => 51, 154 => 49, 131 => 29, 127 => 28, 123 => 27, 108 => 15, 98 => 9, 88 => 8, 75 => 5, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base_front.html.twig' %}
{% block meta %}
<title>{{ article.metaTitle }}</title>
<meta name=\"description\" content=\"{{ article.metaDescription }}\">
{% endblock %}
{% block body %}
<div class=\"page-header\" style=\"background: url({{ asset(constant('App\\\\Services\\\\File::IMAGE_BLOG_DIR') ~ article.image) }}) no-repeat center;background-size: cover\">
<div class=\"container\">
<div class=\"row\">
<!-- page caption -->
<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 \">
<div class=\"page-caption\">
<h1 class=\"page-title\">{{ article.title }}</h1>
</div>
</div>
<!-- /.page caption -->
</div>
</div>
<!-- page caption -->
<div class=\"page-breadcrumb\">
<div class=\"container\">
<div class=\"row\">
<nav aria-label=\"breadcrumb\">
<ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\"><a href=\"{{ path('front_home') }}\" class=\"breadcrumb-link\">Accueil</a></li>
<li class=\"breadcrumb-item\"><a href=\"{{ path('front_blog_list') }}\" class=\"breadcrumb-link\">Tous les articles</a></li>
<li class=\"breadcrumb-item active text-white\" aria-current=\"page\">Article : {{ article.title }}</li>
</ol>
</nav>
</div>
</div>
</div>
<!-- page breadcrumb -->
</div>
<!-- /.page-header -->
<div class=\"content\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-xl-8 col-lg-8 col-md-8 col-sm-12 col-12\">
<!-- post-content -->
<div class=\"post-content-single\">
<div class=\"row\">
<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
<div class=\"post-img zoomimg\">
</div>
<div class=\"post-content text-left\">
<h2>{{ article.title }}</h2>
<p class=\"meta\">
<span class=\"meta-date\">PubliƩ {{ article.publishedAt|format_datetime('full', 'short', locale='fr') }}</span>
</p>
<p class=\"lead\">{{ article.text|raw }}</p>
</div>
</div>
</div>
</div>
</div>
<div class=\"col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12\">
<div class=\"sidebar\">
<!-- widget-categories -->
<div class=\"widget widget-category\">
<h3 class=\"widget-title\">Categories</h3>
<ul class=\"angle\">
{% for category in categories %}
<li><a href=\"{{ path('front_blog_category_list', {'categorySlug': article.blogCategory.categorySlug}) }}\">{{ category.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class=\"widget widget-recent-post\">
<h3 class=\"widget-title\">Derniers Articles</h3>
<ul class=\"\">
{% for lastArticle in lastArticles %}
<li>
<div class=\"row\">
<div class=\"col-xl-4 col-lg-4 col-md-4 col-sm-4 col-4\">
<div class=\"recent-post-img\">
<a href=\"{{ path('front_blog_single', {'categorySlug': lastArticle.blogCategory.categorySlug, 'slug': lastArticle.slug}) }}\">
<img src=\"{{ asset(constant('App\\\\Services\\\\File::IMAGE_BLOG_DIR') ~ lastArticle.image) }}\" alt=\"{{ lastArticle.title }}\"></a>
</div>
</div>
<div class=\"col-xl-8 col-lg-8 col-md-8 col-sm-8 col-8\">
<div class=\"recent-post-content\">
<h4 class=\"recent-title\"><a href=\"{{ path('front_blog_single', {'categorySlug': lastArticle.blogCategory.categorySlug, 'slug': lastArticle.slug}) }}\">{{ lastArticle.title }}</a></h4>
<p class=\"meta font-italic text-default\">{{ lastArticle.publishedAt|date('d/m/Y') }}</p>
</div>
</div>
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
", "front/blog/single.html.twig", "/var/www/vhosts/hobbiinn.com/httpdocs/providdersvacance/templates/front/blog/single.html.twig");
}
}