var/cache/dev/twig/ef/ef40536e9071befe21bac46a627e37d6a961051140785d05c22b5cea9308e737.php line 33

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* front_v4/mca/blog/_blog_swiper.html.twig */
  14. class __TwigTemplate_fd7b113e7030e484fb4d73b22784f96e400a531069a34d7f228d5bd44dcf1333 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front_v4/mca/blog/_blog_swiper.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front_v4/mca/blog/_blog_swiper.html.twig"));
  33.         // line 1
  34.         echo "<!-- Hero -->
  35. <div class=\"position-relative\">
  36.     <!-- Swiper Main Slider -->
  37.     <div class=\"js-swiper-blog-journal-hero swiper\">
  38.         <div class=\"swiper-wrapper\">
  39.             ";
  40.         // line 6
  41.         $context['_parent'] = $context;
  42.         $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); })()));
  43.         foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
  44.             // line 7
  45.             echo "                <div class=\"swiper-slide d-flex gradient-x-overlay-sm-dark bg-img-start\"
  46.                      style=\"background-image: url(";
  47.             // line 8
  48.             if (twig_get_attribute($this->env$this->source$context["post"], "filename", [], "any"falsefalsefalse8)) {
  49.                 echo " ";
  50.                 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"nulltrue);
  51.                 echo " ";
  52.             }
  53.             echo "); min-height: 40rem;\">
  54.                     <!-- Container -->
  55.                     <div class=\"container d-flex align-items-center\" style=\"min-height: 40rem;\">
  56.                         <div class=\"w-lg-50 me-3\">
  57.                             <!-- Media -->
  58.                             <div class=\"d-flex align-items-center mb-3\">
  59.                                 <div class=\"flex-shrink-0\">
  60.                                     <div class=\"avatar avatar-circle\">
  61.                                         <img class=\"avatar-img\"
  62.                                              src=\"";
  63.             // line 17
  64.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "blogAuthor", [], "any"falsefalsefalse17), "filename", [], "any"falsefalsefalse17)) {
  65.                 echo " ";
  66.                 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"falsefalsefalse17), "imageFile"), "author_image_small"), "html"nulltrue);
  67.                 echo " ";
  68.             }
  69.             echo "\"
  70.                                              alt=\"";
  71.             // line 18
  72.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "blogAuthor", [], "any"falsefalsefalse18), "firstname", [], "any"falsefalsefalse18), "html"nulltrue);
  73.             echo "\">
  74.                                     </div>
  75.                                 </div>
  76.                                 <div class=\"flex-grow-1 ms-3\">
  77.                                     <a class=\"text-white\"
  78.                                        href=\"";
  79.             // line 24
  80.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_author_show", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "blogAuthor", [], "any"falsefalsefalse24), "id", [], "any"falsefalsefalse24)]), "html"nulltrue);
  81.             echo "\">";
  82.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "blogAuthor", [], "any"falsefalsefalse24), "firstname", [], "any"falsefalsefalse24), "html"nulltrue);
  83.             echo "</a>
  84.                                 </div>
  85.                             </div>
  86.                             <!-- End Media -->
  87.                             <div class=\"mb-5\">
  88.                                 <h2 class=\"h1 text-white\">";
  89.             // line 30
  90.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["post"], "title", [], "any"falsefalsefalse30), "html"nulltrue);
  91.             echo "</h2>
  92.                             </div>
  93.                             <a class=\"btn btn-primary btn-transition\"
  94.                                href=\"";
  95.             // line 34
  96.             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"falsefalsefalse34)]), "html"nulltrue);
  97.             echo "\">Lire l'article <i
  98.                                         class=\"bi-chevron-right small ms-1\"></i></a>
  99.                         </div>
  100.                     </div>
  101.                     <!-- End Container -->
  102.                 </div>
  103.             ";
  104.         }
  105.         $_parent $context['_parent'];
  106.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
  107.         $context array_intersect_key($context$_parent) + $_parent;
  108.         // line 41
  109.         echo "        </div>
  110.         <!-- Swiper Pagination -->
  111.         <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>
  112.     </div>
  113.     <!-- End Swiper Main Slider -->
  114.     <!-- Swiper Thumbs Slider -->
  115.     <div class=\"d-none d-lg-block container translate-middle-y position-absolute top-50 start-0 end-0 zi-2\">
  116.         <div class=\"translate-middle-y position-absolute top-50 end-0\">
  117.             <div class=\"js-swiper-blog-journal-hero-thumbs swiper\"
  118.                  style=\"opacity:0; max-width: 15rem;\">
  119.                 <div class=\"swiper-wrapper\">
  120.                     ";
  121.         // line 54
  122.         $context['_parent'] = $context;
  123.         $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); })()));
  124.         foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
  125.             // line 55
  126.             echo "                        <!-- Slide -->
  127.                         <div class=\"swiper-slide swiper-pagination-progress swiper-pagination-progress-light pb-4\">
  128.                             <p class=\"text-white\">";
  129.             // line 57
  130.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["post"], "title", [], "any"falsefalsefalse57), "html"nulltrue);
  131.             echo "</p>
  132.                             <div class=\"swiper-pagination-progress-body\">
  133.                                 <div class=\"js-swiper-pagination-progress-body-helper swiper-pagination-progress-body-helper\"></div>
  134.                             </div>
  135.                         </div>
  136.                         <!-- End Slide -->
  137.                     ";
  138.         }
  139.         $_parent $context['_parent'];
  140.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
  141.         $context array_intersect_key($context$_parent) + $_parent;
  142.         // line 65
  143.         echo "                </div>
  144.             </div>
  145.         </div>
  146.     </div>
  147.     <!-- End Swiper Thumbs Slider -->
  148. </div>
  149. <!-- End Hero -->
  150. ";
  151.         
  152.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  153.         
  154.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  155.     }
  156.     public function getTemplateName()
  157.     {
  158.         return "front_v4/mca/blog/_blog_swiper.html.twig";
  159.     }
  160.     public function isTraitable()
  161.     {
  162.         return false;
  163.     }
  164.     public function getDebugInfo()
  165.     {
  166.         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,);
  167.     }
  168.     public function getSourceContext()
  169.     {
  170.         return new Source("<!-- Hero -->
  171. <div class=\"position-relative\">
  172.     <!-- Swiper Main Slider -->
  173.     <div class=\"js-swiper-blog-journal-hero swiper\">
  174.         <div class=\"swiper-wrapper\">
  175.             {% for post in pillarPages %}
  176.                 <div class=\"swiper-slide d-flex gradient-x-overlay-sm-dark bg-img-start\"
  177.                      style=\"background-image: url({% if post.filename %} {{ vich_uploader_asset(post, 'imageFile') | imagine_filter('blog_post_main') }} {% endif %}); min-height: 40rem;\">
  178.                     <!-- Container -->
  179.                     <div class=\"container d-flex align-items-center\" style=\"min-height: 40rem;\">
  180.                         <div class=\"w-lg-50 me-3\">
  181.                             <!-- Media -->
  182.                             <div class=\"d-flex align-items-center mb-3\">
  183.                                 <div class=\"flex-shrink-0\">
  184.                                     <div class=\"avatar avatar-circle\">
  185.                                         <img class=\"avatar-img\"
  186.                                              src=\"{% if post.blogAuthor.filename %} {{ vich_uploader_asset(post.blogAuthor, 'imageFile') | imagine_filter('author_image_small') }} {% endif %}\"
  187.                                              alt=\"{{ post.blogAuthor.firstname }}\">
  188.                                     </div>
  189.                                 </div>
  190.                                 <div class=\"flex-grow-1 ms-3\">
  191.                                     <a class=\"text-white\"
  192.                                        href=\"{{ path('blog_author_show', {'id': post.blogAuthor.id}) }}\">{{ post.blogAuthor.firstname }}</a>
  193.                                 </div>
  194.                             </div>
  195.                             <!-- End Media -->
  196.                             <div class=\"mb-5\">
  197.                                 <h2 class=\"h1 text-white\">{{ post.title }}</h2>
  198.                             </div>
  199.                             <a class=\"btn btn-primary btn-transition\"
  200.                                href=\"{{ path('blog_post_show', {'slug': post.slug}) }}\">Lire l'article <i
  201.                                         class=\"bi-chevron-right small ms-1\"></i></a>
  202.                         </div>
  203.                     </div>
  204.                     <!-- End Container -->
  205.                 </div>
  206.             {% endfor %}
  207.         </div>
  208.         <!-- Swiper Pagination -->
  209.         <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>
  210.     </div>
  211.     <!-- End Swiper Main Slider -->
  212.     <!-- Swiper Thumbs Slider -->
  213.     <div class=\"d-none d-lg-block container translate-middle-y position-absolute top-50 start-0 end-0 zi-2\">
  214.         <div class=\"translate-middle-y position-absolute top-50 end-0\">
  215.             <div class=\"js-swiper-blog-journal-hero-thumbs swiper\"
  216.                  style=\"opacity:0; max-width: 15rem;\">
  217.                 <div class=\"swiper-wrapper\">
  218.                     {% for post in pillarPages %}
  219.                         <!-- Slide -->
  220.                         <div class=\"swiper-slide swiper-pagination-progress swiper-pagination-progress-light pb-4\">
  221.                             <p class=\"text-white\">{{ post.title }}</p>
  222.                             <div class=\"swiper-pagination-progress-body\">
  223.                                 <div class=\"js-swiper-pagination-progress-body-helper swiper-pagination-progress-body-helper\"></div>
  224.                             </div>
  225.                         </div>
  226.                         <!-- End Slide -->
  227.                     {% endfor %}
  228.                 </div>
  229.             </div>
  230.         </div>
  231.     </div>
  232.     <!-- End Swiper Thumbs Slider -->
  233. </div>
  234. <!-- End Hero -->
  235. ""front_v4/mca/blog/_blog_swiper.html.twig""/var/www/hearing_store_locator/templates/front_v4/mca/blog/_blog_swiper.html.twig");
  236.     }
  237. }