<?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;
/* front_v4/mca/blog/list.html.twig */
class __TwigTemplate_3be0c498419122469823a265ca06ac09081b7a4bb048745332a7a713648bbfa9 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'meta_title' => [$this, 'block_meta_title'],
'meta_description' => [$this, 'block_meta_description'],
'meta_custom' => [$this, 'block_meta_custom'],
'stylesheets' => [$this, 'block_stylesheets'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "front_v4/base.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_v4/mca/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_v4/mca/blog/list.html.twig"));
$this->parent = $this->loadTemplate("front_v4/base.html.twig", "front_v4/mca/blog/list.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_meta_title($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_title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_title"));
echo "Mon Centre Auditif - Découvrez notre blog ";
if (((array_key_exists("pagination", $context) && !(null === (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 3, $this->source); })()))) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 3, $this->source); })()), "params", [], "any", false, false, false, 3)))) {
echo " | Page ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 3, $this->source); })()), "currentPageNumber", [], "any", false, false, false, 3), "html", null, true);
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 4
public function block_meta_description($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_description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_description"));
echo "Retrouvez toutes nos publications relatives à l'audition pour vous informer sur l'univers de l'aide auditive";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 6
public function block_meta_custom($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_custom"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_custom"));
// line 7
echo " ";
if ((array_key_exists("pagination", $context) && !(null === (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 7, $this->source); })())))) {
// line 8
echo " ";
$context["numberOfPage"] = (twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 8, $this->source); })()), "totalItemCount", [], "any", false, false, false, 8) / twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 8, $this->source); })()), "itemNumberPerPage", [], "any", false, false, false, 8));
// line 9
echo " ";
if (((isset($context["numberOfPage"]) || array_key_exists("numberOfPage", $context) ? $context["numberOfPage"] : (function () { throw new RuntimeError('Variable "numberOfPage" does not exist.', 9, $this->source); })()) > 1)) {
// line 10
echo " ";
$context["next"] = (twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 10, $this->source); })()), "currentPageNumber", [], "any", false, false, false, 10) + 1);
// line 11
echo " ";
$context["prev"] = (twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 11, $this->source); })()), "currentPageNumber", [], "any", false, false, false, 11) - 1);
// line 12
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 12, $this->source); })()), "currentPageNumber", [], "any", false, false, false, 12) == 1)) {
// line 13
echo " ";
$context["next"] = (twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 13, $this->source); })()), "currentPageNumber", [], "any", false, false, false, 13) + 1);
// line 14
echo " <link rel=\"next\" href=\"";
echo twig_escape_filter($this->env, (($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 14, $this->source); })()), "request", [], "any", false, false, false, 14), "attributes", [], "any", false, false, false, 14), "get", [0 => "_route"], "method", false, false, false, 14), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 15
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 15, $this->source); })()), "request", [], "any", false, false, false, 15), "attributes", [], "any", false, false, false, 15), "get", [0 => "_route_params"], "method", false, false, false, 15)) . "?page=") . (isset($context["next"]) || array_key_exists("next", $context) ? $context["next"] : (function () { throw new RuntimeError('Variable "next" does not exist.', 15, $this->source); })())), "html", null, true);
echo "\"/>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 16
(isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 16, $this->source); })()), "currentPageNumber", [], "any", false, false, false, 16) == (isset($context["numberOfPage"]) || array_key_exists("numberOfPage", $context) ? $context["numberOfPage"] : (function () { throw new RuntimeError('Variable "numberOfPage" does not exist.', 16, $this->source); })()))) {
// line 17
echo " <link rel=\"prev\" href=\"";
echo twig_escape_filter($this->env, (($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 17, $this->source); })()), "request", [], "any", false, false, false, 17), "attributes", [], "any", false, false, false, 17), "get", [0 => "_route"], "method", false, false, false, 17), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 18
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 18, $this->source); })()), "request", [], "any", false, false, false, 18), "attributes", [], "any", false, false, false, 18), "get", [0 => "_route_params"], "method", false, false, false, 18)) . "?page=") . (isset($context["prev"]) || array_key_exists("prev", $context) ? $context["prev"] : (function () { throw new RuntimeError('Variable "prev" does not exist.', 18, $this->source); })())), "html", null, true);
echo "\"/>
";
} else {
// line 20
echo " <link rel=\"next\" href=\"";
echo twig_escape_filter($this->env, (($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 20, $this->source); })()), "request", [], "any", false, false, false, 20), "attributes", [], "any", false, false, false, 20), "get", [0 => "_route"], "method", false, false, false, 20), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 21
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 21, $this->source); })()), "request", [], "any", false, false, false, 21), "attributes", [], "any", false, false, false, 21), "get", [0 => "_route_params"], "method", false, false, false, 21)) . "?page=") . (isset($context["next"]) || array_key_exists("next", $context) ? $context["next"] : (function () { throw new RuntimeError('Variable "next" does not exist.', 21, $this->source); })())), "html", null, true);
echo "\"/>
<link rel=\"prev\" href=\"";
// line 22
echo twig_escape_filter($this->env, (($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 22, $this->source); })()), "request", [], "any", false, false, false, 22), "attributes", [], "any", false, false, false, 22), "get", [0 => "_route"], "method", false, false, false, 22), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 23
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 23, $this->source); })()), "request", [], "any", false, false, false, 23), "attributes", [], "any", false, false, false, 23), "get", [0 => "_route_params"], "method", false, false, false, 23)) . "?page=") . (isset($context["prev"]) || array_key_exists("prev", $context) ? $context["prev"] : (function () { throw new RuntimeError('Variable "prev" does not exist.', 23, $this->source); })())), "html", null, true);
echo "\"/>
";
}
// line 25
echo " ";
}
// line 26
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 29
public function block_stylesheets($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", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 30
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("blog_list");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 33
public function block_content($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", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 34
echo " <div id=\"header\"></div>
<!-- ========== MAIN CONTENT ========== -->
<main id=\"content\" role=\"main\">
<!-- Blog Carousel -->
";
// line 38
$this->loadTemplate("front_v4/mca/blog/_blog_swiper.html.twig", "front_v4/mca/blog/list.html.twig", 38)->display($context);
// line 39
echo " <!-- End Blog Carousel -->
<!-- Card Grid -->
<div class=\"container content-space-2\">
<!-- Hero -->
<div class=\"content-space-b-1\">
<div class=\"w-md-75 text-center mx-md-auto\">
<h1 class=\"\">Le blog de l'audition</h1>
<p class=\"lead\">Découvrez les dernières actualités sur l'univers de l'audition.</p>
</div>
</div>
<!-- End Hero -->
<div class=\"row justify-content-lg-between\">
<div class=\"col-lg-8 mb-10 mb-lg-0\">
<div class=\"d-grid gap-7 mb-7\">
";
// line 54
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 54, $this->source); })()));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
// line 55
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_post_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["post"], "slug", [], "any", false, false, false, 55)]), "html", null, true);
echo "\">
";
// line 56
if ((twig_get_attribute($this->env, $this->source, $context["post"], "isPillarPage", [], "any", false, false, false, 56) == true)) {
// line 57
echo " <div class=\"card card-transition align-items-start flex-wrap flex-row bg-img-start gradient-overlay-half-dark-v2\"
style=\"background-image: url('";
// line 58
if (twig_get_attribute($this->env, $this->source, $context["post"], "filename", [], "any", false, false, false, 58)) {
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset($context["post"], "imageFile"), "blog_post_extra_large"), "html", null, true);
echo " ";
}
echo "'); min-height: 25rem;\">
<!-- Card Header -->
<div class=\"card-header w-100\">
<div class=\"d-flex align-items-center\">
<div class=\"flex-shrink-0\">
<span class=\"avatar avatar-sm avatar-circle\">
<img class=\"avatar-img\"
src=\"";
// line 65
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "blogAuthor", [], "any", false, false, false, 65), "filename", [], "any", false, false, false, 65)) {
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset(twig_get_attribute($this->env, $this->source, $context["post"], "blogAuthor", [], "any", false, false, false, 65), "imageFile"), "author_image_small"), "html", null, true);
echo " ";
}
echo "\"
alt=\"";
// line 66
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "blogAuthor", [], "any", false, false, false, 66), "firstname", [], "any", false, false, false, 66), "html", null, true);
echo "\">
</span>
</div>
<div class=\"flex-grow-1 ms-3\">
<h4 class=\"card-title text-white mb-0\">";
// line 71
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "blogAuthor", [], "any", false, false, false, 71), "firstname", [], "any", false, false, false, 71), "html", null, true);
echo "</h4>
<p class=\"card-text text-white-70 small\">";
// line 72
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "createdAt", [], "any", false, false, false, 72), "medium"), "html", null, true);
echo "</p>
</div>
</div>
</div>
<!-- End Card Header -->
<!-- Card Footer -->
<div class=\"card-footer mt-auto\">
<h3 class=\"h2 text-white\">";
// line 80
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "title", [], "any", false, false, false, 80), "html", null, true);
echo "</h3>
<p class=\"text-white-70\">";
// line 81
echo twig_nl2br(twig_truncate_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, $context["post"], "body", [], "any", false, false, false, 81)), 120, true));
echo "</p>
</div>
<!-- End Card Footer -->
</div>
";
} else {
// line 86
echo " <!-- Card -->
<div class=\"card card-flush card-stretched-vertical\">
<div class=\"row\">
<div class=\"col-sm-5\">
";
// line 91
echo " <img class=\"card-img\"
src=\"";
// line 92
if (twig_get_attribute($this->env, $this->source, $context["post"], "filename", [], "any", false, false, false, 92)) {
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset($context["post"], "imageFile"), "blog_post_small"), "html", null, true);
echo " ";
}
echo "\"
alt=\"";
// line 93
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "title", [], "any", false, false, false, 93), "html", null, true);
echo "\">
</div>
<!-- End Col -->
<div class=\"col-sm-7\">
<!-- Card Body -->
<div class=\"card-body\">
<div class=\"mb-2\">
<h5 class=\"text-primary\">";
// line 101
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "blogCategory", [], "any", false, false, false, 101), "html", null, true);
echo "</h5>
</div>
<h3 class=\"card-title text-dark\">";
// line 104
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "title", [], "any", false, false, false, 104), "html", null, true);
echo "</h3>
<p class=\"card-text\">";
// line 106
echo twig_nl2br(twig_truncate_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, $context["post"], "body", [], "any", false, false, false, 106)), 250, true));
echo "</p>
<!-- Card Footer -->
<div class=\"card-footer\">
<div class=\"d-flex\">
<div class=\"flex-shrink-0\">
<h4 class=\"avatar avatar-circle\">
<img class=\"avatar-img\"
src=\"";
// line 114
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "blogAuthor", [], "any", false, false, false, 114), "filename", [], "any", false, false, false, 114)) {
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset(twig_get_attribute($this->env, $this->source, $context["post"], "blogAuthor", [], "any", false, false, false, 114), "imageFile"), "author_image_small"), "html", null, true);
echo " ";
}
echo "\"
alt=\"";
// line 115
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "blogAuthor", [], "any", false, false, false, 115), "firstname", [], "any", false, false, false, 115), "html", null, true);
echo "\">
</h4>
</div>
<div class=\"flex-grow-1 ms-3\">
<h4 class=\"mb-0\">";
// line 120
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "blogAuthor", [], "any", false, false, false, 120), "firstname", [], "any", false, false, false, 120), "html", null, true);
echo "</h4>
<p class=\"card-text small\">";
// line 121
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "createdAt", [], "any", false, false, false, 121), "medium"), "html", null, true);
echo "</p>
</div>
</div>
</div>
<!-- End Card Footer -->
</div>
<!-- End Card Body -->
</div>
<!-- End Col -->
</div>
<!-- End Row -->
</div>
<!-- End Card -->
";
}
// line 135
echo " </a>
";
$context['_iterated'] = true;
}
if (!$context['_iterated']) {
// line 137
echo " <p class=\"h5 fw-bold mx-3\">Aucun article trouvé</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 139
echo " </div>
<!-- Sticky Block End Point -->
<div id=\"stickyBlockEndPoint\"></div>
<!-- Pagination -->
";
// line 145
if ((array_key_exists("pagination", $context) && !(null === (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 145, $this->source); })())))) {
// line 146
echo " <div class=\"navigation pagination d-flex justify-content-center mt-5\">
";
// line 147
twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 147, $this->source); })()), "setTemplate", [0 => "@KnpPaginator/Pagination/twitter_bootstrap_v4_pagination.html.twig"], "method", false, false, false, 147);
// line 148
echo " ";
echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 148, $this->source); })()));
echo "
</div>
";
}
// line 151
echo " <!-- End Pagination -->
</div>
<!-- End Col -->
<div class=\"col-lg-3\">
<div class=\"mb-7\">
<div class=\"mb-3\">
<h3>Rechercher un article</h3>
</div>
<!-- Search -->
";
// line 162
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 162, $this->source); })()), 'form_start');
echo "
<div class=\"input-group\">
";
// line 164
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 164, $this->source); })()), "keyword", [], "any", false, false, false, 164), 'widget');
echo "
<div class=\"input-group-append\">
";
// line 166
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 166, $this->source); })()), "submit", [], "any", false, false, false, 166), 'widget');
echo "
</div>
</div>
";
// line 169
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 169, $this->source); })()), 'form_end');
echo "
<!-- End Search -->
<p class=\"form-text\">Saisissez un mot-clé pour effectuer une recherche parmi tous nos
articles.</p>
</div>
<!-- Sticky Block Start Point -->
<div id=\"stickyBlockStartPoint\"></div>
<div class=\"js-sticky-block\"
data-hs-sticky-block-options='{
\"parentSelector\": \"#stickyBlockStartPoint\",
\"targetSelector\": \"#header\",
\"breakpoint\": \"md\",
\"startPoint\": \"#stickyBlockStartPoint\",
\"endPoint\": \"#stickyBlockEndPoint\",
\"stickyOffsetTop\": 80
}'>
";
// line 187
if ((array_key_exists("randomPageByCategory", $context) && !twig_test_empty((isset($context["randomPageByCategory"]) || array_key_exists("randomPageByCategory", $context) ? $context["randomPageByCategory"] : (function () { throw new RuntimeError('Variable "randomPageByCategory" does not exist.', 187, $this->source); })())))) {
// line 188
echo " <div class=\"mb-7\">
<div class=\"mb-3\">
<h3>Notre sélection</h3>
</div>
<div class=\"d-grid gap-2\">
";
// line 194
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["randomPageByCategory"]) || array_key_exists("randomPageByCategory", $context) ? $context["randomPageByCategory"] : (function () { throw new RuntimeError('Variable "randomPageByCategory" does not exist.', 194, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
// line 195
echo " <!-- Card -->
<a class=\"d-block\" href=\"";
// line 196
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_post_show", ["slug" => twig_get_attribute($this->env, $this->source, $context["post"], "slug", [], "any", false, false, false, 196)]), "html", null, true);
echo "\">
<div class=\"d-flex align-items-center\">
<div class=\"flex-shrink-0\">
<div class=\"avatar avatar-lg\">
<img class=\"avatar-img\"
src=\"";
// line 201
if (twig_get_attribute($this->env, $this->source, $context["post"], "filename", [], "any", false, false, false, 201)) {
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset($context["post"], "imageFile"), "blog_post_small"), "html", null, true);
echo " ";
}
echo "\"
alt=\"";
// line 202
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "title", [], "any", false, false, false, 202), "html", null, true);
echo "\">
</div>
</div>
<div class=\"flex-grow-1 ms-3\">
<h5 class=\"text-inherit mb-0\">";
// line 206
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "title", [], "any", false, false, false, 206), "html", null, true);
echo "</h5>
</div>
</div>
</a>
<!-- End Card -->
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 212
echo " </div>
</div>
";
}
// line 215
echo "
";
// line 216
if ((array_key_exists("featuredCategory", $context) && !twig_test_empty((isset($context["featuredCategory"]) || array_key_exists("featuredCategory", $context) ? $context["featuredCategory"] : (function () { throw new RuntimeError('Variable "featuredCategory" does not exist.', 216, $this->source); })())))) {
// line 217
echo " <div class=\"mb-7\">
<div class=\"mb-3\">
<h3>";
// line 219
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["featuredCategory"]) || array_key_exists("featuredCategory", $context) ? $context["featuredCategory"] : (function () { throw new RuntimeError('Variable "featuredCategory" does not exist.', 219, $this->source); })()), "name", [], "any", false, false, false, 219), "html", null, true);
echo "</h3>
</div>
<!-- List Group -->
<ul class=\"list-group list-group-lg\">
";
// line 223
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["featuredLastedPostByCategory"]) || array_key_exists("featuredLastedPostByCategory", $context) ? $context["featuredLastedPostByCategory"] : (function () { throw new RuntimeError('Variable "featuredLastedPostByCategory" does not exist.', 223, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
// line 224
echo " <!-- Item -->
<li class=\"list-group-item\">
<a href=\"#\">
<div class=\"row align-items-center\">
<div class=\"col\">
<h5 class=\"mb-1\">";
// line 229
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "title", [], "any", false, false, false, 229), "html", null, true);
echo "</h5>
<p class=\"text-body small mb-0\">";
// line 230
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "createdAt", [], "any", false, false, false, 230), "medium"), "html", null, true);
echo "</p>
</div>
<!-- End Col -->
<div class=\"col-auto\">
<i class=\"bi-chevron-right\"></i>
</div>
<!-- End Col -->
</div>
<!-- End Row -->
</a>
</li>
<!-- End Item -->
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 244
echo " </ul>
<!-- End List Group -->
</div>
";
}
// line 248
echo " </div>
</div>
<!-- End Col -->
</div>
<!-- End Row -->
</div>
<!-- End Card Grid -->
<!-- Hero -->
<div class=\"shape-container overflow-hidden\">
<div class=\"bg-dark\"
style=\"background-image: url(";
// line 259
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/front_v4/svg/components/wave-pattern-light.svg"), "html", null, true);
echo ");\">
<div class=\"container content-space-1 content-space-t-md-3 content-space-b-md-4\">
<div class=\"position-relative w-lg-75 text-center mx-lg-auto\">
<div class=\"mb-7\">
<h1 class=\"fw-normal mb-4 font-size-md-down-1 text-white\">A propos du <span
class=\"text-warning fw-semibold\">blog</span></h1>
<p class=\"d-block d-inline lead text-white\">
<span class=\"text-warning\">Mon Centre Auditif</span> s’efforce à travers ce blog de vous
informer sur l’univers de l’audition.
Notre objectif est de rendre l’accès aux <strong>soins auditifs</strong> plus simple et
plus fluide pour les
personnes en recherche d’équipement. <br>
Du <strong>bilan auditif</strong> jusqu’à l’appareillage en passant par la prescription
médicale de l’ORL, nous allons
ensemble aborder les différents sujets qui entourent la perte auditive.<br><br>
Vous avez des questions ou des doutes sur votre santé auditive, n’hésitez pas à
consulter un
professionnel proche de chez vous. <br>
Nos différents rédacteurs vous apporteront un maximum d’informations vulgarisées sur les
solutions
auditives du marché, les mécanismes de remboursements, les dernières technologies et
l’actualité de
l’univers de l’audioprothèse.
</p>
</div>
<!-- End Row -->
</div>
</div>
</div>
<!-- Shape -->
<div class=\"shape shape-bottom zi-1\" style=\"margin-bottom: -.125rem\">
<svg xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 1920 100.1\">
<path fill=\"#fff\" d=\"M0,0c0,0,934.4,93.4,1920,0v100.1H0L0,0z\"></path>
</svg>
</div>
<!-- End Shape -->
</div>
<!-- End Hero -->
</main>
<!-- ========== END MAIN CONTENT ========== -->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 303
public function block_javascripts($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", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 304
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("blog_list");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front_v4/mca/blog/list.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 670 => 304, 660 => 303, 607 => 259, 594 => 248, 588 => 244, 568 => 230, 564 => 229, 557 => 224, 553 => 223, 546 => 219, 542 => 217, 540 => 216, 537 => 215, 532 => 212, 520 => 206, 513 => 202, 505 => 201, 497 => 196, 494 => 195, 490 => 194, 482 => 188, 480 => 187, 459 => 169, 453 => 166, 448 => 164, 443 => 162, 430 => 151, 423 => 148, 421 => 147, 418 => 146, 416 => 145, 408 => 139, 401 => 137, 395 => 135, 378 => 121, 374 => 120, 366 => 115, 358 => 114, 347 => 106, 342 => 104, 336 => 101, 325 => 93, 317 => 92, 314 => 91, 308 => 86, 300 => 81, 296 => 80, 285 => 72, 281 => 71, 273 => 66, 265 => 65, 251 => 58, 248 => 57, 246 => 56, 241 => 55, 236 => 54, 219 => 39, 217 => 38, 211 => 34, 201 => 33, 188 => 30, 178 => 29, 167 => 26, 164 => 25, 159 => 23, 158 => 22, 154 => 21, 152 => 20, 147 => 18, 145 => 17, 143 => 16, 139 => 15, 137 => 14, 134 => 13, 131 => 12, 128 => 11, 125 => 10, 122 => 9, 119 => 8, 116 => 7, 106 => 6, 87 => 4, 63 => 3, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'front_v4/base.html.twig' %}
{% block meta_title %}Mon Centre Auditif - Découvrez notre blog {% if pagination is defined and pagination is not null and pagination.params is not empty %} | Page {{ pagination.currentPageNumber }} {% endif %}{% endblock meta_title %}
{% block meta_description %}Retrouvez toutes nos publications relatives à l'audition pour vous informer sur l'univers de l'aide auditive{% endblock meta_description %}
{% block meta_custom %}
{% if pagination is defined and pagination is not null %}
{% set numberOfPage = pagination.totalItemCount / pagination.itemNumberPerPage %}
{% if numberOfPage > 1 %}
{% set next = pagination.currentPageNumber+1 %}
{% set prev = pagination.currentPageNumber-1 %}
{% if pagination.currentPageNumber == 1 %}
{% set next = pagination.currentPageNumber+1 %}
<link rel=\"next\" href=\"{{ path(app.request.attributes.get('_route'),
app.request.attributes.get('_route_params')) ~ \"?page=\" ~ next }}\"/>
{% elseif pagination.currentPageNumber == numberOfPage %}
<link rel=\"prev\" href=\"{{ path(app.request.attributes.get('_route'),
app.request.attributes.get('_route_params')) ~ \"?page=\" ~ prev }}\"/>
{% else %}
<link rel=\"next\" href=\"{{ path(app.request.attributes.get('_route'),
app.request.attributes.get('_route_params')) ~ \"?page=\" ~ next }}\"/>
<link rel=\"prev\" href=\"{{ path(app.request.attributes.get('_route'),
app.request.attributes.get('_route_params')) ~ \"?page=\" ~ prev }}\"/>
{% endif %}
{% endif %}
{% endif %}
{% endblock meta_custom %}
{% block stylesheets %}
{{ encore_entry_link_tags('blog_list') }}
{% endblock stylesheets %}
{% block content %}
<div id=\"header\"></div>
<!-- ========== MAIN CONTENT ========== -->
<main id=\"content\" role=\"main\">
<!-- Blog Carousel -->
{% include 'front_v4/mca/blog/_blog_swiper.html.twig' %}
<!-- End Blog Carousel -->
<!-- Card Grid -->
<div class=\"container content-space-2\">
<!-- Hero -->
<div class=\"content-space-b-1\">
<div class=\"w-md-75 text-center mx-md-auto\">
<h1 class=\"\">Le blog de l'audition</h1>
<p class=\"lead\">Découvrez les dernières actualités sur l'univers de l'audition.</p>
</div>
</div>
<!-- End Hero -->
<div class=\"row justify-content-lg-between\">
<div class=\"col-lg-8 mb-10 mb-lg-0\">
<div class=\"d-grid gap-7 mb-7\">
{% for post in pagination %}
<a href=\"{{ path('blog_post_show', {'slug': post.slug}) }}\">
{% if post.isPillarPage == true %}
<div class=\"card card-transition align-items-start flex-wrap flex-row bg-img-start gradient-overlay-half-dark-v2\"
style=\"background-image: url('{% if post.filename %} {{ vich_uploader_asset(post, 'imageFile') | imagine_filter('blog_post_extra_large') }} {% endif %}'); min-height: 25rem;\">
<!-- Card Header -->
<div class=\"card-header w-100\">
<div class=\"d-flex align-items-center\">
<div class=\"flex-shrink-0\">
<span class=\"avatar avatar-sm avatar-circle\">
<img class=\"avatar-img\"
src=\"{% if post.blogAuthor.filename %} {{ vich_uploader_asset(post.blogAuthor, 'imageFile') | imagine_filter('author_image_small') }} {% endif %}\"
alt=\"{{ post.blogAuthor.firstname }}\">
</span>
</div>
<div class=\"flex-grow-1 ms-3\">
<h4 class=\"card-title text-white mb-0\">{{ post.blogAuthor.firstname }}</h4>
<p class=\"card-text text-white-70 small\">{{ post.createdAt|format_date('medium') }}</p>
</div>
</div>
</div>
<!-- End Card Header -->
<!-- Card Footer -->
<div class=\"card-footer mt-auto\">
<h3 class=\"h2 text-white\">{{ post.title }}</h3>
<p class=\"text-white-70\">{{ post.body|striptags|truncate(120, true)|raw|nl2br }}</p>
</div>
<!-- End Card Footer -->
</div>
{% else %}
<!-- Card -->
<div class=\"card card-flush card-stretched-vertical\">
<div class=\"row\">
<div class=\"col-sm-5\">
{# img size : 400x500 #}
<img class=\"card-img\"
src=\"{% if post.filename %} {{ vich_uploader_asset(post, 'imageFile') | imagine_filter('blog_post_small') }} {% endif %}\"
alt=\"{{ post.title }}\">
</div>
<!-- End Col -->
<div class=\"col-sm-7\">
<!-- Card Body -->
<div class=\"card-body\">
<div class=\"mb-2\">
<h5 class=\"text-primary\">{{ post.blogCategory }}</h5>
</div>
<h3 class=\"card-title text-dark\">{{ post.title }}</h3>
<p class=\"card-text\">{{ post.body|striptags|truncate(250, true)|raw|nl2br }}</p>
<!-- Card Footer -->
<div class=\"card-footer\">
<div class=\"d-flex\">
<div class=\"flex-shrink-0\">
<h4 class=\"avatar avatar-circle\">
<img class=\"avatar-img\"
src=\"{% if post.blogAuthor.filename %} {{ vich_uploader_asset(post.blogAuthor, 'imageFile') | imagine_filter('author_image_small') }} {% endif %}\"
alt=\"{{ post.blogAuthor.firstname }}\">
</h4>
</div>
<div class=\"flex-grow-1 ms-3\">
<h4 class=\"mb-0\">{{ post.blogAuthor.firstname }}</h4>
<p class=\"card-text small\">{{ post.createdAt|format_date('medium') }}</p>
</div>
</div>
</div>
<!-- End Card Footer -->
</div>
<!-- End Card Body -->
</div>
<!-- End Col -->
</div>
<!-- End Row -->
</div>
<!-- End Card -->
{% endif %}
</a>
{% else %}
<p class=\"h5 fw-bold mx-3\">Aucun article trouvé</p>
{% endfor %}
</div>
<!-- Sticky Block End Point -->
<div id=\"stickyBlockEndPoint\"></div>
<!-- Pagination -->
{% if pagination is defined and pagination is not null %}
<div class=\"navigation pagination d-flex justify-content-center mt-5\">
{% do pagination.setTemplate('@KnpPaginator/Pagination/twitter_bootstrap_v4_pagination.html.twig') %}
{{ knp_pagination_render(pagination) }}
</div>
{% endif %}
<!-- End Pagination -->
</div>
<!-- End Col -->
<div class=\"col-lg-3\">
<div class=\"mb-7\">
<div class=\"mb-3\">
<h3>Rechercher un article</h3>
</div>
<!-- Search -->
{{ form_start(form) }}
<div class=\"input-group\">
{{ form_widget(form.keyword) }}
<div class=\"input-group-append\">
{{ form_widget(form.submit) }}
</div>
</div>
{{ form_end(form) }}
<!-- End Search -->
<p class=\"form-text\">Saisissez un mot-clé pour effectuer une recherche parmi tous nos
articles.</p>
</div>
<!-- Sticky Block Start Point -->
<div id=\"stickyBlockStartPoint\"></div>
<div class=\"js-sticky-block\"
data-hs-sticky-block-options='{
\"parentSelector\": \"#stickyBlockStartPoint\",
\"targetSelector\": \"#header\",
\"breakpoint\": \"md\",
\"startPoint\": \"#stickyBlockStartPoint\",
\"endPoint\": \"#stickyBlockEndPoint\",
\"stickyOffsetTop\": 80
}'>
{% if randomPageByCategory is defined and randomPageByCategory is not empty %}
<div class=\"mb-7\">
<div class=\"mb-3\">
<h3>Notre sélection</h3>
</div>
<div class=\"d-grid gap-2\">
{% for post in randomPageByCategory %}
<!-- Card -->
<a class=\"d-block\" href=\"{{ path('blog_post_show', {'slug': post.slug}) }}\">
<div class=\"d-flex align-items-center\">
<div class=\"flex-shrink-0\">
<div class=\"avatar avatar-lg\">
<img class=\"avatar-img\"
src=\"{% if post.filename %} {{ vich_uploader_asset(post, 'imageFile') | imagine_filter('blog_post_small') }} {% endif %}\"
alt=\"{{ post.title }}\">
</div>
</div>
<div class=\"flex-grow-1 ms-3\">
<h5 class=\"text-inherit mb-0\">{{ post.title }}</h5>
</div>
</div>
</a>
<!-- End Card -->
{% endfor %}
</div>
</div>
{% endif %}
{% if featuredCategory is defined and featuredCategory is not empty %}
<div class=\"mb-7\">
<div class=\"mb-3\">
<h3>{{ featuredCategory.name }}</h3>
</div>
<!-- List Group -->
<ul class=\"list-group list-group-lg\">
{% for post in featuredLastedPostByCategory %}
<!-- Item -->
<li class=\"list-group-item\">
<a href=\"#\">
<div class=\"row align-items-center\">
<div class=\"col\">
<h5 class=\"mb-1\">{{ post.title }}</h5>
<p class=\"text-body small mb-0\">{{ post.createdAt|format_date('medium') }}</p>
</div>
<!-- End Col -->
<div class=\"col-auto\">
<i class=\"bi-chevron-right\"></i>
</div>
<!-- End Col -->
</div>
<!-- End Row -->
</a>
</li>
<!-- End Item -->
{% endfor %}
</ul>
<!-- End List Group -->
</div>
{% endif %}
</div>
</div>
<!-- End Col -->
</div>
<!-- End Row -->
</div>
<!-- End Card Grid -->
<!-- Hero -->
<div class=\"shape-container overflow-hidden\">
<div class=\"bg-dark\"
style=\"background-image: url({{ asset('build/front_v4/svg/components/wave-pattern-light.svg') }});\">
<div class=\"container content-space-1 content-space-t-md-3 content-space-b-md-4\">
<div class=\"position-relative w-lg-75 text-center mx-lg-auto\">
<div class=\"mb-7\">
<h1 class=\"fw-normal mb-4 font-size-md-down-1 text-white\">A propos du <span
class=\"text-warning fw-semibold\">blog</span></h1>
<p class=\"d-block d-inline lead text-white\">
<span class=\"text-warning\">Mon Centre Auditif</span> s’efforce à travers ce blog de vous
informer sur l’univers de l’audition.
Notre objectif est de rendre l’accès aux <strong>soins auditifs</strong> plus simple et
plus fluide pour les
personnes en recherche d’équipement. <br>
Du <strong>bilan auditif</strong> jusqu’à l’appareillage en passant par la prescription
médicale de l’ORL, nous allons
ensemble aborder les différents sujets qui entourent la perte auditive.<br><br>
Vous avez des questions ou des doutes sur votre santé auditive, n’hésitez pas à
consulter un
professionnel proche de chez vous. <br>
Nos différents rédacteurs vous apporteront un maximum d’informations vulgarisées sur les
solutions
auditives du marché, les mécanismes de remboursements, les dernières technologies et
l’actualité de
l’univers de l’audioprothèse.
</p>
</div>
<!-- End Row -->
</div>
</div>
</div>
<!-- Shape -->
<div class=\"shape shape-bottom zi-1\" style=\"margin-bottom: -.125rem\">
<svg xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 1920 100.1\">
<path fill=\"#fff\" d=\"M0,0c0,0,934.4,93.4,1920,0v100.1H0L0,0z\"></path>
</svg>
</div>
<!-- End Shape -->
</div>
<!-- End Hero -->
</main>
<!-- ========== END MAIN CONTENT ========== -->
{% endblock content %}
{% block javascripts %}
{{ encore_entry_script_tags('blog_list') }}
{% endblock javascripts %}
", "front_v4/mca/blog/list.html.twig", "/var/www/hearing_store_locator/templates/front_v4/mca/blog/list.html.twig");
}
}