templates/front/tarif.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ page.titre }}{% endblock %}
  3. {% block style %}
  4.     <style>
  5.         @media (max-width: 768px) {
  6.             .bannier-blog { height:400px }
  7.         }
  8.         @media (max-width: 550px) {
  9.             .bannier-blog { height:300px }
  10.         }
  11.         @media (max-width: 400px) {
  12.             .bannier-blog { height:250px }
  13.         }
  14.         /* ---- SMOOTH SCROLLING / davidmazeau.com ---- */
  15.         html {
  16.             --scroll-behavior: smooth;
  17.             scroll-behavior: smooth;
  18.         }
  19.         div[id]:before {
  20.           content:'';
  21.           display:block;
  22.           height:175px;
  23.           margin-top:-175px;
  24.           visibility:hidden
  25.         }
  26.     </style>
  27. {% endblock %}
  28. {% block banniere %}
  29. <section class="ban-section">
  30.     <div class="ban">
  31.         <img src="{{ asset(banniere ~ page.banniere) }}" alt="">
  32.         <div class="container">
  33.             <div class="sect-title text-center mb-0">
  34.                 <div class="h1 text-white">
  35.                     {{ page.getTextBanniere | raw }}
  36.                 </div>
  37.             </div>
  38.         </div>
  39.     </div>
  40. </section>
  41. {% endblock %}
  42. {% block contenu %}
  43. <section class=" pb-50 pt-45 ">
  44.     <div class=" container clearfix ">
  45.         <div class="sect-title text-center no-deco">
  46.             <h1>
  47.                 {{ page.titre }}
  48.             </h1>
  49.         </div>
  50.         <div class="bloc-text fs-big text-center mb-55">
  51.             {{ page.contenu | raw }}
  52.         </div>
  53.         {% if page.formules | length > 1 %}
  54.         <div class="row">
  55.         {% for formule in page.formules %}
  56.             
  57.             {% if 'jardin' in formule.titre|lower %}
  58.             <div class="col-xl col-lg-4 col-md-4 col-sm-6 col-12 mb-30">
  59.                 <a href="#jardin" class="item-tarifs">
  60.                     <div class="img">
  61.                         <img src="{{ asset('front/images/esf/t-1.jpeg') }}" alt="">
  62.                     </div>
  63.                     <div class="title">
  64.                         Jardin des vagues
  65.                     </div>
  66.                 </a>
  67.             </div>
  68.             {% endif %}
  69.             {% if 'famille' in formule.titre|lower %}
  70.             <div class="col-xl col-lg-4 col-md-4 col-sm-6 col-12 mb-30">
  71.                 <a href="#famille" class="item-tarifs">
  72.                     <div class="img">
  73.                         <img src="{{ asset('front/images/esf/t-2.jpeg') }}" alt="">
  74.                     </div>
  75.                     <div class="title">
  76.                         Famille
  77.                     </div>
  78.                 </a>
  79.             </div>
  80.             {% endif %}
  81.             
  82.             {% if 'découverte' in formule.titre|lower %}
  83.             <div class="col-xl col-lg-4 col-md-4 col-sm-6 col-12 mb-30">
  84.                 <a href="#decouverte" class="item-tarifs">
  85.                     <div class="img">
  86.                         <img src="{{ asset('front/images/esf/t-3.jpeg') }}" alt="">
  87.                     </div>
  88.                     <div class="title">
  89.                         Découverte
  90.                     </div>
  91.                 </a>
  92.             </div>
  93.             {% endif %}
  94.             {% if 'évolution' in formule.titre|lower %}
  95.             <div class="col-xl col-lg-4 col-md-4 col-sm-6 col-12 mb-30">
  96.                 <a href="#evolution" class="item-tarifs">
  97.                     <div class="img">
  98.                         <img src="{{ asset('front/images/esf/t-4.jpeg') }}" alt="">
  99.                     </div>
  100.                     <div class="title">
  101.                         évolution
  102.                     </div>
  103.                 </a>
  104.             </div>
  105.             {% endif %}
  106.             {% if 'surf guide' in formule.titre|lower %}
  107.             <div class="col-xl col-lg-4 col-md-4 col-sm-6 col-12 mb-30">
  108.                 <a href="#surf" class="item-tarifs">
  109.                     <div class="img">
  110.                         <img src="{{ asset('front/images/esf/t-5.jpeg') }}" alt="">
  111.                     </div>
  112.                     <div class="title">
  113.                         Surf guide
  114.                     </div>
  115.                 </a>
  116.             </div>
  117.             {% endif %}
  118.         
  119.         {% endfor %}
  120.         </div>
  121.         {% endif %}
  122.         
  123.         <div class="bloc-text text-center pt-55 pb-55">
  124.             <p>Matériel et assurance responsabilité civile inclus. Cours tous les jours avec plusieurs horaires disponibles afin de satisfaire les attentes de tous.</p>
  125.         </div>
  126.         {% if page.formules | length > 0 %}
  127.         <div class="list-tarifs">
  128.             {% for formule in page.formules %}
  129.             {% set ancre = 'jardin' %}
  130.             {% if 'famille' in formule.titre|lower %}
  131.             {% set ancre = 'famille' %}
  132.             {% endif %}
  133.             {% if 'découverte' in formule.titre|lower %}
  134.             {% set ancre = 'decouverte' %}
  135.             {% endif %}
  136.             {% if 'évolution' in formule.titre|lower %}
  137.             {% set ancre = 'evolution' %}
  138.             {% endif %}
  139.             {% if 'surf guide' in formule.titre|lower %}
  140.             {% set ancre = 'surf' %}
  141.             {% endif %}
  142.             <div id="{{ ancre }}" class="item">
  143.                 <div class="row">
  144.                     <div class="col-xl-4 col-12 mb-xl-0 mb-50">
  145.                         <div class="img"><img src="{{ asset(formule_directory ~ formule.image) }}" alt=""></div>
  146.                     </div>
  147.                     <div class="col-xl-8 col-12">
  148.                         <div class="title-2">
  149.                             {{ formule.titre | raw }}
  150.                         </div>
  151.                         <div class="list-formule">
  152.                             <div class="item">
  153.                                 <div class="icon">
  154.                                     <img src="{{ asset('front/images/esf/ico-t-1.svg') }}" width="24" alt="">
  155.                                 </div>
  156.                                 <div class="desc">
  157.                                     <span>Lieu</span> <br> {{ formule.lieu | raw }}
  158.                                 </div>
  159.                             </div>
  160.                             <div class="item">
  161.                                 <div class="icon">
  162.                                     <img src="{{ asset('front/images/esf/ico-t-2.svg') }}" width="30" alt="">
  163.                                 </div>
  164.                                 <div class="desc">
  165.                                     <span>niveau</span> <br> {{ formule.niveau | raw }}
  166.                                 </div>
  167.                             </div>
  168.                             <div class="item">
  169.                                 <div class="icon">
  170.                                     <img src="{{ asset('front/images/esf/ico-t-3.svg') }}" width="22" alt="">
  171.                                 </div>
  172.                                 <div class="desc">
  173.                                     <span>âge</span> <br> {{ formule.age | raw }}
  174.                                 </div>
  175.                             </div>
  176.                             <div class="item">
  177.                                 <div class="icon">
  178.                                     <img src="{{ asset('front/images/esf/ico-t-4.svg') }}" width="34" alt="">
  179.                                 </div>
  180.                                 <div class="desc">
  181.                                     <span>durée</span> <br> {{ formule.duree | raw }}
  182.                                 </div>
  183.                             </div>
  184.                             <div class="item">
  185.                                 <div class="icon">
  186.                                     <img src="{{ asset('front/images/esf/ico-t-5.svg') }}" width="34" alt="">
  187.                                 </div>
  188.                                 <div class="desc">
  189.                                     <span>Participants</span> <br> {{ formule.participants | raw }}
  190.                                 </div>
  191.                             </div>
  192.                         </div>
  193.                         <div class="bloc-text">
  194.                             {{ formule.contenu | raw }}
  195.                         </div>
  196.                         <div class="tarif-box">
  197.                             {% for k, tarif in formule.tarifs|slice(0, 3) %}
  198.                             <div class="item">
  199.                                 <div class="tarif-detail">
  200.                                     <div class="title">
  201.                                         {{ tarif.titre }}
  202.                                     </div>
  203.                                     <div class="desc">
  204.                                         {{ tarif.prix | raw }}
  205.                                     </div>
  206.                                 </div>
  207.                                 {% for j, tarif in formule.tarifs|slice(3, 6) %}
  208.                                 {% if 'navette' in tarif.titre|lower and k == j %}
  209.                                 <div class="tarif-detail">
  210.                                     <div class="title">
  211.                                         {{ tarif.titre }}
  212.                                     </div>
  213.                                     <div class="desc">
  214.                                         {{ tarif.prix | raw }}
  215.                                     </div>
  216.                                 </div>
  217.                                 {% endif %}
  218.                                 {% endfor %}
  219.                             </div>
  220.                             {% endfor %}
  221.                             {#<div class="item">
  222.                                 <a href="{{ formule.lien | raw }}" target="_blank" class="btn-1">
  223.                                     <div class="icon">
  224.                                         <img src="{{ asset('front/images/esf/h-1.svg') }}" width="39" alt="">
  225.                                     </div>
  226.                                     <div>je réserve <br> en ligne</div>
  227.                                 </a>
  228.                             </div>#}
  229.                         </div>
  230.                     </div>
  231.                 </div>
  232.             </div>
  233.             {% endfor %}
  234.         </div>
  235.         {% endif %}
  236.     </div>
  237. </section>
  238. {% endblock %}
  239. {% block formule %}
  240.     {% include 'front/formule.html.twig' %}
  241. {% endblock %}