templates/front/front_home/index.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/layouts_front/base_front.html.twig' %}
  2. {% set cmptBack = 0 %}
  3. {% set cmptRef = 0 %}
  4. {% set cmptAncre = 0 %}
  5. {% set title = accRef.accRefTitle %}
  6. {% set description = accRef.accRefDescription %}
  7. {% set keywords = accRef.accRefKeyword %}
  8. {% set now =  "now"|date("m/d/Y") %}
  9. {% block stylesheets %}
  10.     <link href="https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/css/splide.min.css" rel="stylesheet">
  11.     <link rel="stylesheet preload" as="style" media="screen"
  12.           href="{{ asset('css/home.css', twigNameSpace) }}">
  13. {% endblock %}
  14. {% block javascripts %}
  15.     <script src="https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/js/splide.min.js"></script>
  16.     <script type="text/javascript">
  17.         /* curator-feed-default-feed-layout */
  18.         (function () {
  19.             var i, e, d = document, s = "script";
  20.             i = d.createElement("script");
  21.             i.async = 1;
  22.             i.charset = "UTF-8";
  23.             i.src = "https://cdn.curator.io/published/cb0b86a2-ec0a-44a4-9cd2-7d709d7a2edc.js";
  24.             e = d.getElementsByTagName(s)[0];
  25.             e.parentNode.insertBefore(i, e);
  26.         })();
  27.     </script>
  28.     <script>
  29.         document.addEventListener('DOMContentLoaded', function () {
  30.             var splide = new Splide('.splide', {
  31.                 classes: {
  32.                     customActive: 'boutonActive',
  33.                 },
  34.                 drag: false,
  35.             });
  36.             splide.on('pagination:mounted', function (data) {
  37.                 // `items` contains all dot items
  38.                 data.items.forEach(function (item) {
  39.                     item.button.classList.add('pagination');
  40.                 });
  41.             });
  42.             splide.mount();
  43.         });
  44.         $(document).ready(function () {
  45.             $('.splide__pagination li').addClass("liSlidejs");
  46.             var i = 0;
  47.             if (i < 1) {
  48.                 $('.liSlidejs').each(function () {
  49.                     if ($(this).find("button").hasClass("is-active")) {
  50.                         $(this).addClass('boutonActive');
  51.                         i++;
  52.                     }
  53.                 })
  54.             }
  55.             $(".liSlidejs").on("click", function () {
  56.                 if (!$(this).hasClass("is-active")) {
  57.                     $('.liSlidejs').each(function () {
  58.                         $(this).removeClass('boutonActive')
  59.                     });
  60.                     $(this).addClass('boutonActive');
  61.                     $(this).find("button").click();
  62.                 }
  63.             });
  64.         });
  65.     </script>
  66.     {# DOC DU SLIDER   https://swiperjs.com/demos#autoplay #}
  67.     <script>
  68.         var swiper = new Swiper(".mySwiper", {
  69.             slidesPerView: 1,
  70.             centeredSlides: true,
  71.             centeredSlidesBounds: true,
  72.             cssMode: false,
  73.             cssAnimations: true,
  74.             sliderMove: false,
  75.             loop: true,
  76.             autoplay: {
  77.                 delay: 250000,
  78.                 disableOnInteraction: false,
  79.             },
  80.             spaceBetween: 0,
  81.             navigation: {
  82.                 nextEl: ".swiper-button-next",
  83.                 prevEl: ".swiper-button-prev",
  84.             },
  85.             pagination: {
  86.                 el: ".swiper-pagination",
  87.             },
  88.             mousewheel: false,
  89.             keyboard: true,
  90.             breakpoints: {
  91.                 1: {
  92.                     slidesPerView: 1,
  93.                     spaceBetween: 0,
  94.                 },
  95.                 1500: {
  96.                     slidesPerView: 1,
  97.                     spaceBetween: 0,
  98.                 },
  99.                 1720: {
  100.                     slidesPerView: 3,
  101.                     spaceBetween: 0,
  102.                 },
  103.             },
  104.         });
  105.     </script>
  106. {% endblock %}
  107. {% block content %}
  108.     {# -------------------------
  109.      -- AUTOPROMO 1 -> VIDEO --
  110.      ------------------------ -#}
  111.     {% if tabPromoZone1 | length > 0 %}
  112.         {% include 'front/front_home/autopromo_zone.html.twig' with {'tabPromoZone': tabPromoZone1, 'iDtabPromoZone': 'tabPromoZone1', 'size': 'full'} %}
  113.     {% else %}
  114.         <section data-bs-version="5.1"
  115.                  class="slider1 directm4_slider1 cid-sYsP7EgLKR justify-content-center he-100"
  116.                  id="slider1-1v-tabPromoZone1">
  117.             <div class="container-fluid">
  118.                 <div class="carousel slide carousel-fade" id="sYIUsJIk6l-tabPromoZone1" data-ride="carousel"
  119.                      data-bs-ride="carousel">
  120.                     <div id="bigtitle"
  121.                          class="animate__animated animate__delay-1s animate__fadeInUp">
  122.                         <h2 class="noFadeInUp">UNE QUESTION ?<br><a
  123.                                     href="tel:0562925160"><span>05 62 92 51 60</span></a></h2>
  124.                         <a href="{{ websiteroot }}/page/nous-contacter">
  125.                             <div class="rappeler"></div>
  126.                         </a>
  127.                     </div>
  128.                     <div class="carousel-inner">
  129.                         <div class="carousel-item slider-image item opacity-1">
  130.                             <div id="videoCont">
  131.                                 <div class="item-wrapper" id="flouMontagne">
  132.                                     <video data-autoplay autoplay="autoplay" loop poster="" class="videoAbs Montagne"
  133.                                            muted>
  134.                                         <source src="{{ websiteroot }}{{ asset('/medias_front/video_accueil/LOOP-16-9.webm') }}"
  135.                                                 type="video/webm">
  136.                                         <source src="{{ websiteroot }}{{ asset('/medias_front/video_accueil/LOOP-16-9.mp4') }}"
  137.                                                 type="video/mp4">
  138.                                     </video>
  139.                                     <div class="Montagne"></div>
  140.                                     <div id="centerbig"
  141.                                          class="h-100 carousel-caption justify-content-start align-items-end flex-column mt-10 visible">
  142.                                         <a href="{{ url('front_cures') }}">
  143.                                             <button>je commence ma réservation</button>
  144.                                         </a>
  145.                                     </div>
  146.                                 </div>
  147.                             </div>
  148.                         </div>
  149.                     </div>
  150.                 </div>
  151.             </div>
  152.         </section>
  153.     {% endif %}
  154.     {#- ------------------------
  155.     -- AUTOPROMO 2 & 3 --
  156.     ------------------------ -#}
  157.     {% if tabPromoZone2 | length > 0 %}
  158.         {% include 'front/front_home/autopromo_zone.html.twig' with {'tabPromoZone': tabPromoZone2, 'iDtabPromoZone': 'tabPromoZone2', 'size': '12'} %}
  159.     {% endif %}
  160.     {% if actualites|length >0 %}
  161.         <section id="actus" class="sliderProd">
  162.             <article>
  163.                 <div class="contSlider flexCenter flexMiddle flexNoWrap">
  164.                     <div class="slider flex-row flex-wrap flexTop flexcolmob">
  165.                         {% for actu in actualites %}
  166.                             {% set cmptRef = cmptRef + 1 %}
  167.                             {% set mediaTmp = actu.media_fichier %}
  168.                             {% set mediaDefault = "default.png" %}
  169.                             {% set mediaTmp = webp(webpSupported, mediaTmp) %}
  170.                             {% set mediaDefault = webp(webpSupported, mediaDefault) %}
  171.                             {% set cmptBack = cmptBack+1 %}
  172.                             <a class="petiteActus d-flex align-items-center justify-content-center flex-column"
  173.                                href="{{ path('front_news_card', {id:actu.id}) }}" style="" title="{{ actu.act_titre }}"
  174.                                itemscope itemtype="http://schema.org/BlogPosting" itemref="author_box review_box">
  175.                                 <img id="imgcentre" class="noFadeInUp"
  176.                                      src="{{ asset('/medias_front/actualite/' ~ mediaTmp|default(mediaDefault)) | imagine_filter('front_actu_accueil') }}"
  177.                                      alt="{{ actu.act_titre }}">
  178.                                 <span class="bgActusHome">
  179.                                     <p itemprop="name">{{ actu.act_titre }}</p>
  180.                                     <span class="date"><time itemprop="datePublished"
  181.                                                              datetime="{{ actu.act_date_publication|date("Y-m-d") }}">{{ actu.act_date_publication|date("d-m-Y") }}</time></span>
  182.                                 </span>
  183.                             </a>
  184.                         {% endfor %}
  185.                     </div>
  186.                     <a href="{{ path('front_news') }}">
  187.                         <div class="d-flex justify-content-center align-items-center titreSlider">
  188.                             <h3>Voir toutes les actualités</h3>
  189.                         </div>
  190.                     </a>
  191.                     {#                <div class="etPlus"> #}
  192.                     {#                    <div class="containerNewsletter"> #}
  193.                     {#                        <iframe class="mj-w-res-iframe" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" #}
  194.                     {#                                src="https://app.mailjet.com/widget/iframe/6bd3/KhL" width="100%"></iframe> #}
  195.                     {#                    </div> #}
  196.                     {#                </div> #}
  197.                 </div>
  198.                 <div class="catatitle d-flex flex-column justify-content-center align-items-center ">
  199.                     <h3>NOS <b>CURES THERMALES</b></h3>
  200.                     <img class="noFadeInUp" src="{{ websiteroot }}{{ asset('/medias_front/common/logoSolo.svg') }}"
  201.                          alt="trait de peinture">
  202.                 </div>
  203.             </article>
  204.         </section>
  205.     {% endif %}
  206.     {#- ------------------------
  207.     ------ Bloc Slider ---------
  208.     ------------------------ -#}
  209.     <div class="catalogue pb-5" id="down">
  210.         <div class="articleloc d-flex flex-column justify-content-center align-items-center">
  211.             <div class="swiper mySwiper">
  212.                 <div class="swiper-wrapper">
  213.                     {% for autopromo in tabPromoZone3 %}
  214.                         {% set mediaTmp = autopromo.image %}
  215.                         {% set mediaTmp = webp(webpSupported, autopromo.image) %}
  216.                         <div class="swiper-slide">
  217.                             <div class="art">
  218.                                 <a href="{{ autopromo.url }}"
  219.                                    {% if autopromo.isBlank == true %}target="_blank"{% endif %}>
  220.                                     <div class="imgdesc">
  221.                                         <img id="imgcentre" class="noFadeInUp"
  222.                                              src="{{ asset('/medias_front/autopromo/' ~ mediaTmp) | imagine_filter('front_autopromo3') }}"
  223.                                              alt="{{ autopromo.imageAlt }}">
  224.                                         <div class="d-flex justify-content-center">
  225.                                             <div class="rondSlider"></div>
  226.                                         </div>
  227.                                     </div>
  228.                                 </a>
  229.                                 <div class="priceloc d-flex justify-content-center align-center">
  230.                                     <a class="d-flex justify-content-center"
  231.                                        href="{{ autopromo.url }}">
  232.                                         <h4 class="noFadeInUp text-center">{{ autopromo.title }}</h4>
  233.                                     </a>
  234.                                 </div>
  235.                             </div>
  236.                         </div>
  237.                     {% endfor %}
  238.                 </div>
  239.             </div>
  240.         </div>
  241.         <div class="swiper-button-next"></div>
  242.         <div class="swiper-button-prev"></div>
  243.     </div>
  244.     <a class="boutonSlide" href="{{ path('front_shopping_categorie') }}">
  245.         <div class="offreloc d-flex justify-content-center align-items-center">
  246.             <button type="button">NOS FORMULES ET ATELIERS</button>
  247.         </div>
  248.     </a>
  249.     <div class="vaguePoint"></div>
  250.     <div class="agence d-flex align-items-center justify-content-center flex-wrap">
  251.         <div class="agencedesc">
  252.             <h2>PROFITEZ DE <br><strong>NOMBREUX AVANTAGES</strong></h2>
  253.             <h5>programme de parrainage, carte curiste +, etc.</h5><br>
  254.             <a href="{{ path('front_page' ,{'name': 'partenaires-carte-curiste'}) }}">
  255.                 <div class="ensavoirplus d-flex align-items-center justify-content-center">
  256.                     en savoir plus
  257.                 </div>
  258.             </a>
  259.         </div>
  260.         <div class="vagueBleuTrans">
  261.         </div>
  262.         <div class="vagueBleuTrans" id="vaguedeux">
  263.         </div>
  264.         <div class="blockAvantages">
  265.             <div class="maison">
  266.                 <img src="{{ websiteroot }}{{ asset('/medias_front/cauterets.png') }}">
  267.             </div>
  268.             <a href="{{ websiteroot }}{{ asset('/medias_front/common/BROCHURE-2024-NV.pdf') }}" target="_blank"
  269.                class="lienBrochure">
  270.                 <div class="brochure">
  271.                     <img src="{{ websiteroot }}{{ asset('/medias_front/brochure.png') }}" alt="une brochure">
  272.                 </div>
  273.             </a>
  274.             <a href="{{ websiteroot }}{{ asset('/medias_front/common/BROCHURE-2024-NV.pdf') }}" target="_blank"
  275.                class="lienCercle">
  276.                 <div class="cercleVert">
  277.                     <p>
  278.                         télécharger<br><strong>notre brochure</strong>
  279.                     </p>
  280.                 </div>
  281.             </a>
  282.         </div>
  283.     </div>
  284. {% endblock %}