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

Open in your IDE?
  1. {% if size == 'full' %}
  2. <section data-bs-version="5.1"
  3.          class="slider1 directm4_slider1 cid-sYsP7EgLKR justify-content-center"
  4.          id="slider1-1v-{{ iDtabPromoZone }}">
  5.     <div class="container-fluid">
  6.         <div class="carousel slide carousel-fade" id="sYIUsJIk6l-{{ iDtabPromoZone }}" data-ride="carousel"
  7.              data-bs-ride="carousel"
  8.         >
  9.             {# <ol class="carousel-indicators">
  10.                     {% for promo in tabPromoZone %}
  11.                         <li data-slide-to="{{ loop.index0 }}" data-bs-slide-to="{{ loop.index0 }}"
  12.                             {% if loop.first %}class="active"{% endif %}
  13.                             data-target="#sYIUsJIk6l-{{ iDtabPromoZone }}"
  14.                             data-bs-target="#sYIUsJIk6l-{{ iDtabPromoZone }}">
  15.                         </li>
  16.                     {% endfor %}
  17.                 </ol> #}
  18.             <div class="carousel-inner">
  19.                 {% for promo in tabPromoZone %}
  20.                     {% set mediaTmp = promo.image %}
  21.                     {% set mediaTmp = webp(webpSupported, promo.image) %}
  22.                     <div class="carousel-item slider-image item {% if loop.first %}active{% endif %}">
  23.                         <div class="item-wrapper"
  24.                              style="background-image: url('{{ websiteroot }}{{ asset('/medias_front/autopromo/' ~ mediaTmp) }} ')">
  25.                             <div id="centerbig"
  26.                                  class="h-100 carousel-caption justify-content-start align-items-end flex-column mt-10 visible">
  27.                                 <div id="container" class="row justify-content-center">
  28.                                     <div class="col-12 containerTitleHome">
  29.                                         {% if promo.title %}op
  30.                                             <h2 class="visible mbr-section-title mbr-fonts-style mbr-white display-1">
  31.                                                 {{ promo.title }}
  32.                                             </h2>
  33.                                         {% endif %}
  34.                                         {% if promo.subtitle %}
  35.                                             <h3 class="visible mbr-section-subtitle mbr-fonts-style mb-3 mbr-white display-2">
  36.                                                 {{ promo.subtitle }}
  37.                                             </h3>
  38.                                         {% endif %}
  39.                                     </div>
  40.                                 </div>
  41.                                 <div id="bigtitle"
  42.                                      class="d-flex flex-column justify-content-end">
  43.                                     <h1 class="noFadeInUp">La plus haute station thermale</h1>
  44.                                     <h2 class="noFadeInUp">de France</h2>
  45.                                     <div class="mirror"></div>
  46.                                 </div>
  47.                             </div>
  48.                             <div class="divButonReserve">
  49.                                 <a href="{{ path('front_cures') }}" class="d-flex justify-content-center">
  50.                                     <button class="butonReserve">je réserve</button>
  51.                                 </a>
  52.                             </div>
  53.                             <div class="vagueBlanche"></div>
  54.                             <div class="blocblanc"></div>
  55.                             <div id="pagedown" class="d-flex align-items-center justify-content-center">
  56.                                 <a class="noFadeInUp" href="#footCoordones"
  57.                                    aria-label="bouton pour descendre en bas de page">
  58.                                     <div class="imgNavbot"></div>
  59.                                 </a>
  60.                             </div>
  61.                         </div>
  62.                     </div>
  63.                 {% endfor %}
  64.             </div>
  65.             {% if tabPromoZone|length > 1 %}
  66.                 <a class="carousel-control carousel-control-prev" role="button" data-slide="prev"
  67.                    data-bs-slide="prev"
  68.                    href="#sYIUsJIk6l-{{ iDtabPromoZone }}">
  69.                     <span class="mbri-left" aria-hidden="true"></span>
  70.                     <span class="sr-only visually-hidden">Previous</span>
  71.                 </a>
  72.                 <a class="carousel-control carousel-control-next" role="button" data-slide="next"
  73.                    data-bs-slide="next"
  74.                    href="#sYIUsJIk6l-{{ iDtabPromoZone }}">
  75.                     <span class="mbri-right" aria-hidden="true"></span>
  76.                     <span class="sr-only visually-hidden">Next</span>
  77.                 </a>
  78.             {% endif %}
  79.         </div>
  80.     </div>
  81. </section>
  82. {% else %}
  83. <section data-bs-version="5.1" class="pt-0 pb-5 slider2  mbr-fullscreen d-flex flex-column"
  84.          id="slider2-44-{{ iDtabPromoZone }}">
  85.     <div class="degraderBlanc"></div>
  86.     <div class="d-flex justify-content-center flex-column align-items-center bloctextUpslide">
  87.         <h3>Bienvenue aux</h3>
  88.         <h2>Thermes de Barèges</h2>
  89.         <p class="w-40">Soignez le corps et l'esprit grâce aux bienfaits des sources thermales dans un cadre hors du
  90.             commun </p>
  91.     </div>
  92.     <div class=" container-fluid ">
  93.         <div id="containerPromo2" class="w-100">
  94.             <div class="d-flex justify-content-center align-items-center flex-column">
  95.                 <div class="carousel slide w-100 " id="sYJPeuhotV-{{ iDtabPromoZone }}"
  96.                      data-ride="carousel"
  97.                      data-bs-ride="carousel"
  98.                      data-interval="8000"
  99.                      data-bs-interval="8000"
  100.                 >
  101.                     <div class="carousel-inner w-100 containerPromo2">
  102.                         {% set idCarou = 0 %}
  103.                         {% for promo in tabPromoZone %}
  104.                             {% set idCarou = idCarou + 1 %}
  105.                             {% set mediaTmp = promo.image %}
  106.                             {% set mediaTmp = webp(webpSupported, promo.image) %}
  107.                             <div class="midtest h-100 carousel-item slider{% if promo.image %}-image{% endif %} item {% if loop.first %}active{% endif %} align-items-center justify-content-center">
  108.                                 {% if promo.title  or promo.subtitle %}
  109.                                 {% if promo.image %}
  110.                                     <div class="item-wrapper blocAutoImg"
  111.                                          style="background-image: {{ asset('/medias_front/autopromo/' ~ mediaTmp) }} ">
  112.                                         {% if promo.url %}
  113.                                         <a href="{{ promo.url }}" aria-label="Zone auto promo">
  114.                                             {% else %}
  115.                                             <a href="{{ asset('/medias_front/autopromo/' ~ mediaTmp) | imagine_filter('front_autopromo2') }}"
  116.                                                data-fancybox aria-label="Zone auto promo">
  117.                                                 {% endif %}
  118.                                                 <div id="imgpromo2" class="d-block lazyload"
  119.                                                      style="background-image: url({{ asset('/medias_front/autopromo/' ~ mediaTmp) | imagine_filter('front_autopromo2') }})">
  120.                                                 </div>
  121.                                             </a>
  122.                                             {#  <div class="carousel-caption d-none d-md-block">
  123.                                             <p class="mbr-section-text mbr-fonts-style display-7">
  124.                                                 Click on the image to edit slides.
  125.                                             </p>
  126.                                         </div> #}
  127.                                     </div>
  128.                                 {% endif %}
  129.                                 <div class="containerTitles d-flex  flex-column mx-4">
  130.                                     {# <div class="aLaUne d-none d-lg-block"></div> #}
  131.                                     {% endif %}
  132.                                     <div class="tetepromo2 d-flex justify-content-around align-items-center pt-2 flex-wrap">
  133.                                         <ol class="carousel-indicators" id="slide">
  134.                                             {% for promo in tabPromoZone %}
  135.                                                 <div data-slide-to="{{ loop.index0 }}"
  136.                                                      data-bs-slide-to="{{ loop.index0 }}" id="test" class="puce ">
  137.                                                     <li data-slide-to="{{ loop.index0 }}"
  138.                                                         data-bs-slide-to="{{ loop.index0 }}"
  139.                                                         {% if loop.first %}class="active"{% endif %}
  140.                                                         data-target="#sYJPeuhotV-{{ iDtabPromoZone }}"
  141.                                                         data-bs-target="#sYJPeuhotV-{{ iDtabPromoZone }}">
  142.                                                     </li>
  143.                                                 </div>
  144.                                             {% endfor %}
  145.                                         </ol>
  146.                                     </div>
  147.                                     <div class="tiltepromo2 d-flex justify-content-start flex-column m-1">
  148.                                         {% if promo.url %}
  149.                                             <a href="{{ promo.url }}">
  150.                                                 {% if promo.title %}
  151.                                                     <h5 class="mbr-section-title mt-4 mt-lg-4 mbr-fonts-style mbr-white display-5">
  152.                                                         {{ promo.title }}
  153.                                                     </h5>
  154.                                                 {% endif %}
  155.                                                 {% if promo.subtitle %}
  156.                                                     <h6 class="mbr-section-subtitle  mbr-fonts-style  mbr-white display-6">
  157.                                                         {{ promo.subtitle }}
  158.                                                     </h6>
  159.                                                 {% endif %}
  160.                                             </a>
  161.                                         {% else %}
  162.                                             {% if promo.title %}
  163.                                                 <h5 class="mbr-section-title mt-4 mt-lg-4 mbr-fonts-style mbr-white display-5">
  164.                                                     {{ promo.title }}
  165.                                                 </h5>
  166.                                             {% endif %}
  167.                                             {% if promo.subtitle %}
  168.                                                 <h6 class="mbr-section-subtitle  mbr-fonts-style  mbr-white display-6">
  169.                                                     {{ promo.subtitle }}
  170.                                                 </h6>
  171.                                             {% endif %}
  172.                                         {% endif %}
  173.                                     </div>
  174.                                     {% if promo.url %}
  175.                                         <a class="btnPromo mb-0 promoplus" href="{{ promo.url }}"
  176.                                            aria-label="bouton en s'avoir plus">
  177.                                             <img class="noFadeInUp lepetitPlus"
  178.                                                  src="{{ websiteroot }}{{ asset('/medias_front/+.svg') }}"
  179.                                                  alt="+">
  180.                                         </a>
  181.                                     {% endif %}
  182.                                     <div class="lesFlechesCarousel">
  183.                                         {% set maxPromo = 0 %}
  184.                                         {% for promo in tabPromoZone %}
  185.                                             {% set maxPromo = maxPromo + 1 %}
  186.                                         {% endfor %}
  187.                                         {% if maxPromo > 1 %}
  188.                                             <a class="carouselflecheprecedente carouselfleche carousel-control"
  189.                                                role="button" data-slide="prev"
  190.                                                data-bs-slide="prev"
  191.                                                href="#sYJPeuhotV-{{ iDtabPromoZone }}" aria-label="fleche precedente">
  192.                                                 <span class="flecheprecedente" aria-hidden="true"></span>
  193.                                                 <span class="sr-only visually-hidden">Previous</span>
  194.                                             </a>
  195.                                         {% endif %}
  196.                                         <div class="carouselChiffre">
  197.                                             <p><strong>{{ idCarou }}</strong> / <strong>{{ maxPromo }}</strong></p>
  198.                                         </div>
  199.                                         {% if maxPromo > 1 %}
  200.                                             <a class="carouselflechesuivante carouselfleche carousel-control"
  201.                                                role="button" data-slide="next"
  202.                                                data-bs-slide="next"
  203.                                                href="#sYJPeuhotV-{{ iDtabPromoZone }}" aria-label="fleche suivante">
  204.                                                 <span class="flechesuivante" aria-hidden="true"></span>
  205.                                                 <span class="sr-only visually-hidden">Next</span>
  206.                                             </a>
  207.                                         {% endif %}
  208.                                     </div>
  209.                                     {#                                        <div id="complet" #}
  210.                                     {#                                             class=" containerTitles d-flex justify-content-center align-items-center flex-column mx-4"> #}
  211.                                     {#                                            {% if promo.subtitle %} #}
  212.                                     {#                                                <h6 class="mx-2 mbr-section-subtitle mb-2 mb-lg-2 mbr-fonts-style  mbr-white display-6"> #}
  213.                                     {#                                                    {{ promo.subtitle }} #}
  214.                                     {#                                                </h6> #}
  215.                                     {#                                            {% endif %} #}
  216.                                     {#                                            <div id="txt" #}
  217.                                     {#                                                 class="mx-5 align-items-center mt-auto {% if promo.url == null %}pb-45 pb-51{% endif %}"> #}
  218.                                     {#                                                <p>Finis les #}
  219.                                     {#                                                    rectangles bleus #}
  220.                                     {#                                                    qui #}
  221.                                     {#                                                    écorchent #}
  222.                                     {#                                                    le paysage. Entrez en #}
  223.                                     {#                                                    pente #}
  224.                                     {#                                                    douce #}
  225.                                     {#                                                    dans la piscine lagon NaturaSwim. Laissez libre champ à votre #}
  226.                                     {#                                                    imagination...</p> #}
  227.                                     {#                                                <p class="mb-5">Les possibilités #}
  228.                                     {#                                                    sont infinies : formes, dimensions, profondeur de #}
  229.                                     {#                                                    bain, #}
  230.                                     {#                                                    rochers, cascades, arbres, végétaux sont agencés pour vous offrir un #}
  231.                                     {#                                                    spectacle sublime et apaisant, en parfaite harmonie avec votre #}
  232.                                     {#                                                    environnement.</p> #}
  233.                                     {#                                            </div> #}
  234.                                     {#                                        </div> #}
  235.                                     {% if promo.title  or promo.subtitle %}
  236.                                 </div>
  237.                                 {% endif %}
  238.                             </div>
  239.                         {% endfor %}
  240.                     </div>
  241.                     {# <a class="carousel-control carousel-control-prev" role="button" data-slide="prev"
  242.                            data-bs-slide="prev" href="#sYJPeuhotV-{{ iDtabPromoZone }}">
  243.                             <span class="mobi-mbri mobi-mbri-arrow-prev" aria-hidden="true"></span>
  244.                             <span class="sr-only visually-hidden">Previous</span>
  245.                         </a>
  246.                         <a class="carousel-control carousel-control-next" role="button" data-slide="next"
  247.                            data-bs-slide="next" href="#sYJPeuhotV-{{ iDtabPromoZone }}">
  248.                             <span class="mobi-mbri mobi-mbri-arrow-next" aria-hidden="true"></span>
  249.                             <span class="sr-only visually-hidden">Next</span>
  250.                         </a> #}
  251.                 </div>
  252.             </div>
  253.         </div>
  254.         {% endif %}
  255.     </div>
  256. </section>