<?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/single.html.twig */
class __TwigTemplate_999a0cfdeaec26d660e5b96b63cea6cb285671cf07b88a116520df4594b46ecd 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'],
'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/single.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front_v4/mca/blog/single.html.twig"));
// line 11
$context["blogCategoryId"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 11, $this->source); })()), "blogCategory", [], "any", false, false, false, 11), "id", [], "any", false, false, false, 11);
// line 12
$context["isBlogCategoryThemeAudio"] = false;
// line 13
if (((((isset($context["blogCategoryId"]) || array_key_exists("blogCategoryId", $context) ? $context["blogCategoryId"] : (function () { throw new RuntimeError('Variable "blogCategoryId" does not exist.', 13, $this->source); })()) == 3) || ((isset($context["blogCategoryId"]) || array_key_exists("blogCategoryId", $context) ? $context["blogCategoryId"] : (function () { throw new RuntimeError('Variable "blogCategoryId" does not exist.', 13, $this->source); })()) == 4)) || ((isset($context["blogCategoryId"]) || array_key_exists("blogCategoryId", $context) ? $context["blogCategoryId"] : (function () { throw new RuntimeError('Variable "blogCategoryId" does not exist.', 13, $this->source); })()) == 5))) {
// line 14
$context["isBlogCategoryThemeAudio"] = true;
}
// line 1
$this->parent = $this->loadTemplate("front_v4/base.html.twig", "front_v4/mca/blog/single.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 twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 3, $this->source); })()), "metaTitle", [], "any", false, false, false, 3), "html", null, true);
$__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 twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 4, $this->source); })()), "metaDescription", [], "any", false, false, false, 4), "html", null, true);
$__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 " ";
$this->loadTemplate("/front_v4/mca/blog/_balise_schema_org.html.twig", "front_v4/mca/blog/single.html.twig", 7)->display(twig_array_merge($context, ["post" => (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 7, $this->source); })())]));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 18
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 19
echo " <main id=\"content\" role=\"main\">
<!-- Header Img BG -->
<div class=\"bg-img-center gradient-y-overlay-sm-gray-900\"
style=\"background-image: url(";
// line 22
if (twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 22, $this->source); })()), "filename", [], "any", false, false, false, 22)) {
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset((isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 22, $this->source); })()), "imageFile"), "blog_post_main"), "html", null, true);
echo " ";
}
echo ");\">
<div class=\"container content-space-2 content-space-lg-3\">
<div class=\"w-lg-30 text-center mx-lg-auto\">
<div class=\"mb-4\">
<h1 class=\"h4 display-4 text-white mb-3\">";
// line 26
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 26, $this->source); })()), "title", [], "any", false, false, false, 26), "html", null, true);
echo "</h1>
</div>
</div>
</div>
</div>
<!-- End Header Img BG -->
<!-- Content Article -->
<div class=\"row justify-content-end\">
<div class=\"col-lg-9 my-2 my-md-7 mb-md-0\">
<!-- Article Description -->
<div class=\"container-fluid content-space-t-1 content-space-b-lg-2\">
<div class=\"w-lg-85 mx-lg-auto\">
<div class=\"row align-items-sm-center mb-5\">
<div class=\"col-sm-7 mb-4 mb-sm-0\">
<!-- Media -->
<div class=\"d-flex align-items-center\">
<div class=\"flex-shrink-0\">
<img class=\"avatar avatar-circle\"
src=\"";
// line 44
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 44, $this->source); })()), "blogAuthor", [], "any", false, false, false, 44), "filename", [], "any", false, false, false, 44)) {
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, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 44, $this->source); })()), "blogAuthor", [], "any", false, false, false, 44), "imageFile"), "author_image_small"), "html", null, true);
echo " ";
}
echo "\"
alt=\"";
// line 45
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 45, $this->source); })()), "blogAuthor", [], "any", false, false, false, 45), "firstname", [], "any", false, false, false, 45), "html", null, true);
echo "\">
</div>
<div class=\"flex-grow-1 ms-3\">
<h5 class=\"mb-0\">
<a class=\"text-dark\"
href=\"";
// line 50
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_author_show", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 50, $this->source); })()), "blogAuthor", [], "any", false, false, false, 50), "id", [], "any", false, false, false, 50)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 50, $this->source); })()), "blogAuthor", [], "any", false, false, false, 50), "firstname", [], "any", false, false, false, 50), "html", null, true);
echo "</a>
</h5>
<span class=\"d-block small\">";
// line 52
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 52, $this->source); })()), "createdAt", [], "any", false, false, false, 52), "medium"), "html", null, true);
echo "</span>
</div>
</div>
<!-- End Media -->
</div>
<!-- End Col -->
</div>
<!-- End Row -->
</div>
<!-- Body Content Main -->
<div class=\"w-lg-85 mx-lg-auto\">
";
// line 64
echo twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 64, $this->source); })()), "body", [], "any", false, false, false, 64);
echo "
</div>
<!-- End Body Content Main -->
<!-- CTA -->
<div class=\"container py-5 mb-3\">
<div class=\"w-lg-75 mx-lg-auto\">
<div class=\"card card-sm overflow-hidden\">
<!-- Card -->
<div class=\"card-body\">
<div class=\"row justify-content-md-start align-items-md-center text-center text-md-start\">
<div class=\"col-md offset-md-3 mb-3 mb-md-0\">
<h4 class=\"card-title\">
";
// line 77
if ((isset($context["isBlogCategoryThemeAudio"]) || array_key_exists("isBlogCategoryThemeAudio", $context) ? $context["isBlogCategoryThemeAudio"] : (function () { throw new RuntimeError('Variable "isBlogCategoryThemeAudio" does not exist.', 77, $this->source); })())) {
// line 78
echo " Testez vos futurs appareils auditifs
";
} else {
// line 80
echo " Réalisez votre bilan auditif<sup class=\"text-sm\"> (1)</sup> gratuit
";
}
// line 82
echo " </h4>
</div>
<div class=\"col-md-auto\">
<a class=\"btn btn-warning btn-transition\" href=\"#bilan-test-gratuit\">Réservez un RDV</a>
</div>
</div>
<!-- SVG Shape -->
<figure class=\"w-25 d-none d-md-block position-absolute top-0 start-0 mt-n2\">
<svg viewBox=\"0 0 451 902\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
<path opacity=\"0.125\" d=\"M0 82C203.8 82 369 247.2 369 451C369 654.8 203.8 820 0 820\" stroke=\"url(#paint2_linear)\" stroke-width=\"164\" stroke-miterlimit=\"10\"/>
<defs>
<linearGradient id=\"paint2_linear\" x1=\"323.205\" y1=\"785.242\" x2=\"-97.6164\" y2=\"56.3589\" gradientUnits=\"userSpaceOnUse\">
<stop offset=\"0\" stop-color=\"white\" stop-opacity=\"0\"/>
<stop offset=\"1\" stop-color=\"#377dff\"/>
</linearGradient>
</defs>
</svg>
</figure>
<!-- End SVG Shape -->
</div>
<!-- End Card -->
</div>
</div>
</div>
<!-- End CTA -->
<!-- Body Content Second -->
<div class=\"w-lg-85 mx-lg-auto\">
";
// line 112
echo twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 112, $this->source); })()), "bodySecond", [], "any", false, false, false, 112);
echo "
</div>
<!-- End Body Content Second -->
<div class=\"w-lg-85 mx-lg-auto\">
<!-- Card -->
<div class=\"card bg-dark text-center my-4\"
style=\"background-image: url(";
// line 119
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=\"card-body\">
<h4 class=\"text-white\">Vous avez aimé cette article ?</h4>
<p class=\"text-white mb-4\">Suivez-nous sur <a class=\"link\"
href=\"https://www.facebook.com/MonCentreAuditif/\">Facebook</a>
et <a class=\"link\"
href=\"https://www.linkedin.com/company/auditif/\">Linkedin</a> pour rester
informé.
</p>
</div>
</div>
<!-- End Card -->
</div>
<!-- Sticky Block End Point -->
<div id=\"stickyBlockEndPoint\"></div>
</div>
<!-- End Article Description -->
</div>
<div class=\"col-lg-3 position-relative zi-2 my-3 my-md-7 mb-md-0 px-4\">
<!-- 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
}'>
<!-- CTA Card -->
<div class=\"card my-3 my-lg-5\">
<div class=\"p-1\">
<a href=\"";
// line 152
echo twig_escape_filter($this->env, ((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.', 152, $this->source); })()), "request", [], "any", false, false, false, 152), "schemeAndHttpHost", [], "any", false, false, false, 152) . "/") . twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 152, $this->source); })()), "ctaLinkPath", [], "any", false, false, false, 152)), "html", null, true);
echo "\">
<!-- Fancybox -->
<div class=\"bg-img-start text-center rounded-2 py-3 py-md-5 px-5 gradient-y-lg-white\"
style=\"background-image: url(";
// line 155
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/front_v4/svg/components/card-11.svg"), "html", null, true);
echo ");\">
<span class=\"d-flex justify-content-center align-items-center\"></span>
<span class=\"h3 text-primary\">
";
// line 158
if ((isset($context["isBlogCategoryThemeAudio"]) || array_key_exists("isBlogCategoryThemeAudio", $context) ? $context["isBlogCategoryThemeAudio"] : (function () { throw new RuntimeError('Variable "isBlogCategoryThemeAudio" does not exist.', 158, $this->source); })())) {
// line 159
echo " Testez vos futurs appareils auditifs
";
} else {
// line 161
echo " Réalisez votre bilan auditif<sup class=\"text-sm\"> (1)</sup>
";
}
// line 163
echo " </span>
<p class=\"h2 text-primary fw-bold py-2\">
100% gratuit
</p>
</div>
<!-- End Fancybox -->
</a>
</div>
<!-- Card Body -->
<div class=\"card-body\">
<div class=\"d-grid mb-2\">
<a class=\"btn btn-warning btn-transition\" href=\"#bilan-test-gratuit\">Réservez un RDV</a>
</div>
<div class=\"text-center\">
<p class=\"card-text small\">Un test sans engagement et non médical.</p>
</div>
</div>
<!-- End CTA Card Body -->
</div>
<!-- End Card -->
";
// line 184
if ((array_key_exists("relatedCategoryPosts", $context) && !twig_test_empty((isset($context["relatedCategoryPosts"]) || array_key_exists("relatedCategoryPosts", $context) ? $context["relatedCategoryPosts"] : (function () { throw new RuntimeError('Variable "relatedCategoryPosts" does not exist.', 184, $this->source); })())))) {
// line 185
echo " <div class=\"d-none d-lg-block my-5 my-lg-5\">
<div class=\"mb-3\">
<h3>Articles similaires :</h3>
</div>
<div class=\"d-grid gap-2\">
";
// line 191
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["relatedCategoryPosts"]) || array_key_exists("relatedCategoryPosts", $context) ? $context["relatedCategoryPosts"] : (function () { throw new RuntimeError('Variable "relatedCategoryPosts" does not exist.', 191, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
// line 192
echo " <!-- Card -->
<a class=\"d-block\" href=\"";
// line 193
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, 193)]), "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 198
if (twig_get_attribute($this->env, $this->source, $context["post"], "filename", [], "any", false, false, false, 198)) {
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 199
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "title", [], "any", false, false, false, 199), "html", null, true);
echo "\">
</div>
</div>
<div class=\"flex-grow-1 ms-3\">
<h5 class=\"text-inherit mb-0\">";
// line 203
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "title", [], "any", false, false, false, 203), "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 209
echo " </div>
</div>
";
}
// line 212
echo " </div>
<!-- End Sticky Block -->
</div>
</div>
<!-- Header Content Article -->
<div id=\"bilan-test-gratuit\" class=\"bg-dark\" style=\"background-image: url(";
// line 218
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=\"w-85 w-lg-65 w-xl-50 mx-auto py-5 py-lg-10\">
<div class=\"card\">
<div class=\"card-body\">
";
// line 222
if ((isset($context["isBlogCategoryThemeAudio"]) || array_key_exists("isBlogCategoryThemeAudio", $context) ? $context["isBlogCategoryThemeAudio"] : (function () { throw new RuntimeError('Variable "isBlogCategoryThemeAudio" does not exist.', 222, $this->source); })())) {
// line 223
echo " ";
$context["introText"] = "
<div class=\"mb-4\">
<p class=\"h2 text-primary fw-semibold text-center\">Testez gratuitement vos futurs appareils auditifs</h1>
<p class=\"lead text-center\" style=\"font-size: 1.125rem;\">
Sans engagement, 100% gratuit. Découvrez le confort d’une meilleure audition.
<br>
<strong>Complétez le formulaire</strong> ci-dessous pour réserver votre essai.
</p>
</div>
";
// line 233
echo " ";
} else {
// line 234
echo " ";
// line 235
echo " ";
$context["introText"] = "
<div class=\"mb-4\">
<p class=\"h2 text-primary text-center fw-semibold text-center\">Demandez votre bilan auditif<sup>(1)</sup> gratuit</h1>
<p class=\"lead text-center\" style=\"font-size: 1.125rem;\">
Un test non médical, 100% gratuit, pour évaluer votre audition près de chez vous.
<br>
<strong>Remplissez le formulaire</strong> ci-dessous pour en bénéficier.
</p>
</div>
";
// line 245
echo " ";
}
// line 246
echo "
";
// line 247
$this->loadTemplate("front_v4/mca/landing_page/form/_wrapper_form_lp_prospect.html.twig", "front_v4/mca/blog/single.html.twig", 247)->display($context);
// line 248
echo " </div>
</div>
</div>
</div>
<!-- Card Grid -->
<div class=\"container\">
<div class=\"border-top content-space-2 mx-lg-auto\">
<!-- Heading -->
<div class=\"mb-3 mb-sm-5\">
<h2>Notre sélection d'articles</h2>
</div>
<!-- End Heading -->
<div class=\"row\">
";
// line 262
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pilarPosts"]) || array_key_exists("pilarPosts", $context) ? $context["pilarPosts"] : (function () { throw new RuntimeError('Variable "pilarPosts" does not exist.', 262, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
// line 263
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 263) % 2 != 0)) {
// line 264
echo " <div class=\"col-sm-6 col-lg-4 mb-4\">
<a href=\"";
// line 265
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, 265)]), "html", null, true);
echo "\">
<!-- Card -->
<div class=\"card h-100\">
<div class=\"shape-container\">
<img class=\"card-img-top\"
src=\"";
// line 270
if (twig_get_attribute($this->env, $this->source, (isset($context["blogPost"]) || array_key_exists("blogPost", $context) ? $context["blogPost"] : (function () { throw new RuntimeError('Variable "blogPost" does not exist.', 270, $this->source); })()), "filename", [], "any", false, false, false, 270)) {
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_medium"), "html", null, true);
}
echo "\"
alt=\"";
// line 271
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "title", [], "any", false, false, false, 271), "html", null, true);
echo "\">
<!-- Shape -->
<div class=\"shape shape-bottom zi-1\" style=\"margin-bottom: -.25rem\">
<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>
<!-- Card Body -->
<div class=\"card-body p-3\">
<h4 class=\"card-title text-dark\">";
// line 285
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "title", [], "any", false, false, false, 285), "html", null, true);
echo "</h4>
<p class=\"card-text\">";
// line 286
echo twig_nl2br(twig_truncate_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, $context["post"], "body", [], "any", false, false, false, 286)), 80, true));
echo "</p>
</div>
<!-- End Card Body -->
<!-- Card Footer -->
<div class=\"card-footer\">
<div class=\"d-flex align-items-center justify-content-between\">
<span class=\"avatar avatar-circle\">
<img class=\"avatar-img\"
src=\"";
// line 295
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "blogAuthor", [], "any", false, false, false, 295), "filename", [], "any", false, false, false, 295)) {
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, 295), "imageFile"), "author_image_small"), "html", null, true);
echo " ";
}
echo "\"
alt=\"";
// line 296
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, 296), "firstname", [], "any", false, false, false, 296), "html", null, true);
echo "\">
</span>
<div class=\"flex-grow-1\">
<div class=\"d-flex justify-content-end\">
<p class=\"card-text\">";
// line 300
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, 300), "medium"), "html", null, true);
echo "</p>
</div>
</div>
</div>
</div>
<!-- End Card Footer -->
</div>
<!-- End Card -->
</a>
</div>
<!-- End Col -->
";
} else {
// line 312
echo " <div class=\"col-sm-6 col-lg-4 mb-4\">
<a href=\"";
// line 313
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, 313)]), "html", null, true);
echo "\">
<!-- Card -->
<div class=\"card bg-dark h-100\"
style=\"background-image: url(";
// line 316
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 ");\">
<!-- Card Body -->
<div class=\"card-body p-3 py-5\">
<div class=\"mb-5\">
<span class=\"badge bg-primary\">Sélection du mois</span>
</div>
<h3 class=\"card-title text-white\">";
// line 323
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "title", [], "any", false, false, false, 323), "html", null, true);
echo "</h3>
<p class=\"text-white-70\">";
// line 324
echo twig_nl2br(twig_truncate_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, $context["post"], "body", [], "any", false, false, false, 324)), 180, true));
echo "</p>
</div>
<!-- End Card Body -->
<!-- Card Footer -->
<div class=\"card-footer\">
<div class=\"d-flex align-items-center\">
<div class=\"flex-shrink-0\">
<div class=\"avatar avatar-circle\">
<img class=\"avatar-img\"
src=\"";
// line 334
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "blogAuthor", [], "any", false, false, false, 334), "filename", [], "any", false, false, false, 334)) {
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, 334), "imageFile"), "author_image_small"), "html", null, true);
echo " ";
}
echo "\"
alt=\"";
// line 335
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, 335), "firstname", [], "any", false, false, false, 335), "html", null, true);
echo "\">
</div>
</div>
<div class=\"flex-grow-1\">
<div class=\"d-flex justify-content-end\">
<p class=\"card-text text-white-70\">";
// line 341
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, 341), "medium"), "html", null, true);
echo "</p>
</div>
</div>
</div>
</div>
<!-- End Card Footer -->
</div>
<!-- End Card -->
</a>
</div>
<!-- End Col -->
";
}
// line 353
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 354
echo " </div>
<!-- End Row -->
</div>
<!-- End Card Grid -->
</div>
<!-- End Card Grid -->
</main>
<!-- ========== END MAIN CONTENT ========== -->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 364
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 365
echo " <script
src=\"https://code.jquery.com/jquery-3.7.1.min.js\"
integrity=\"sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=\"
crossorigin=\"anonymous\"></script>
";
// line 369
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("format_form_prospect");
echo "
";
// line 370
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("blog_single");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front_v4/mca/blog/single.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 712 => 370, 708 => 369, 702 => 365, 692 => 364, 674 => 354, 660 => 353, 645 => 341, 636 => 335, 628 => 334, 615 => 324, 611 => 323, 601 => 316, 595 => 313, 592 => 312, 577 => 300, 570 => 296, 562 => 295, 550 => 286, 546 => 285, 529 => 271, 523 => 270, 515 => 265, 512 => 264, 509 => 263, 492 => 262, 476 => 248, 474 => 247, 471 => 246, 468 => 245, 456 => 235, 454 => 234, 451 => 233, 439 => 223, 437 => 222, 430 => 218, 422 => 212, 417 => 209, 405 => 203, 398 => 199, 390 => 198, 382 => 193, 379 => 192, 375 => 191, 367 => 185, 365 => 184, 342 => 163, 338 => 161, 334 => 159, 332 => 158, 326 => 155, 320 => 152, 284 => 119, 274 => 112, 242 => 82, 238 => 80, 234 => 78, 232 => 77, 216 => 64, 201 => 52, 194 => 50, 186 => 45, 178 => 44, 157 => 26, 146 => 22, 141 => 19, 131 => 18, 120 => 7, 110 => 6, 91 => 4, 72 => 3, 61 => 1, 58 => 14, 56 => 13, 54 => 12, 52 => 11, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'front_v4/base.html.twig' %}
{% block meta_title %}{{ blogPost.metaTitle }}{% endblock meta_title %}
{% block meta_description %}{{ blogPost.metaDescription }}{% endblock meta_description %}
{% block meta_custom %}
{% include '/front_v4/mca/blog/_balise_schema_org.html.twig' with {'post': blogPost} %}
{% endblock meta_custom %}
{# Add custom text (CTA + form) depend on theme of blogCategory #}
{% set blogCategoryId = blogPost.blogCategory.id %}
{% set isBlogCategoryThemeAudio = false %}
{% if blogCategoryId == 3 or blogCategoryId == 4 or blogCategoryId == 5 %}
{% set isBlogCategoryThemeAudio = true %}
{% endif %}
{% block content %}
<main id=\"content\" role=\"main\">
<!-- Header Img BG -->
<div class=\"bg-img-center gradient-y-overlay-sm-gray-900\"
style=\"background-image: url({% if blogPost.filename %} {{ vich_uploader_asset(blogPost, 'imageFile') | imagine_filter('blog_post_main') }} {% endif %});\">
<div class=\"container content-space-2 content-space-lg-3\">
<div class=\"w-lg-30 text-center mx-lg-auto\">
<div class=\"mb-4\">
<h1 class=\"h4 display-4 text-white mb-3\">{{ blogPost.title }}</h1>
</div>
</div>
</div>
</div>
<!-- End Header Img BG -->
<!-- Content Article -->
<div class=\"row justify-content-end\">
<div class=\"col-lg-9 my-2 my-md-7 mb-md-0\">
<!-- Article Description -->
<div class=\"container-fluid content-space-t-1 content-space-b-lg-2\">
<div class=\"w-lg-85 mx-lg-auto\">
<div class=\"row align-items-sm-center mb-5\">
<div class=\"col-sm-7 mb-4 mb-sm-0\">
<!-- Media -->
<div class=\"d-flex align-items-center\">
<div class=\"flex-shrink-0\">
<img class=\"avatar avatar-circle\"
src=\"{% if blogPost.blogAuthor.filename %} {{ vich_uploader_asset(blogPost.blogAuthor, 'imageFile') | imagine_filter('author_image_small') }} {% endif %}\"
alt=\"{{ blogPost.blogAuthor.firstname }}\">
</div>
<div class=\"flex-grow-1 ms-3\">
<h5 class=\"mb-0\">
<a class=\"text-dark\"
href=\"{{ path('blog_author_show', {'id': blogPost.blogAuthor.id }) }}\">{{ blogPost.blogAuthor.firstname }}</a>
</h5>
<span class=\"d-block small\">{{ blogPost.createdAt|format_date('medium') }}</span>
</div>
</div>
<!-- End Media -->
</div>
<!-- End Col -->
</div>
<!-- End Row -->
</div>
<!-- Body Content Main -->
<div class=\"w-lg-85 mx-lg-auto\">
{{ blogPost.body|raw() }}
</div>
<!-- End Body Content Main -->
<!-- CTA -->
<div class=\"container py-5 mb-3\">
<div class=\"w-lg-75 mx-lg-auto\">
<div class=\"card card-sm overflow-hidden\">
<!-- Card -->
<div class=\"card-body\">
<div class=\"row justify-content-md-start align-items-md-center text-center text-md-start\">
<div class=\"col-md offset-md-3 mb-3 mb-md-0\">
<h4 class=\"card-title\">
{% if isBlogCategoryThemeAudio %}
Testez vos futurs appareils auditifs
{% else %}
Réalisez votre bilan auditif<sup class=\"text-sm\"> (1)</sup> gratuit
{% endif %}
</h4>
</div>
<div class=\"col-md-auto\">
<a class=\"btn btn-warning btn-transition\" href=\"#bilan-test-gratuit\">Réservez un RDV</a>
</div>
</div>
<!-- SVG Shape -->
<figure class=\"w-25 d-none d-md-block position-absolute top-0 start-0 mt-n2\">
<svg viewBox=\"0 0 451 902\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
<path opacity=\"0.125\" d=\"M0 82C203.8 82 369 247.2 369 451C369 654.8 203.8 820 0 820\" stroke=\"url(#paint2_linear)\" stroke-width=\"164\" stroke-miterlimit=\"10\"/>
<defs>
<linearGradient id=\"paint2_linear\" x1=\"323.205\" y1=\"785.242\" x2=\"-97.6164\" y2=\"56.3589\" gradientUnits=\"userSpaceOnUse\">
<stop offset=\"0\" stop-color=\"white\" stop-opacity=\"0\"/>
<stop offset=\"1\" stop-color=\"#377dff\"/>
</linearGradient>
</defs>
</svg>
</figure>
<!-- End SVG Shape -->
</div>
<!-- End Card -->
</div>
</div>
</div>
<!-- End CTA -->
<!-- Body Content Second -->
<div class=\"w-lg-85 mx-lg-auto\">
{{ blogPost.bodySecond|raw() }}
</div>
<!-- End Body Content Second -->
<div class=\"w-lg-85 mx-lg-auto\">
<!-- Card -->
<div class=\"card bg-dark text-center my-4\"
style=\"background-image: url({{ asset('build/front_v4/svg/components/wave-pattern-light.svg') }});\">
<div class=\"card-body\">
<h4 class=\"text-white\">Vous avez aimé cette article ?</h4>
<p class=\"text-white mb-4\">Suivez-nous sur <a class=\"link\"
href=\"https://www.facebook.com/MonCentreAuditif/\">Facebook</a>
et <a class=\"link\"
href=\"https://www.linkedin.com/company/auditif/\">Linkedin</a> pour rester
informé.
</p>
</div>
</div>
<!-- End Card -->
</div>
<!-- Sticky Block End Point -->
<div id=\"stickyBlockEndPoint\"></div>
</div>
<!-- End Article Description -->
</div>
<div class=\"col-lg-3 position-relative zi-2 my-3 my-md-7 mb-md-0 px-4\">
<!-- 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
}'>
<!-- CTA Card -->
<div class=\"card my-3 my-lg-5\">
<div class=\"p-1\">
<a href=\"{{ app.request.schemeAndHttpHost ~ '/' ~ blogPost.ctaLinkPath }}\">
<!-- Fancybox -->
<div class=\"bg-img-start text-center rounded-2 py-3 py-md-5 px-5 gradient-y-lg-white\"
style=\"background-image: url({{ asset('build/front_v4/svg/components/card-11.svg') }});\">
<span class=\"d-flex justify-content-center align-items-center\"></span>
<span class=\"h3 text-primary\">
{% if isBlogCategoryThemeAudio %}
Testez vos futurs appareils auditifs
{% else %}
Réalisez votre bilan auditif<sup class=\"text-sm\"> (1)</sup>
{% endif %}
</span>
<p class=\"h2 text-primary fw-bold py-2\">
100% gratuit
</p>
</div>
<!-- End Fancybox -->
</a>
</div>
<!-- Card Body -->
<div class=\"card-body\">
<div class=\"d-grid mb-2\">
<a class=\"btn btn-warning btn-transition\" href=\"#bilan-test-gratuit\">Réservez un RDV</a>
</div>
<div class=\"text-center\">
<p class=\"card-text small\">Un test sans engagement et non médical.</p>
</div>
</div>
<!-- End CTA Card Body -->
</div>
<!-- End Card -->
{% if relatedCategoryPosts is defined and relatedCategoryPosts is not empty %}
<div class=\"d-none d-lg-block my-5 my-lg-5\">
<div class=\"mb-3\">
<h3>Articles similaires :</h3>
</div>
<div class=\"d-grid gap-2\">
{% for post in relatedCategoryPosts %}
<!-- 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 %}
</div>
<!-- End Sticky Block -->
</div>
</div>
<!-- Header Content Article -->
<div id=\"bilan-test-gratuit\" class=\"bg-dark\" style=\"background-image: url({{ asset('build/front_v4/svg/components/wave-pattern-light.svg') }});\">
<div class=\"w-85 w-lg-65 w-xl-50 mx-auto py-5 py-lg-10\">
<div class=\"card\">
<div class=\"card-body\">
{% if isBlogCategoryThemeAudio %}
{% set introText = '
<div class=\"mb-4\">
<p class=\"h2 text-primary fw-semibold text-center\">Testez gratuitement vos futurs appareils auditifs</h1>
<p class=\"lead text-center\" style=\"font-size: 1.125rem;\">
Sans engagement, 100% gratuit. Découvrez le confort d’une meilleure audition.
<br>
<strong>Complétez le formulaire</strong> ci-dessous pour réserver votre essai.
</p>
</div>
' %}
{% else %}
{# respect SEO hn title and add text-center #}
{% set introText = '
<div class=\"mb-4\">
<p class=\"h2 text-primary text-center fw-semibold text-center\">Demandez votre bilan auditif<sup>(1)</sup> gratuit</h1>
<p class=\"lead text-center\" style=\"font-size: 1.125rem;\">
Un test non médical, 100% gratuit, pour évaluer votre audition près de chez vous.
<br>
<strong>Remplissez le formulaire</strong> ci-dessous pour en bénéficier.
</p>
</div>
' %}
{% endif %}
{% include 'front_v4/mca/landing_page/form/_wrapper_form_lp_prospect.html.twig' %}
</div>
</div>
</div>
</div>
<!-- Card Grid -->
<div class=\"container\">
<div class=\"border-top content-space-2 mx-lg-auto\">
<!-- Heading -->
<div class=\"mb-3 mb-sm-5\">
<h2>Notre sélection d'articles</h2>
</div>
<!-- End Heading -->
<div class=\"row\">
{% for post in pilarPosts %}
{% if loop.index is odd %}
<div class=\"col-sm-6 col-lg-4 mb-4\">
<a href=\"{{ path('blog_post_show', {'slug': post.slug}) }}\">
<!-- Card -->
<div class=\"card h-100\">
<div class=\"shape-container\">
<img class=\"card-img-top\"
src=\"{% if blogPost.filename %}{{ vich_uploader_asset(post, 'imageFile') | imagine_filter('blog_post_medium') }}{% endif %}\"
alt=\"{{ post.title }}\">
<!-- Shape -->
<div class=\"shape shape-bottom zi-1\" style=\"margin-bottom: -.25rem\">
<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>
<!-- Card Body -->
<div class=\"card-body p-3\">
<h4 class=\"card-title text-dark\">{{ post.title }}</h4>
<p class=\"card-text\">{{ post.body|striptags|truncate(80, true)|raw|nl2br }}</p>
</div>
<!-- End Card Body -->
<!-- Card Footer -->
<div class=\"card-footer\">
<div class=\"d-flex align-items-center justify-content-between\">
<span 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 }}\">
</span>
<div class=\"flex-grow-1\">
<div class=\"d-flex justify-content-end\">
<p class=\"card-text\">{{ post.createdAt|format_date('medium') }}</p>
</div>
</div>
</div>
</div>
<!-- End Card Footer -->
</div>
<!-- End Card -->
</a>
</div>
<!-- End Col -->
{% else %}
<div class=\"col-sm-6 col-lg-4 mb-4\">
<a href=\"{{ path('blog_post_show', {'slug': post.slug}) }}\">
<!-- Card -->
<div class=\"card bg-dark h-100\"
style=\"background-image: url({{ asset('build/front_v4/svg/components/wave-pattern-light.svg') }});\">
<!-- Card Body -->
<div class=\"card-body p-3 py-5\">
<div class=\"mb-5\">
<span class=\"badge bg-primary\">Sélection du mois</span>
</div>
<h3 class=\"card-title text-white\">{{ post.title }}</h3>
<p class=\"text-white-70\">{{ post.body|striptags|truncate(180, true)|raw|nl2br }}</p>
</div>
<!-- End Card Body -->
<!-- Card Footer -->
<div class=\"card-footer\">
<div class=\"d-flex align-items-center\">
<div class=\"flex-shrink-0\">
<div 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 }}\">
</div>
</div>
<div class=\"flex-grow-1\">
<div class=\"d-flex justify-content-end\">
<p class=\"card-text text-white-70\">{{ post.createdAt|format_date('medium') }}</p>
</div>
</div>
</div>
</div>
<!-- End Card Footer -->
</div>
<!-- End Card -->
</a>
</div>
<!-- End Col -->
{% endif %}
{% endfor %}
</div>
<!-- End Row -->
</div>
<!-- End Card Grid -->
</div>
<!-- End Card Grid -->
</main>
<!-- ========== END MAIN CONTENT ========== -->
{% endblock content %}
{% block javascripts %}
<script
src=\"https://code.jquery.com/jquery-3.7.1.min.js\"
integrity=\"sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=\"
crossorigin=\"anonymous\"></script>
{{ encore_entry_script_tags('format_form_prospect') }}
{{ encore_entry_script_tags('blog_single') }}
{% endblock javascripts %}
", "front_v4/mca/blog/single.html.twig", "/var/www/hearing_store_locator/templates/front_v4/mca/blog/single.html.twig");
}
}