<?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/_blog_swiper.html.twig */
class __TwigTemplate_fd7b113e7030e484fb4d73b22784f96e400a531069a34d7f228d5bd44dcf1333 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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/_blog_swiper.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/_blog_swiper.html.twig"));
// line 1
echo "<!-- Hero -->
<div class=\"position-relative\">
<!-- Swiper Main Slider -->
<div class=\"js-swiper-blog-journal-hero swiper\">
<div class=\"swiper-wrapper\">
";
// line 6
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pillarPages"]) || array_key_exists("pillarPages", $context) ? $context["pillarPages"] : (function () { throw new RuntimeError('Variable "pillarPages" does not exist.', 6, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
// line 7
echo " <div class=\"swiper-slide d-flex gradient-x-overlay-sm-dark bg-img-start\"
style=\"background-image: url(";
// line 8
if (twig_get_attribute($this->env, $this->source, $context["post"], "filename", [], "any", false, false, false, 8)) {
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_main"), "html", null, true);
echo " ";
}
echo "); min-height: 40rem;\">
<!-- Container -->
<div class=\"container d-flex align-items-center\" style=\"min-height: 40rem;\">
<div class=\"w-lg-50 me-3\">
<!-- Media -->
<div class=\"d-flex align-items-center mb-3\">
<div class=\"flex-shrink-0\">
<div class=\"avatar avatar-circle\">
<img class=\"avatar-img\"
src=\"";
// line 17
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "blogAuthor", [], "any", false, false, false, 17), "filename", [], "any", false, false, false, 17)) {
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, 17), "imageFile"), "author_image_small"), "html", null, true);
echo " ";
}
echo "\"
alt=\"";
// line 18
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, 18), "firstname", [], "any", false, false, false, 18), "html", null, true);
echo "\">
</div>
</div>
<div class=\"flex-grow-1 ms-3\">
<a class=\"text-white\"
href=\"";
// line 24
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, $context["post"], "blogAuthor", [], "any", false, false, false, 24), "id", [], "any", false, false, false, 24)]), "html", null, true);
echo "\">";
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, 24), "firstname", [], "any", false, false, false, 24), "html", null, true);
echo "</a>
</div>
</div>
<!-- End Media -->
<div class=\"mb-5\">
<h2 class=\"h1 text-white\">";
// line 30
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "title", [], "any", false, false, false, 30), "html", null, true);
echo "</h2>
</div>
<a class=\"btn btn-primary btn-transition\"
href=\"";
// line 34
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, 34)]), "html", null, true);
echo "\">Lire l'article <i
class=\"bi-chevron-right small ms-1\"></i></a>
</div>
</div>
<!-- End Container -->
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo " </div>
<!-- Swiper Pagination -->
<div class=\"js-swiper-blog-journal-hero-pagination swiper-pagination swiper-pagination-light swiper-pagination-vertical swiper-pagination-middle-y-end me-3 d-lg-none\"></div>
</div>
<!-- End Swiper Main Slider -->
<!-- Swiper Thumbs Slider -->
<div class=\"d-none d-lg-block container translate-middle-y position-absolute top-50 start-0 end-0 zi-2\">
<div class=\"translate-middle-y position-absolute top-50 end-0\">
<div class=\"js-swiper-blog-journal-hero-thumbs swiper\"
style=\"opacity:0; max-width: 15rem;\">
<div class=\"swiper-wrapper\">
";
// line 54
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pillarPages"]) || array_key_exists("pillarPages", $context) ? $context["pillarPages"] : (function () { throw new RuntimeError('Variable "pillarPages" does not exist.', 54, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
// line 55
echo " <!-- Slide -->
<div class=\"swiper-slide swiper-pagination-progress swiper-pagination-progress-light pb-4\">
<p class=\"text-white\">";
// line 57
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "title", [], "any", false, false, false, 57), "html", null, true);
echo "</p>
<div class=\"swiper-pagination-progress-body\">
<div class=\"js-swiper-pagination-progress-body-helper swiper-pagination-progress-body-helper\"></div>
</div>
</div>
<!-- End Slide -->
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 65
echo " </div>
</div>
</div>
</div>
<!-- End Swiper Thumbs Slider -->
</div>
<!-- End Hero -->
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "front_v4/mca/blog/_blog_swiper.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 158 => 65, 144 => 57, 140 => 55, 136 => 54, 121 => 41, 108 => 34, 101 => 30, 90 => 24, 81 => 18, 73 => 17, 57 => 8, 54 => 7, 50 => 6, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<!-- Hero -->
<div class=\"position-relative\">
<!-- Swiper Main Slider -->
<div class=\"js-swiper-blog-journal-hero swiper\">
<div class=\"swiper-wrapper\">
{% for post in pillarPages %}
<div class=\"swiper-slide d-flex gradient-x-overlay-sm-dark bg-img-start\"
style=\"background-image: url({% if post.filename %} {{ vich_uploader_asset(post, 'imageFile') | imagine_filter('blog_post_main') }} {% endif %}); min-height: 40rem;\">
<!-- Container -->
<div class=\"container d-flex align-items-center\" style=\"min-height: 40rem;\">
<div class=\"w-lg-50 me-3\">
<!-- Media -->
<div class=\"d-flex align-items-center mb-3\">
<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 ms-3\">
<a class=\"text-white\"
href=\"{{ path('blog_author_show', {'id': post.blogAuthor.id}) }}\">{{ post.blogAuthor.firstname }}</a>
</div>
</div>
<!-- End Media -->
<div class=\"mb-5\">
<h2 class=\"h1 text-white\">{{ post.title }}</h2>
</div>
<a class=\"btn btn-primary btn-transition\"
href=\"{{ path('blog_post_show', {'slug': post.slug}) }}\">Lire l'article <i
class=\"bi-chevron-right small ms-1\"></i></a>
</div>
</div>
<!-- End Container -->
</div>
{% endfor %}
</div>
<!-- Swiper Pagination -->
<div class=\"js-swiper-blog-journal-hero-pagination swiper-pagination swiper-pagination-light swiper-pagination-vertical swiper-pagination-middle-y-end me-3 d-lg-none\"></div>
</div>
<!-- End Swiper Main Slider -->
<!-- Swiper Thumbs Slider -->
<div class=\"d-none d-lg-block container translate-middle-y position-absolute top-50 start-0 end-0 zi-2\">
<div class=\"translate-middle-y position-absolute top-50 end-0\">
<div class=\"js-swiper-blog-journal-hero-thumbs swiper\"
style=\"opacity:0; max-width: 15rem;\">
<div class=\"swiper-wrapper\">
{% for post in pillarPages %}
<!-- Slide -->
<div class=\"swiper-slide swiper-pagination-progress swiper-pagination-progress-light pb-4\">
<p class=\"text-white\">{{ post.title }}</p>
<div class=\"swiper-pagination-progress-body\">
<div class=\"js-swiper-pagination-progress-body-helper swiper-pagination-progress-body-helper\"></div>
</div>
</div>
<!-- End Slide -->
{% endfor %}
</div>
</div>
</div>
</div>
<!-- End Swiper Thumbs Slider -->
</div>
<!-- End Hero -->
", "front_v4/mca/blog/_blog_swiper.html.twig", "/var/www/hearing_store_locator/templates/front_v4/mca/blog/_blog_swiper.html.twig");
}
}