var/cache/dev/twig/35/356a4a15f7dbfa89b24bb9d7db4b9906c8207a47d63779455cf23ee785da5a49.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* front/blog/list.html.twig */
  15. class __TwigTemplate_1748b7c6522c929db0761ad25c0bd25c26773d89ab61a49b9b468137e304efd3 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'meta' => [$this'block_meta'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base_front.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/blog/list.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/blog/list.html.twig"));
  40.         $this->parent $this->loadTemplate("base_front.html.twig""front/blog/list.html.twig"1);
  41.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_meta($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  55.         // line 4
  56.         yield "\t<title>Conseils et bons plans sur le blog Providders</title>
  57. \t<meta name=\"description\" content=\"Nos articles vous donneront quelques conseils sur la préparation de votre mariage, plus de ";
  58.         // line 5
  59.         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"nulltrue);
  60.         yield " articles disponibles\">
  61. ";
  62.         
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  64.         
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  66.         return; yield '';
  67.     }
  68.     // line 8
  69.     public function block_body($context, array $blocks = [])
  70.     {
  71.         $macros $this->macros;
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  76.         // line 9
  77.         yield "\t<div class=\"page-header\" style=\"background: url(";
  78.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/vacncance_blog.jpg"), "html"nulltrue);
  79.         yield ") no-repeat center;background-size: cover\">
  80. \t\t<div class=\"container\">
  81. \t\t\t<div
  82. \t\t\t\tclass=\"row\">
  83. \t\t\t\t<!-- page caption -->
  84. \t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 \">
  85. \t\t\t\t\t<div class=\"page-caption\">
  86. \t\t\t\t\t\t<h1 class=\"page-title\" style=\"box-shadow: black\">Blog</h1>
  87. \t\t\t\t\t\t";
  88.         // line 17
  89.         if (array_key_exists("categorySelected"$context)) {
  90.             // line 18
  91.             yield "\t\t\t\t\t\t\t<h2 style=\"color:white\">";
  92.             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"falsefalsefalse18), "html"nulltrue);
  93.             yield "</h2>
  94. \t\t\t\t\t\t";
  95.         }
  96.         // line 20
  97.         yield "\t\t\t\t\t</div>
  98. \t\t\t\t</div>
  99. \t\t\t\t<!-- /.page caption -->
  100. \t\t\t</div>
  101. \t\t</div>
  102. \t\t<!-- page caption -->
  103. \t\t<div class=\"page-breadcrumb\">
  104. \t\t\t<div class=\"container\">
  105. \t\t\t\t<div class=\"row\">
  106. \t\t\t\t\t<nav aria-label=\"breadcrumb\">
  107. \t\t\t\t\t\t<ol class=\"breadcrumb\">
  108. \t\t\t\t\t\t\t<li class=\"breadcrumb-item\">
  109. \t\t\t\t\t\t\t\t<a href=\"";
  110.         // line 32
  111.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_home");
  112.         yield "\" class=\"breadcrumb-link\">Accueil</a>
  113. \t\t\t\t\t\t\t</li>
  114. \t\t\t\t\t\t\t<li class=\"breadcrumb-item active text-white\" aria-current=\"page\">Tous les articles (";
  115.         // line 34
  116.         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"nulltrue);
  117.         yield "
  118. \t\t\t\t\t\t\t\tarticles)</li>
  119. \t\t\t\t\t\t</ol>
  120. \t\t\t\t\t</nav>
  121. \t\t\t\t</div>
  122. \t\t\t</div>
  123. \t\t</div>
  124. \t\t<!-- page breadcrumb -->
  125. \t</div>
  126. \t<!-- /.page-header -->
  127. \t<div class=\"content\">
  128. \t\t<div class=\"container\">
  129. \t\t\t<div class=\"row\">
  130. \t\t\t\t<div class=\"col-xl-8 col-lg-8 col-md-8 col-sm-12 col-12\">
  131. \t\t\t\t\t<div class=\"row\">
  132. \t\t\t\t\t\t";
  133.         // line 49
  134.         $context['_parent'] = $context;
  135.         $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); })()));
  136.         $context['_iterated'] = false;
  137.         foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  138.             // line 50
  139.             yield "\t\t\t\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
  140. \t\t\t\t\t\t\t\t<div
  141. \t\t\t\t\t\t\t\t\tclass=\"post-block\">
  142. \t\t\t\t\t\t\t\t\t<!-- post vertical block -->
  143. \t\t\t\t\t\t\t\t\t<div class=\"post-img zoomimg\">
  144. \t\t\t\t\t\t\t\t\t\t<a href=\"";
  145.             // line 55
  146.             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->sourceCoreExtension::getAttribute($this->env$this->source$context["article"], "blogCategory", [], "any"falsefalsefalse55), "categorySlug", [], "any"falsefalsefalse55), "slug" => CoreExtension::getAttribute($this->env$this->source$context["article"], "slug", [], "any"falsefalsefalse55)]), "html"nulltrue);
  147.             yield "\"><img src=\"";
  148.             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"falsefalsefalse55))), "html"nulltrue);
  149.             yield "\" alt=\"";
  150.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse55), "html"nulltrue);
  151.             yield "\" class=\"img-fluid\"></a>
  152. \t\t\t\t\t\t\t\t\t</div>
  153. \t\t\t\t\t\t\t\t\t<div class=\"post-content\">
  154. \t\t\t\t\t\t\t\t\t\t<h2>
  155. \t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  156.             // line 59
  157.             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->sourceCoreExtension::getAttribute($this->env$this->source$context["article"], "blogCategory", [], "any"falsefalsefalse59), "categorySlug", [], "any"falsefalsefalse59), "slug" => CoreExtension::getAttribute($this->env$this->source$context["article"], "slug", [], "any"falsefalsefalse59)]), "html"nulltrue);
  158.             yield "\" class=\"post-title\">";
  159.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse59), "html"nulltrue);
  160.             yield "</a>
  161. \t\t\t\t\t\t\t\t\t\t</h2>
  162. \t\t\t\t\t\t\t\t\t\t<p class=\"meta\">
  163. \t\t\t\t\t\t\t\t\t\t\t<span class=\"meta-date\">";
  164.             // line 62
  165.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envCoreExtension::getAttribute($this->env$this->source$context["article"], "publishedAt", [], "any"falsefalsefalse62), "full""short"""null"gregorian""fr"), "html"nulltrue);
  166.             yield "</span>
  167. \t\t\t\t\t\t\t\t\t\t</p>
  168. \t\t\t\t\t\t\t\t\t\t";
  169.             // line 64
  170.             $context["articleText"] = Twig\Extension\CoreExtension::striptags(CoreExtension::getAttribute($this->env$this->source$context["article"], "text", [], "any"falsefalsefalse64));
  171.             // line 65
  172.             yield "\t\t\t\t\t\t\t\t\t\t<p>";
  173.             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); })()), 0200), "html"nulltrue);
  174.             yield "...</p>
  175. \t\t\t\t\t\t\t\t\t\t<a href=\"";
  176.             // line 66
  177.             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->sourceCoreExtension::getAttribute($this->env$this->source$context["article"], "blogCategory", [], "any"falsefalsefalse66), "categorySlug", [], "any"falsefalsefalse66), "slug" => CoreExtension::getAttribute($this->env$this->source$context["article"], "slug", [], "any"falsefalsefalse66)]), "html"nulltrue);
  178.             yield "\" class=\"btn-default-link\">Lire l'article</a>
  179. \t\t\t\t\t\t\t\t\t</div>
  180. \t\t\t\t\t\t\t\t</div>
  181. \t\t\t\t\t\t\t\t<!-- /.post vertical block -->
  182. \t\t\t\t\t\t\t</div>
  183. \t\t\t\t\t\t";
  184.             $context['_iterated'] = true;
  185.         }
  186.         if (!$context['_iterated']) {
  187.             // line 72
  188.             yield "\t\t\t\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
  189. \t\t\t\t\t\t\t\t<p>Aucun article
  190. \t\t\t\t\t\t\t\t\t";
  191.             // line 74
  192.             if (array_key_exists("categorySelected"$context)) {
  193.                 yield "pour la catégorie
  194. \t\t\t\t\t\t\t\t\t\t";
  195.                 // line 75
  196.                 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"falsefalsefalse75), "html"nulltrue);
  197.                 yield "
  198. \t\t\t\t\t\t\t\t\t";
  199.             }
  200.             // line 76
  201.             yield ".</p>
  202. \t\t\t\t\t\t\t</div>
  203. \t\t\t\t\t\t";
  204.         }
  205.         $_parent $context['_parent'];
  206.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
  207.         $context array_intersect_key($context$_parent) + $_parent;
  208.         // line 79
  209.         yield "\t\t\t\t\t\t<!-- post paginations -->
  210. \t\t\t\t\t\t<div class=\"pagination\">
  211. \t\t\t\t\t\t\t<nav aria-label=\"Page navigation example\">
  212. \t\t\t\t\t\t\t\t";
  213.         // line 82
  214.         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); })()));
  215.         yield "
  216. \t\t\t\t\t\t\t</nav>
  217. \t\t\t\t\t\t</div>
  218. \t\t\t\t\t\t<!-- /.post paginations -->
  219. \t\t\t\t\t</div>
  220. \t\t\t\t</div>
  221. \t\t\t\t<!-- /. blog post -->
  222. \t\t\t\t<div class=\"col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12\">
  223. \t\t\t\t\t<div class=\"sidebar\">
  224. \t\t\t\t\t\t<!-- /.widget -->
  225. \t\t\t\t\t\t<!-- widget-categories -->
  226. \t\t\t\t\t\t\t<div class=\"widget widget-category\"> <h3 class=\"widget-title\">Categories</h3>
  227. \t\t\t\t\t\t\t<ul class=\"angle\">
  228. \t\t\t\t\t\t\t\t";
  229.         // line 95
  230.         $context['_parent'] = $context;
  231.         $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); })()));
  232.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  233.             // line 96
  234.             yield "\t\t\t\t\t\t\t\t\t<li>
  235. \t\t\t\t\t\t\t\t\t\t<a href=\"";
  236.             // line 97
  237.             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"falsefalsefalse97)]), "html"nulltrue);
  238.             yield "\">";
  239.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse97), "html"nulltrue);
  240.             yield "</a>
  241. \t\t\t\t\t\t\t\t\t</li>
  242. \t\t\t\t\t\t\t\t";
  243.         }
  244.         $_parent $context['_parent'];
  245.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  246.         $context array_intersect_key($context$_parent) + $_parent;
  247.         // line 100
  248.         yield "\t\t\t\t\t\t\t</ul>
  249. \t\t\t\t\t\t</div>
  250. \t\t\t\t\t\t<div class=\"widget widget-recent-post\">
  251. \t\t\t\t\t\t\t<h3 class=\"widget-title\">Derniers Articles</h3>
  252. \t\t\t\t\t\t\t<ul class=\"\">
  253. \t\t\t\t\t\t\t\t";
  254.         // line 106
  255.         $context['_parent'] = $context;
  256.         $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); })()));
  257.         foreach ($context['_seq'] as $context["_key"] => $context["lastArticle"]) {
  258.             // line 107
  259.             yield "\t\t\t\t\t\t\t\t\t<li>
  260. \t\t\t\t\t\t\t\t\t\t<div class=\"row\">
  261. \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\">
  262. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"recent-post-img\">
  263. \t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  264.             // line 111
  265.             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->sourceCoreExtension::getAttribute($this->env$this->source$context["lastArticle"], "blogCategory", [], "any"falsefalsefalse111), "categorySlug", [], "any"falsefalsefalse111), "slug" => CoreExtension::getAttribute($this->env$this->source$context["lastArticle"], "slug", [], "any"falsefalsefalse111)]), "html"nulltrue);
  266.             yield "\">
  267. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
  268.             // line 112
  269.             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"falsefalsefalse112))), "html"nulltrue);
  270.             yield "\" alt=\"";
  271.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["lastArticle"], "title", [], "any"falsefalsefalse112), "html"nulltrue);
  272.             yield "\"></a>
  273. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  274. \t\t\t\t\t\t\t\t\t\t\t</div>
  275. \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\">
  276. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"recent-post-content\">
  277. \t\t\t\t\t\t\t\t\t\t\t\t\t<h4 class=\"recent-title\">
  278. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  279.             // line 118
  280.             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->sourceCoreExtension::getAttribute($this->env$this->source$context["lastArticle"], "blogCategory", [], "any"falsefalsefalse118), "categorySlug", [], "any"falsefalsefalse118), "slug" => CoreExtension::getAttribute($this->env$this->source$context["lastArticle"], "slug", [], "any"falsefalsefalse118)]), "html"nulltrue);
  281.             yield "\">";
  282.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["lastArticle"], "title", [], "any"falsefalsefalse118), "html"nulltrue);
  283.             yield "</a>
  284. \t\t\t\t\t\t\t\t\t\t\t\t\t</h4>
  285. \t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"meta font-italic text-default\">";
  286.             // line 120
  287.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["lastArticle"], "publishedAt", [], "any"falsefalsefalse120), "d/m/Y"), "html"nulltrue);
  288.             yield "</p>
  289. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  290. \t\t\t\t\t\t\t\t\t\t\t</div>
  291. \t\t\t\t\t\t\t\t\t\t</div>
  292. \t\t\t\t\t\t\t\t\t</li>
  293. \t\t\t\t\t\t\t\t";
  294.         }
  295.         $_parent $context['_parent'];
  296.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lastArticle'], $context['_parent'], $context['loop']);
  297.         $context array_intersect_key($context$_parent) + $_parent;
  298.         // line 126
  299.         yield "\t\t\t\t\t\t\t</ul>
  300. \t\t\t\t\t\t</div>
  301. \t\t\t\t\t</div>
  302. \t\t\t\t</div>
  303. \t\t\t</div>
  304. \t\t</div>
  305. \t</div>
  306. ";
  307.         
  308.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  309.         
  310.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  311.         return; yield '';
  312.     }
  313.     /**
  314.      * @codeCoverageIgnore
  315.      */
  316.     public function getTemplateName()
  317.     {
  318.         return "front/blog/list.html.twig";
  319.     }
  320.     /**
  321.      * @codeCoverageIgnore
  322.      */
  323.     public function isTraitable()
  324.     {
  325.         return false;
  326.     }
  327.     /**
  328.      * @codeCoverageIgnore
  329.      */
  330.     public function getDebugInfo()
  331.     {
  332.         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,);
  333.     }
  334.     public function getSourceContext()
  335.     {
  336.         return new Source("{% extends 'base_front.html.twig' %}
  337. {% block meta %}
  338. \t<title>Conseils et bons plans sur le blog Providders</title>
  339. \t<meta name=\"description\" content=\"Nos articles vous donneront quelques conseils sur la préparation de votre mariage, plus de {{ articles|length }} articles disponibles\">
  340. {% endblock %}
  341. {% block body %}
  342. \t<div class=\"page-header\" style=\"background: url({{ asset('images/vacncance_blog.jpg') }}) no-repeat center;background-size: cover\">
  343. \t\t<div class=\"container\">
  344. \t\t\t<div
  345. \t\t\t\tclass=\"row\">
  346. \t\t\t\t<!-- page caption -->
  347. \t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 \">
  348. \t\t\t\t\t<div class=\"page-caption\">
  349. \t\t\t\t\t\t<h1 class=\"page-title\" style=\"box-shadow: black\">Blog</h1>
  350. \t\t\t\t\t\t{% if categorySelected is defined %}
  351. \t\t\t\t\t\t\t<h2 style=\"color:white\">{{ categorySelected.name }}</h2>
  352. \t\t\t\t\t\t{% endif %}
  353. \t\t\t\t\t</div>
  354. \t\t\t\t</div>
  355. \t\t\t\t<!-- /.page caption -->
  356. \t\t\t</div>
  357. \t\t</div>
  358. \t\t<!-- page caption -->
  359. \t\t<div class=\"page-breadcrumb\">
  360. \t\t\t<div class=\"container\">
  361. \t\t\t\t<div class=\"row\">
  362. \t\t\t\t\t<nav aria-label=\"breadcrumb\">
  363. \t\t\t\t\t\t<ol class=\"breadcrumb\">
  364. \t\t\t\t\t\t\t<li class=\"breadcrumb-item\">
  365. \t\t\t\t\t\t\t\t<a href=\"{{ path('front_home') }}\" class=\"breadcrumb-link\">Accueil</a>
  366. \t\t\t\t\t\t\t</li>
  367. \t\t\t\t\t\t\t<li class=\"breadcrumb-item active text-white\" aria-current=\"page\">Tous les articles ({{ articles|length }}
  368. \t\t\t\t\t\t\t\tarticles)</li>
  369. \t\t\t\t\t\t</ol>
  370. \t\t\t\t\t</nav>
  371. \t\t\t\t</div>
  372. \t\t\t</div>
  373. \t\t</div>
  374. \t\t<!-- page breadcrumb -->
  375. \t</div>
  376. \t<!-- /.page-header -->
  377. \t<div class=\"content\">
  378. \t\t<div class=\"container\">
  379. \t\t\t<div class=\"row\">
  380. \t\t\t\t<div class=\"col-xl-8 col-lg-8 col-md-8 col-sm-12 col-12\">
  381. \t\t\t\t\t<div class=\"row\">
  382. \t\t\t\t\t\t{% for article in articles %}
  383. \t\t\t\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
  384. \t\t\t\t\t\t\t\t<div
  385. \t\t\t\t\t\t\t\t\tclass=\"post-block\">
  386. \t\t\t\t\t\t\t\t\t<!-- post vertical block -->
  387. \t\t\t\t\t\t\t\t\t<div class=\"post-img zoomimg\">
  388. \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>
  389. \t\t\t\t\t\t\t\t\t</div>
  390. \t\t\t\t\t\t\t\t\t<div class=\"post-content\">
  391. \t\t\t\t\t\t\t\t\t\t<h2>
  392. \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>
  393. \t\t\t\t\t\t\t\t\t\t</h2>
  394. \t\t\t\t\t\t\t\t\t\t<p class=\"meta\">
  395. \t\t\t\t\t\t\t\t\t\t\t<span class=\"meta-date\">{{ article.publishedAt|format_datetime('full', 'short', locale='fr') }}</span>
  396. \t\t\t\t\t\t\t\t\t\t</p>
  397. \t\t\t\t\t\t\t\t\t\t{% set articleText = article.text|striptags %}
  398. \t\t\t\t\t\t\t\t\t\t<p>{{ articleText|slice(0, 200) }}...</p>
  399. \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>
  400. \t\t\t\t\t\t\t\t\t</div>
  401. \t\t\t\t\t\t\t\t</div>
  402. \t\t\t\t\t\t\t\t<!-- /.post vertical block -->
  403. \t\t\t\t\t\t\t</div>
  404. \t\t\t\t\t\t{% else %}
  405. \t\t\t\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
  406. \t\t\t\t\t\t\t\t<p>Aucun article
  407. \t\t\t\t\t\t\t\t\t{% if categorySelected is defined %}pour la catégorie
  408. \t\t\t\t\t\t\t\t\t\t{{ categorySelected.name }}
  409. \t\t\t\t\t\t\t\t\t{% endif %}.</p>
  410. \t\t\t\t\t\t\t</div>
  411. \t\t\t\t\t\t{% endfor %}
  412. \t\t\t\t\t\t<!-- post paginations -->
  413. \t\t\t\t\t\t<div class=\"pagination\">
  414. \t\t\t\t\t\t\t<nav aria-label=\"Page navigation example\">
  415. \t\t\t\t\t\t\t\t{{ knp_pagination_render(articles) }}
  416. \t\t\t\t\t\t\t</nav>
  417. \t\t\t\t\t\t</div>
  418. \t\t\t\t\t\t<!-- /.post paginations -->
  419. \t\t\t\t\t</div>
  420. \t\t\t\t</div>
  421. \t\t\t\t<!-- /. blog post -->
  422. \t\t\t\t<div class=\"col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12\">
  423. \t\t\t\t\t<div class=\"sidebar\">
  424. \t\t\t\t\t\t<!-- /.widget -->
  425. \t\t\t\t\t\t<!-- widget-categories -->
  426. \t\t\t\t\t\t\t<div class=\"widget widget-category\"> <h3 class=\"widget-title\">Categories</h3>
  427. \t\t\t\t\t\t\t<ul class=\"angle\">
  428. \t\t\t\t\t\t\t\t{% for category in categories %}
  429. \t\t\t\t\t\t\t\t\t<li>
  430. \t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_blog_category_list', {'categorySlug': category.categorySlug}) }}\">{{ category.name }}</a>
  431. \t\t\t\t\t\t\t\t\t</li>
  432. \t\t\t\t\t\t\t\t{% endfor %}
  433. \t\t\t\t\t\t\t</ul>
  434. \t\t\t\t\t\t</div>
  435. \t\t\t\t\t\t<div class=\"widget widget-recent-post\">
  436. \t\t\t\t\t\t\t<h3 class=\"widget-title\">Derniers Articles</h3>
  437. \t\t\t\t\t\t\t<ul class=\"\">
  438. \t\t\t\t\t\t\t\t{% for lastArticle in lastArticles %}
  439. \t\t\t\t\t\t\t\t\t<li>
  440. \t\t\t\t\t\t\t\t\t\t<div class=\"row\">
  441. \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\">
  442. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"recent-post-img\">
  443. \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}) }}\">
  444. \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>
  445. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  446. \t\t\t\t\t\t\t\t\t\t\t</div>
  447. \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\">
  448. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"recent-post-content\">
  449. \t\t\t\t\t\t\t\t\t\t\t\t\t<h4 class=\"recent-title\">
  450. \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>
  451. \t\t\t\t\t\t\t\t\t\t\t\t\t</h4>
  452. \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>
  453. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  454. \t\t\t\t\t\t\t\t\t\t\t</div>
  455. \t\t\t\t\t\t\t\t\t\t</div>
  456. \t\t\t\t\t\t\t\t\t</li>
  457. \t\t\t\t\t\t\t\t{% endfor %}
  458. \t\t\t\t\t\t\t</ul>
  459. \t\t\t\t\t\t</div>
  460. \t\t\t\t\t</div>
  461. \t\t\t\t</div>
  462. \t\t\t</div>
  463. \t\t</div>
  464. \t</div>
  465. {% endblock %}
  466. ""front/blog/list.html.twig""/var/www/vhosts/hobbiinn.com/httpdocs/providdersvacance/templates/front/blog/list.html.twig");
  467.     }
  468. }