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

Open in your IDE?
  1. {% extends '/front/layout.html.twig' %}
  2. {% trans_default_domain 'app' %}
  3. {% block contenu %}
  4. <!-- *********************** Carrousel *********************** -->
  5.    <section id="carousel-home" class="carousel slide slider-mobile hidden-xs hidden-sm" data-ride="carousel">
  6.     <!-- Wrapper for slides -->
  7.     {% if slider|length > 1%}
  8.         <!-- Indicators -->
  9.         <ol class="carousel-indicators hidden-xs">
  10.             {% for i in range(1, slider|length) %}
  11.                 <li data-target="#carousel-home" data-slide-to="{{ i-1 }}"{% if loop.index == 1%} class="active"{% endif %}></li>
  12.             {% endfor %}
  13.         </ol>
  14.     {% endif %}
  15.     <div class="carousel-inner" role="listbox">
  16.     {% if slider is not null %}
  17.         {% for slide in slider %}
  18.             {% if slide.etat %}
  19.             <div class="item{% if loop.index ==  1%} active{% endif %}">
  20.               <a href="{% if slide.url is not null %}{{ slide.url }}{% else %}#{% endif %}">
  21.                 <h1><img 
  22.                     src="{{ asset(slide.media.webPath) }}"
  23.                     srcset="{{ asset(slide.media.webPath | imagine_filter('full_width_320') ) }} 320w,
  24.                         {{ asset(slide.media.webPath | imagine_filter('full_width_640') ) }} 640w,
  25.                         {{ asset(slide.media.webPath | imagine_filter('full_width_640') ) }} 768w,
  26.                         {{ asset(slide.media.webPath | imagine_filter('full_width_1024') ) }} 1024w,
  27.                         {{ asset(slide.media.webPath | imagine_filter('full_width_1280') ) }} 1280w,
  28.                         {{ asset(slide.media.webPath | imagine_filter('full_width_1366') ) }} 1366w,
  29.                         {{ asset(slide.media.webPath | imagine_filter('full_width_1900') ) }} 1900w"
  30.                     data-sizes="100vw"
  31.                     alt="{{ slide.titre }}"
  32.                     loading="lazy" /></h1>
  33.               </a>
  34.             </div>
  35.             {% endif %}
  36.         {% endfor %}
  37.         {% endif %}
  38.     </div>
  39.     {% if slider|length > 1%}
  40.         <a class="left carousel-control" href="#carousel-home" role="button" data-slide="prev">
  41.             <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
  42.             <span class="sr-only">Previous</span>
  43.         </a>
  44.         <a class="right carousel-control" href="#carousel-home" role="button" data-slide="next">
  45.             <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
  46.             <span class="sr-only">Next</span>
  47.         </a>
  48.     {% endif %}
  49. </section>
  50. <section class="mb-5">
  51.     <div class="container container-home padding-off  margin-bottom-20">
  52.         <h2 class="text-center mt-5 pb-0 mb-0">{{ 'home.mea.titre' |trans({}, 'cms') |raw }}</h2>
  53.         <div class="col-md-12 padding-off mea-index-margin">
  54.             <!-- Partie blog -->
  55.             <div class="col-md-6 col-sm-12 col-xs-12 mea-index">
  56.                 {% if MiseEnAvantMajeur is not empty %}
  57.                     {% if MiseEnAvantMajeur.media.webPath is defined %}
  58.                         {% set imgpath = MiseEnAvantMajeur.media.webPath %}
  59.                         <div class="col-md-12 padding-off">
  60.                             <img src="{{ asset( imgpath) }}" class="img-responsive" loading="lazy" alt="{{ MiseEnAvantMajeur.titre }}"/>
  61.                         </div>
  62.                     {% endif %}
  63.                     <div class="block col-md-12 col-sm-12 col-xs-12{% if MiseEnAvantMajeur.colorFond is  null %} rose{% endif %}"{% if MiseEnAvantMajeur.colorFond is not null %} style="background-color: {{ MiseEnAvantMajeur.colorFond }}"{% endif %}>
  64.                         <a href="{{ MiseEnAvantMajeur.url }}">
  65.                             <h3{% if MiseEnAvantMajeur.colorTexte is not null %} style="color: {{ MiseEnAvantMajeur.colorTexte }}"{% endif %}>{{ MiseEnAvantMajeur.titre |raw }}</h3>
  66.                             <div{% if MiseEnAvantMajeur.colorTexte is not null %} style="color: {{ MiseEnAvantMajeur.colorTexte }}"{% endif %}>{{ MiseEnAvantMajeur.texte |raw }}</div>
  67.                         </a>
  68.                     </div>
  69.                 {% endif %}
  70.             </div>
  71.             <div class="col-md-6 col-sm-12 col-xs-12 padding-off mea-index ">
  72.                 {% for MiseEnAvantMineur in MisesEnAvantMineur %}
  73.                     <div class="col-md-6 col-sm-6 margin-blog">
  74.                         {% if MiseEnAvantMineur.media.webPath is defined %}
  75.                             {% set imgpath = MiseEnAvantMineur.media.webPath %}
  76.                         {% endif %}
  77.                         <a href="{{ MiseEnAvantMineur.url }}"{% if MiseEnAvantMineur.target == 1%} target="_blank"{% endif %} title="{{ MiseEnAvantMineur.titre }}"><h3>{% if imgpath  is defined %}<img class="img-responsive" loading="lazy" src="{{ asset(imgpath) }}" alt="{{ MiseEnAvantMineur.titre }}" />{% endif %}</h3></a>
  78.                     </div>
  79.                 {% endfor %}
  80.             </div>
  81.         </div>
  82.     </div>
  83. </section>
  84. {% if promos|length > 0 %}
  85.     <section>
  86.         <div class="container container-home  padding-off  margin-bottom-20">
  87.             <div class="col-md-12 col-sm-12 col-xs-12 text-center">
  88.                 <h2>{{ ('promos.bon-plans-du-moment.title')|trans({}, 'promos') | raw }}</h2>
  89.                 <p class="sous-titre-page-hp">
  90.                     {{ ('promos.bon-plans-du-moment.description')|trans({}, 'promos') | raw }}
  91.                 </p>
  92.             </div>
  93.             {% include "/front/Promos/liste.html.twig" %}
  94.         </div>
  95.     </section>
  96. {% endif %}
  97. <section class="reassurance">
  98.     <div class="container container-home   text-center">
  99.         <div class="col-md-12">
  100.             <div class="row mt-5">
  101.                 <div class="col-md-2"></div>
  102.                 <div class="col-md-8">
  103.                     <h2>{{ 'home.reassurance.titre' |trans({}, 'cms') |raw }}</h2>
  104.                     {{ 'home.reassurance.texte' |trans({}, 'cms') |raw }}
  105.                 </div>
  106.                 <div class="col-md-2"></div>
  107.             </div>
  108.             <div class="row mt-5">
  109.                 <div class="col-md-3 text-center mb-5">
  110.                     <i class="ico ico_trusted_shop"></i>
  111.                     <p>
  112.                     <strong>{{ 'home.reassurance.item_1.titre' |trans({}, 'cms') |raw }}</strong>
  113.                     <br><a href="https://www.trstd.com/fr-fr/reviews/ateya-vacances-fr" target="_blank" class="external-link">{{ 'home.reassurance.item_1.texte' |trans({}, 'cms') |raw }}</a>
  114.                     </p>
  115.                 </div>
  116.                 <div class="col-md-3 text-center">
  117.                     <i class="ico ico_conseiller"></i>
  118.                     <p>
  119.                         <strong>{{ 'home.reassurance.item_2.titre' |trans({}, 'cms') |raw }}</strong>
  120.                         <br>{{ 'home.reassurance.item_2.texte' |trans({}, 'cms') |raw }}
  121.                     </p>
  122.                 </div>
  123.                 <div class="col-md-3 text-center">
  124.                     <i class="ico ico_faq"></i>
  125.                     <p>
  126.                         <strong>{{ 'home.reassurance.item_3.titre' |trans({}, 'cms') |raw }}</strong>
  127.                         <br><a href="https://smilebyateya.fr/faq-2/" target="_blank" class="external-link">{{ 'home.reassurance.item_3.texte' |trans({}, 'cms') |raw }}</a>
  128.                     </p>
  129.                 </div>
  130.                 <div class="col-md-3 text-center">
  131.                     <i class="ico ico_paiement"></i>
  132.                     <p>
  133.                         <strong>{{ 'home.reassurance.item_4.titre' |trans({}, 'cms') |raw }}</strong>
  134.                         <br>{{ 'home.reassurance.item_4.texte' |trans({}, 'cms') |raw }}
  135.                     </p>
  136.                 </div>
  137.             </div>
  138.         </div>
  139.     </div>
  140. </section>
  141. {% endblock %}