<?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/list.html.twig */
class __TwigTemplate_1748b7c6522c929db0761ad25c0bd25c26773d89ab61a49b9b468137e304efd3 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/list.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/list.html.twig"));
$this->parent = $this->loadTemplate("base_front.html.twig", "front/blog/list.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 "\t<title>Conseils et bons plans sur le blog Providders</title>
\t<meta name=\"description\" content=\"Nos articles vous donneront quelques conseils sur la préparation de votre mariage, plus de ";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 5, $this->source); })())), "html", null, true);
yield " articles disponibles\">
";
$__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 "\t<div class=\"page-header\" style=\"background: url(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/vacncance_blog.jpg"), "html", null, true);
yield ") no-repeat center;background-size: cover\">
\t\t<div class=\"container\">
\t\t\t<div
\t\t\t\tclass=\"row\">
\t\t\t\t<!-- page caption -->
\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 \">
\t\t\t\t\t<div class=\"page-caption\">
\t\t\t\t\t\t<h1 class=\"page-title\" style=\"box-shadow: black\">Blog</h1>
\t\t\t\t\t\t";
// line 17
if (array_key_exists("categorySelected", $context)) {
// line 18
yield "\t\t\t\t\t\t\t<h2 style=\"color:white\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorySelected"]) || array_key_exists("categorySelected", $context) ? $context["categorySelected"] : (function () { throw new RuntimeError('Variable "categorySelected" does not exist.', 18, $this->source); })()), "name", [], "any", false, false, false, 18), "html", null, true);
yield "</h2>
\t\t\t\t\t\t";
}
// line 20
yield "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<!-- /.page caption -->
\t\t\t</div>
\t\t</div>
\t\t<!-- page caption -->
\t\t<div class=\"page-breadcrumb\">
\t\t\t<div class=\"container\">
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<nav aria-label=\"breadcrumb\">
\t\t\t\t\t\t<ol class=\"breadcrumb\">
\t\t\t\t\t\t\t<li class=\"breadcrumb-item\">
\t\t\t\t\t\t\t\t<a href=\"";
// line 32
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_home");
yield "\" class=\"breadcrumb-link\">Accueil</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li class=\"breadcrumb-item active text-white\" aria-current=\"page\">Tous les articles (";
// line 34
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 34, $this->source); })())), "html", null, true);
yield "
\t\t\t\t\t\t\t\tarticles)</li>
\t\t\t\t\t\t</ol>
\t\t\t\t\t</nav>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<!-- page breadcrumb -->
\t</div>
\t<!-- /.page-header -->
\t<div class=\"content\">
\t\t<div class=\"container\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-xl-8 col-lg-8 col-md-8 col-sm-12 col-12\">
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t";
// line 49
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 49, $this->source); })()));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
// line 50
yield "\t\t\t\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
\t\t\t\t\t\t\t\t<div
\t\t\t\t\t\t\t\t\tclass=\"post-block\">
\t\t\t\t\t\t\t\t\t<!-- post vertical block -->
\t\t\t\t\t\t\t\t\t<div class=\"post-img zoomimg\">
\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 55
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["article"], "blogCategory", [], "any", false, false, false, 55), "categorySlug", [], "any", false, false, false, 55), "slug" => CoreExtension::getAttribute($this->env, $this->source, $context["article"], "slug", [], "any", false, false, false, 55)]), "html", null, true);
yield "\"><img src=\"";
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["article"], "image", [], "any", false, false, false, 55))), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 55), "html", null, true);
yield "\" class=\"img-fluid\"></a>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"post-content\">
\t\t\t\t\t\t\t\t\t\t<h2>
\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 59
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["article"], "blogCategory", [], "any", false, false, false, 59), "categorySlug", [], "any", false, false, false, 59), "slug" => CoreExtension::getAttribute($this->env, $this->source, $context["article"], "slug", [], "any", false, false, false, 59)]), "html", null, true);
yield "\" class=\"post-title\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 59), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t\t\t<p class=\"meta\">
\t\t\t\t\t\t\t\t\t\t\t<span class=\"meta-date\">";
// line 62
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["article"], "publishedAt", [], "any", false, false, false, 62), "full", "short", "", null, "gregorian", "fr"), "html", null, true);
yield "</span>
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t";
// line 64
$context["articleText"] = Twig\Extension\CoreExtension::striptags(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "text", [], "any", false, false, false, 64));
// line 65
yield "\t\t\t\t\t\t\t\t\t\t<p>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::slice($this->env->getCharset(), (isset($context["articleText"]) || array_key_exists("articleText", $context) ? $context["articleText"] : (function () { throw new RuntimeError('Variable "articleText" does not exist.', 65, $this->source); })()), 0, 200), "html", null, true);
yield "...</p>
\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 66
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["article"], "blogCategory", [], "any", false, false, false, 66), "categorySlug", [], "any", false, false, false, 66), "slug" => CoreExtension::getAttribute($this->env, $this->source, $context["article"], "slug", [], "any", false, false, false, 66)]), "html", null, true);
yield "\" class=\"btn-default-link\">Lire l'article</a>
\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<!-- /.post vertical block -->
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
$context['_iterated'] = true;
}
if (!$context['_iterated']) {
// line 72
yield "\t\t\t\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
\t\t\t\t\t\t\t\t<p>Aucun article
\t\t\t\t\t\t\t\t\t";
// line 74
if (array_key_exists("categorySelected", $context)) {
yield "pour la catégorie
\t\t\t\t\t\t\t\t\t\t";
// line 75
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorySelected"]) || array_key_exists("categorySelected", $context) ? $context["categorySelected"] : (function () { throw new RuntimeError('Variable "categorySelected" does not exist.', 75, $this->source); })()), "name", [], "any", false, false, false, 75), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t";
}
// line 76
yield ".</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 79
yield "\t\t\t\t\t\t<!-- post paginations -->
\t\t\t\t\t\t<div class=\"pagination\">
\t\t\t\t\t\t\t<nav aria-label=\"Page navigation example\">
\t\t\t\t\t\t\t\t";
// line 82
yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 82, $this->source); })()));
yield "
\t\t\t\t\t\t\t</nav>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- /.post paginations -->
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<!-- /. blog post -->
\t\t\t\t<div class=\"col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12\">
\t\t\t\t\t<div class=\"sidebar\">
\t\t\t\t\t\t<!-- /.widget -->
\t\t\t\t\t\t<!-- widget-categories -->
\t\t\t\t\t\t\t<div class=\"widget widget-category\"> <h3 class=\"widget-title\">Categories</h3>
\t\t\t\t\t\t\t<ul class=\"angle\">
\t\t\t\t\t\t\t\t";
// line 95
$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.', 95, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 96
yield "\t\t\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 97
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, $context["category"], "categorySlug", [], "any", false, false, false, 97)]), "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, 97), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 100
yield "\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"widget widget-recent-post\">
\t\t\t\t\t\t\t<h3 class=\"widget-title\">Derniers Articles</h3>
\t\t\t\t\t\t\t<ul class=\"\">
\t\t\t\t\t\t\t\t";
// line 106
$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.', 106, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["lastArticle"]) {
// line 107
yield "\t\t\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xl-4 col-lg-4 col-md-4 col-sm-4 col-4\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"recent-post-img\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 111
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, 111), "categorySlug", [], "any", false, false, false, 111), "slug" => CoreExtension::getAttribute($this->env, $this->source, $context["lastArticle"], "slug", [], "any", false, false, false, 111)]), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
// line 112
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, 112))), "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, 112), "html", null, true);
yield "\"></a>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xl-8 col-lg-8 col-md-8 col-sm-8 col-8\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"recent-post-content\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<h4 class=\"recent-title\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 118
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, 118), "categorySlug", [], "any", false, false, false, 118), "slug" => CoreExtension::getAttribute($this->env, $this->source, $context["lastArticle"], "slug", [], "any", false, false, false, 118)]), "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, 118), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t</h4>
\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"meta font-italic text-default\">";
// line 120
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, 120), "d/m/Y"), "html", null, true);
yield "</p>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lastArticle'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 126
yield "\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/blog/list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 319 => 126, 307 => 120, 300 => 118, 289 => 112, 285 => 111, 279 => 107, 275 => 106, 267 => 100, 256 => 97, 253 => 96, 249 => 95, 233 => 82, 228 => 79, 220 => 76, 215 => 75, 211 => 74, 207 => 72, 196 => 66, 191 => 65, 189 => 64, 184 => 62, 176 => 59, 165 => 55, 158 => 50, 153 => 49, 135 => 34, 130 => 32, 116 => 20, 110 => 18, 108 => 17, 96 => 9, 86 => 8, 73 => 5, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base_front.html.twig' %}
{% block meta %}
\t<title>Conseils et bons plans sur le blog Providders</title>
\t<meta name=\"description\" content=\"Nos articles vous donneront quelques conseils sur la préparation de votre mariage, plus de {{ articles|length }} articles disponibles\">
{% endblock %}
{% block body %}
\t<div class=\"page-header\" style=\"background: url({{ asset('images/vacncance_blog.jpg') }}) no-repeat center;background-size: cover\">
\t\t<div class=\"container\">
\t\t\t<div
\t\t\t\tclass=\"row\">
\t\t\t\t<!-- page caption -->
\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 \">
\t\t\t\t\t<div class=\"page-caption\">
\t\t\t\t\t\t<h1 class=\"page-title\" style=\"box-shadow: black\">Blog</h1>
\t\t\t\t\t\t{% if categorySelected is defined %}
\t\t\t\t\t\t\t<h2 style=\"color:white\">{{ categorySelected.name }}</h2>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<!-- /.page caption -->
\t\t\t</div>
\t\t</div>
\t\t<!-- page caption -->
\t\t<div class=\"page-breadcrumb\">
\t\t\t<div class=\"container\">
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<nav aria-label=\"breadcrumb\">
\t\t\t\t\t\t<ol class=\"breadcrumb\">
\t\t\t\t\t\t\t<li class=\"breadcrumb-item\">
\t\t\t\t\t\t\t\t<a href=\"{{ path('front_home') }}\" class=\"breadcrumb-link\">Accueil</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li class=\"breadcrumb-item active text-white\" aria-current=\"page\">Tous les articles ({{ articles|length }}
\t\t\t\t\t\t\t\tarticles)</li>
\t\t\t\t\t\t</ol>
\t\t\t\t\t</nav>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<!-- page breadcrumb -->
\t</div>
\t<!-- /.page-header -->
\t<div class=\"content\">
\t\t<div class=\"container\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-xl-8 col-lg-8 col-md-8 col-sm-12 col-12\">
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t{% for article in articles %}
\t\t\t\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
\t\t\t\t\t\t\t\t<div
\t\t\t\t\t\t\t\t\tclass=\"post-block\">
\t\t\t\t\t\t\t\t\t<!-- post vertical block -->
\t\t\t\t\t\t\t\t\t<div class=\"post-img zoomimg\">
\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_blog_single', {'categorySlug': article.blogCategory.categorySlug, 'slug': article.slug}) }}\"><img src=\"{{ asset(constant('App\\\\Services\\\\File::IMAGE_BLOG_DIR') ~ article.image) }}\" alt=\"{{ article.title }}\" class=\"img-fluid\"></a>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"post-content\">
\t\t\t\t\t\t\t\t\t\t<h2>
\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_blog_single', {'categorySlug': article.blogCategory.categorySlug, 'slug': article.slug}) }}\" class=\"post-title\">{{ article.title }}</a>
\t\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t\t\t<p class=\"meta\">
\t\t\t\t\t\t\t\t\t\t\t<span class=\"meta-date\">{{ article.publishedAt|format_datetime('full', 'short', locale='fr') }}</span>
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t{% set articleText = article.text|striptags %}
\t\t\t\t\t\t\t\t\t\t<p>{{ articleText|slice(0, 200) }}...</p>
\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_blog_single', {'categorySlug': article.blogCategory.categorySlug, 'slug': article.slug}) }}\" class=\"btn-default-link\">Lire l'article</a>
\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<!-- /.post vertical block -->
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
\t\t\t\t\t\t\t\t<p>Aucun article
\t\t\t\t\t\t\t\t\t{% if categorySelected is defined %}pour la catégorie
\t\t\t\t\t\t\t\t\t\t{{ categorySelected.name }}
\t\t\t\t\t\t\t\t\t{% endif %}.</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t<!-- post paginations -->
\t\t\t\t\t\t<div class=\"pagination\">
\t\t\t\t\t\t\t<nav aria-label=\"Page navigation example\">
\t\t\t\t\t\t\t\t{{ knp_pagination_render(articles) }}
\t\t\t\t\t\t\t</nav>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- /.post paginations -->
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<!-- /. blog post -->
\t\t\t\t<div class=\"col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12\">
\t\t\t\t\t<div class=\"sidebar\">
\t\t\t\t\t\t<!-- /.widget -->
\t\t\t\t\t\t<!-- widget-categories -->
\t\t\t\t\t\t\t<div class=\"widget widget-category\"> <h3 class=\"widget-title\">Categories</h3>
\t\t\t\t\t\t\t<ul class=\"angle\">
\t\t\t\t\t\t\t\t{% for category in categories %}
\t\t\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_blog_category_list', {'categorySlug': category.categorySlug}) }}\">{{ category.name }}</a>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"widget widget-recent-post\">
\t\t\t\t\t\t\t<h3 class=\"widget-title\">Derniers Articles</h3>
\t\t\t\t\t\t\t<ul class=\"\">
\t\t\t\t\t\t\t\t{% for lastArticle in lastArticles %}
\t\t\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xl-4 col-lg-4 col-md-4 col-sm-4 col-4\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"recent-post-img\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_blog_single', {'categorySlug': lastArticle.blogCategory.categorySlug, 'slug': lastArticle.slug}) }}\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset(constant('App\\\\Services\\\\File::IMAGE_BLOG_DIR') ~ lastArticle.image) }}\" alt=\"{{ lastArticle.title }}\"></a>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xl-8 col-lg-8 col-md-8 col-sm-8 col-8\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"recent-post-content\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<h4 class=\"recent-title\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_blog_single', {'categorySlug': lastArticle.blogCategory.categorySlug, 'slug': lastArticle.slug}) }}\">{{ lastArticle.title }}</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t</h4>
\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"meta font-italic text-default\">{{ lastArticle.publishedAt|date('d/m/Y') }}</p>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
{% endblock %}
", "front/blog/list.html.twig", "/var/www/vhosts/hobbiinn.com/httpdocs/providdersvacance/templates/front/blog/list.html.twig");
}
}