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

Open in your IDE?
  1. {% set class_title = "" %}
  2. {% set text_classe = "" %}
  3. {% set classe = bloc.classe|split(' ') %}
  4. {% if classe|length >= 0 %}
  5.     {% set text_classe = classe[0] %}
  6. {% endif %}
  7. {% set video = "" %}
  8. {% set pdf = "" %}
  9. {% set videoType = constant('App\\Entity\\Medias\\Media::TYPE_MEDIA_VIDEO_BNR') %}
  10. {% set pdfType = constant('App\\Entity\\Medias\\Media::TYPE_MEDIA_PDF') %}
  11. {% set media = bloc.medias | first %}
  12. {% if medias[videoType] is defined %}
  13.     {% set video = medias[videoType][0] %}
  14. {% endif %}
  15. {% if medias[pdfType] is defined %}
  16.     {% set pdf = medias[pdfType][0] %}
  17. {% endif %}
  18. <div class="container reveal">
  19.     {% if bloc.istitrePrincipaleBloc  != null %}
  20.         <span class="{{bloc.classeTitrePrincipaleBloc}}">
  21.             {{ bloc.titrePrincipaleBloc | raw  }}
  22.         </span>
  23.     {% endif %}
  24.     <div class="{{ bloc.classe }}" data-class="{{ bloc.classe }}">
  25.         {# TYPE_TEXT #}
  26.         {%  if  bloc.type == constant('App\\Entity\\Blocs\\Bloc::TYPE_TEXTE') %}
  27.             {% if bloc.isShowTitle  != null %}
  28.                 {{ bloc.title | raw  }}
  29.             {% endif %}
  30.             <div class="description">
  31.                 {{ bloc.description | raw }}
  32.             </div>
  33.             {# TYPE_IMAGE_TEXT #}
  34.         {% elseif  bloc.type == constant('App\\Entity\\Blocs\\Bloc::TYPE_IMAGE_TEXTE') %}
  35.             {% set media = bloc.medias | first %}
  36.             {% if  bloc.positionImage ==  constant('App\\Entity\\medias\\Media::POSITION_RIGHT') %}
  37.                 <div class="row ">
  38.                     <div class="col-md-{{ bloc.colTxt }}  align-self-center box-win visible-mobile orderBox1 order-lg-0 order-md-0 order-1">
  39.                         <div class="text-bloc">
  40.                             {% if bloc.isShowTitle  != null %}
  41.                                 {{ bloc.title | raw  }}
  42.                             {% endif %}
  43.                             <div class="prg{{ loop.index }}">
  44.                                 {{ bloc.description | raw }}</div>
  45.                         </div>
  46.                     </div>
  47.                     <div class="col-md-{{ bloc.colImage }} bloc-mobile orderBox2 order-lg-1 order-md-1 order-0">
  48.                         <div class="img-mobile wp">
  49.                             {% if bloc.isShowTitle  != null and bloc.isBtn  != null   %}
  50.                                 <div class="titre-accordien-1">{{ bloc.title | raw  }}
  51.                                 </div>
  52.                             {% endif %}
  53.                             {% if media %}
  54.                                 <img class="img-fluid" src="{{ asset(uploads_directory ~ media.media_bloc_path ~ '/' ~ media.media_bloc_file) }}" alt="{{ media.media_bloc_title }}">
  55.                             {% endif %}
  56.                         </div>
  57.                     </div>
  58.                 </div>
  59.                 {% if bloc.isBtn  != null %}
  60.                     <button class="btn-mobile-wp accordien{{ loop.index }}" id="lire-plus">{{ 'front.actions.read_more'|trans({}, 'front') }}</button>
  61.                 {% endif %}
  62.             {% elseif  bloc.positionImage ==  constant('App\\Entity\\medias\\Media::POSITION_LEFT') %}
  63.                 <div class="row">
  64.                     <div class="col-md-{{ bloc.colImage }} align-self-start">
  65.                         <div class="img-mobile wp">
  66.                             {% if bloc.isShowTitle  != null and bloc.isBtn  != null  %}
  67.                                 <div class="titre-accordien-1">{{ bloc.title | raw  }}</div>
  68.                             {% endif %}
  69.                             {% if media %}
  70.                                 <img class="img-fluid" src="{{ asset(uploads_directory ~ media.media_bloc_path ~ '/' ~ media.media_bloc_file) }}" alt="{{ media.media_bloc_title }}">
  71.                             {% endif %}
  72.                         </div>
  73.                     </div>
  74.                     <div class="col-md-{{ bloc.colTxt }}  box-down{{ bloc.classe }} visible-mobile">
  75.                         {% if bloc.isShowTitle  != null %}
  76.                             {{ bloc.title | raw  }}
  77.                         {% endif %}
  78.                         <div class="prg{{ loop.index }}">
  79.                             {{ bloc.description | raw }}</div>
  80.                     </div>
  81.                 </div>
  82.                 {% if bloc.isBtn  != null %}
  83.                     <button class="btn-mobile-wp accordien{{ loop.index }}" id="lire-plus">{{ 'front.actions.read_more'|trans({}, 'front') }}</button>
  84.                 {% endif %}
  85.             {% elseif  bloc.positionImage ==  constant('App\\Entity\\medias\\Media::POSITION_BOTTOM') %}
  86.                 <div class="row align-items-center">
  87.                     <div class="col-md-12 order-lg-0 order-1 mb-4">
  88.                         {{ bloc.title | raw  }}
  89.                         <p class="text-center">
  90.                             {{ bloc.description | raw }}</p>
  91.                     </div>
  92.                     <div class="col-md-{{ bloc.colImage }} order-lg-1 order-0">
  93.                         {% if media %}<img src="{{ asset(uploads_directory ~ media.media_bloc_path ~ '/' ~ media.media_bloc_file) }}" alt="{{ media.media_bloc_title }}" id="imgTest" class="rounded mx-auto d-block img-fluid img-inscription order-lg-1 order-0">{% endif %}
  94.                     </div>
  95.                 </div>
  96.             {% elseif  bloc.positionImage ==  constant('App\\Entity\\medias\\Media::POSITION_TOP') %}
  97.                 {% if 'techno_div' in bloc.classe %}
  98.                     <div class="row">
  99.                         <div class="col-md-12 text-center">
  100.                             {{ bloc.title | raw  }}
  101.                         </div>
  102.                         <div class="col-md-{{ bloc.colImage }}
  103.                         {% if  bloc.positionImage !=  constant('App\\Entity\\medias\\Media::POSITION_RIGHT') and 
  104.                                 bloc.positionImage !=  constant('App\\Entity\\medias\\Media::POSITION_LEFT')
  105.                                 %}
  106.                         text-center
  107.                         {% endif %}
  108.                         ">
  109.                             <div class="block-text-img">
  110.                                 {% if media %}
  111.                                 <img src="{{ asset(uploads_directory ~ media.media_bloc_path ~ '/' ~ media.media_bloc_file) }}" alt="{{ media.media_bloc_title }}" id="imgTest" class="img-fluid">
  112.                                 {% endif %}
  113.                                 <div class="row justify-content-center">
  114.                                     <div class="col-md-{{ bloc.colTxt }} ">
  115.                                         {{ bloc.description | raw }}
  116.                                     </div>
  117.                                 </div>
  118.                             </div>
  119.                         </div>
  120.                     </div>
  121.                 {% else %}
  122.                     <div class="row mb-5 align-items-center text-img-opt ">
  123.                         <div class="d-lg-block d-md-none d-none">
  124.                             {{ bloc.title | raw  }}
  125.                         </div>
  126.                         <div class="col-md-{{ bloc.colImage }} order-lg-0 order-1 ">
  127.                             {% if media %}
  128.                                 <img src="{{ asset(uploads_directory ~ media.media_bloc_path ~ '/' ~ media.media_bloc_file) }}" alt="{{ media.media_bloc_title }}" id="imgTest" class="rounded mx-auto d-block img-fluid img-inscription order-lg-1 order-0">
  129.                             {% endif %}    
  130.                             <div class="d-lg-none d-md-block d-block">
  131.                                 {{ bloc.title | raw  }}
  132.                             </div>
  133.                             <div class="parg-inscription">
  134.                                 {{ bloc.description | raw }}
  135.                             </div>
  136.                         </div>
  137.                     </div>
  138.                 {% endif %}
  139.             {% endif %}
  140.             {# TYPE_SLIDER #}
  141.         {% elseif  bloc.type == constant('App\\Entity\\Blocs\\Bloc::TYPE_SLIDER') %}
  142.             {% set media = bloc.medias | first %}
  143.             <div class="row align-items-center">
  144.                 <div class="col-lg-5 col-md-12 col-12 order-lg-0 order-1 text-animation">
  145.                     <div>
  146.                         {% if bloc.isShowTitle  != null %}
  147.                             {{ bloc.title | raw  }}
  148.                         {% endif %}
  149.                         <p class="text-md-left text-xl-left ">{{ bloc.description | raw }}</p>
  150.                     </div>
  151.                     {% if pdf != '' %}
  152.                         <div class="col text-center">
  153.                             <a {#href="{{ asset(uploads_directory ~ pdf.path ~ '/' ~ pdf.file) }}"#} class="btn btn-play-vd-slider click_popin">
  154.                                 <img src="{{ asset('images/pdf_icone.svg') }}" class="icone-vd"/><span class="text-btn-vd">    &nbsp; &nbsp; {{ 'front.bloc.discover_our'|trans({}, 'front') }}
  155.                                     <strong>{{ 'front.bloc.packages'|trans({}, 'front') | upper }}</strong>
  156.                                 </span>
  157.                             </a>
  158.                         </div>
  159.                     {% endif %}
  160.                     {% if page.isDemo != null  %}
  161.                         <div class="col text-center">
  162.                             <a class="btn btn-play-vd-slider " href="#sectionContact">
  163.                                 <img src="{{ asset('images/WFO/bt-video.svg') }}" class="icone-vd"/><span class="text-btn-vd">{{ 'front.bloc.demand'|trans({}, 'front') }} 
  164.                                     <strong>{{ 'front.bloc.demo'|trans({}, 'front') }}</strong>
  165.                                 </span>
  166.                             </a>
  167.                         </div>
  168.                     {% endif %}
  169.                 </div>
  170.                 <div class="col-lg-6 col-md-12 col-12 offset-lg-1 order-lg-1 order-0 img-animation">
  171.                     {% if media %}<div class="separator-{{ bloc.classe }}" style="background-image: url({{ asset(uploads_directory ~ media.media_bloc_path ~ '/' ~ media.media_bloc_file) }}) ; background-size: cover; background-position: center; background-repeat: no-repeat;"></div>{% endif %}
  172.                 </div>
  173.             </div>
  174.             {# TYPE_IMAGE #}
  175.         {%  elseif  bloc.type == constant('App\\Entity\\Blocs\\Bloc::TYPE_IMAGE') %}
  176.             {% if bloc.isShowTitle  != null %}
  177.                 {{ bloc.title | raw  }}
  178.             {% endif %}
  179.             {% if  bloc.positionImage ==  constant('App\\Entity\\medias\\Media::POSITION_RIGHT') %}
  180.                 <div class="images_front">
  181.                     <div class="row mb-5">
  182.                         {% for media in bloc.medias %}
  183.                             <div class="col-md-6"></div>
  184.                             <div class="col-md-6">
  185.                                 <p class="text-center">
  186.                                     <img class="img-fluid" src="{{ asset(uploads_directory ~ media.media_bloc_path ~ '/' ~ media.media_bloc_file) }}" alt="{{ media.media_bloc_title }}">
  187.                                 </p>
  188.                             </div>
  189.                         {% endfor %}
  190.                     </div>
  191.                 </div>
  192.             {% elseif  bloc.positionImage ==  constant('App\\Entity\\medias\\Media::POSITION_LEFT') %}
  193.                 <div class="images_front">
  194.                     <div class="row mb-5">
  195.                         {% for media in bloc.medias %}
  196.                             <div class="col-md-6">
  197.                                 <p class="text-center">
  198.                                     <img class="img-fluid" src="{{ asset(uploads_directory ~ media.media_bloc_path ~ '/' ~ media.media_bloc_file) }}" alt="{{ media.media_bloc_title }}">
  199.                                 </p>
  200.                             </div>
  201.                             <div class="col-md-6"></div>
  202.                         {% endfor %}
  203.                     </div>
  204.                 </div>
  205.             {% elseif  bloc.positionImage ==  constant('App\\Entity\\medias\\Media::POSITION_CENTER') %}
  206.                 <div class="images_front">
  207.                     <div class="row mb-5">
  208.                         {% for media in bloc.medias %}
  209.                             <div class="col-md-12">
  210.                                 <p class="text-center">
  211.                                     <img class="img-fluid {% if bloc.classe %} {{ bloc.classe }} {% endif %}" src="{{ asset(uploads_directory ~ media.media_bloc_path ~ '/' ~ media.media_bloc_file) }}" alt="{{ media.media_bloc_title }}">
  212.                                 </p>
  213.                             </div>
  214.                         {% endfor %}
  215.                     </div>
  216.                 </div>
  217.             {% endif %}
  218.             {# TYPE_Carrousel #}
  219.         {%  elseif  bloc.type == constant('App\\Entity\\Blocs\\Bloc::TYPE_CARROUSEL')  %}
  220.              {% if bloc.isFixTitle != true %}
  221.             <div class="section-experience">
  222.                 <div class="row align-items-center justify-content-center mb-5 mt-5">
  223.                     <div class="col-md-6">
  224.                         {% if bloc.isShowTitle  != null %}
  225.                             {{ bloc.title | raw  }}
  226.                         {% endif %}
  227.                     </div>
  228.                 </div>
  229.                 <div class="section-experience-content">
  230.                     <div class="row align-items-center">
  231.                         <div class="container-solution">
  232.                             <div class="content row align-items-center">
  233.                                 <div class="row align-items-center">
  234.                                     <div class="carrousel-experience">
  235.                                         <div class="owl-carousel owl-theme">
  236.                                             {% for carrousel in bloc.carrousel %}
  237.                                                 <div class="item text-center">
  238.                                                     <div class="row align-items-center">
  239.                                                         <div class="col-lg-5 col-md-12 col-12 text-center">
  240.                                                             <div class="img-box" style="background:url('{{ asset(uploads_directory ~ carrousel.media_carrouselCarrousel_path ~ '/' ~ carrousel.media_carrouselCarrousel_file) }}'); background-size: cover; background-position: center; background-repeat: no-repeat;">
  241.                                                                 <span class="d-lg-block d-md-none d-none">{#0{{ loop.index }}<sup>/ 03</sup>#}
  242.                                                                 </span>
  243.                                                                 <h5 class="d-lg-none d-md-block d-block">{{carrousel.carrousel_carrousel_title_mobile}}</h5>
  244.                                                             </div>
  245.                                                         </div>
  246.                                                         <div class="col-lg-6 col-md-12 col-12 bloc-margin-top offset-lg-1">
  247.                                                             {{ carrousel.carrousel_carrousel_description|raw }}
  248.                                                         </div>
  249.                                                     </div>
  250.                                                 </div>
  251.                                             {% endfor %}
  252.                                         </div>
  253.                                     </div>
  254.                                 </div>
  255.                             </div>
  256.                         </div>
  257.                     </div>
  258.                 </div>
  259.             </div>
  260.             {% else %}
  261.                 {% include "front/bloc/isHeader.html.twig" %}
  262.             {% endif %}
  263.             {# TYPE_CLIENT #}
  264.         {%  elseif  bloc.type == constant('App\\Entity\\Blocs\\Bloc::TYPE_CLIENT_BLOC') %}
  265.             <h1 class="text-center">{{bloc.title | raw }}</h1>
  266.             <div class="row mb-5 justify-content-center">
  267.                 <div class="col-md-10">
  268.                     <div class="carrousel-box-wp">
  269.                         <div class="row owl-carousel owl-theme box" id="car">
  270.                             {% for key, client in bloc.clients|sort((a, b) => a.priority <=> b.priority) %}
  271.                                 {% if  client.isEnable ==  true %}
  272.                                     <div class="item col-lg-5">
  273.                                         <div class="card">
  274.                                             <h6>{{client.title_title_top  | raw}}</h6>
  275.                                             <img src="{{ asset(uploads_directory ~ client.media_path ~ '/' ~ client.media_file) }}" alt="" class="card-img-top img-fluid">
  276.                                             <div class="card-body">
  277.                                                 <h5 class="card-title">{{client.title_Client  | raw}}</h5>
  278.                                                 {{client.description_Client | raw}}
  279.                                             </div>
  280.                                         </div>
  281.                                     </div>
  282.                                 {% endif %}
  283.                             {% endfor %}
  284.                         </div>
  285.                     </div>
  286.                 </div>
  287.             </div>
  288.             {# TYPE_MOBILE_BLOC #}
  289.         {%  elseif  bloc.type == constant('App\\Entity\\Blocs\\Bloc::TYPE_MOBILE_BLOC') %}
  290.             <h1 class="text-center">{{bloc.title | raw }}</h1>
  291.             <div class="row">
  292.                 <p class="text-md-left text-xl-left ">{{ bloc.description | raw }}</p>
  293.             </div>
  294.             {# TYPE_SOLUTION #}
  295.         {%  elseif  bloc.type == constant('App\\Entity\\Blocs\\Bloc::TYPE_SOLUTION_BLOC') %}
  296.             {{bloc.title | raw }}
  297.             <div class="container-solution">
  298.                 <div class="carrousel-notre-solution">
  299.                     <div class="owl-carousel owl-theme">
  300.                         {% for solution in bloc.solution %}
  301.                             <div class="item text-center">
  302.                                 <div class="img-solution">
  303.                                     <img src="{{ asset(uploads_directory ~ solution.media_solution_path ~ '/' ~ solution.media_solution_file) }}" alt="{{ solution.media_solution_title }}" class=" img-fluid">
  304.                                 </div>
  305.                             </div>
  306.                         {% endfor %}
  307.                     </div>
  308.                 </div>
  309.             </div>
  310.         {%  elseif  bloc.type == constant('App\\Entity\\Blocs\\Bloc::TYPE_VIDEO') %}
  311.                 {% set video , bgVideo = "", "" %}
  312.                 {% if medias and medias['video'] is defined %}
  313.                     {% set video = medias['video'][0] %}
  314.                 {% endif %}
  315.                 {% if medias and medias['bg_video'] is defined %}
  316.                     {% set bgVideo = medias['bg_video'][0] %}
  317.                 {% endif %}
  318.             {% for blo in bloc.medias %}
  319.                 {% if blo.media_bloc_type ==  constant('App\\Entity\\Medias\\Media::TYPE_MEDIA_VIDEO') %}
  320.                     {% set video = blo %}
  321.                 {% elseif blo.media_bloc_type ==  constant('App\\Entity\\Medias\\Media::TYPE_MEDIA_BG_VIDEO') %}
  322.                     {% set bgVideo = blo %}
  323.                 {% endif %}
  324.             {% endfor %}
  325.             {% set media = bloc.medias | first %}
  326.  
  327.             {% if  bloc.positionVideo ==  constant('App\\Entity\\medias\\Media::POSITION_RIGHT') %}
  328.                 <div class="row align-items-center">
  329.                     <div class="col-md-5 offset-lg-1">
  330.                         <div class="text-win-win">
  331.                             {% if bloc.isShowTitle  != null %}
  332.                                 {{ bloc.title | raw  }}
  333.                             {% endif %}
  334.                             {% if bloc.description  != null %}
  335.                                 {{ bloc.description | raw }}
  336.                             {% endif %}
  337.                         </div>
  338.                     </div>
  339.                     <div class="col-md-6">
  340.                         {% if video  %}
  341.                             <div class="video-container video-parent-class">
  342.                                 <video  class="video video-img video-bloc-right back-video" controls 
  343.                                         {% if bgVideo %} poster="{{ asset(uploads_directory ~ bgVideo.media_bloc_path ~ '/' ~ bgVideo.media_bloc_file ) }}" {% endif %}
  344.                                 >
  345.                                     <source src="{{ asset(uploads_directory ~ video.media_bloc_path ~ '/' ~ video.media_bloc_file ) }}" type="video/mp4">
  346.                                 </video>
  347.                                 <button class="btn video-play play-pause-btn" ></button> 
  348.                             </div>
  349.                         {% endif %}
  350.                     </div>
  351.                 </div>
  352.             {% elseif  bloc.positionVideo ==  constant('App\\Entity\\medias\\Media::POSITION_CENTER') %}
  353.                 <div class="row">
  354.                     <div class="col-md-12">
  355.                         {{ bloc.title | raw  }}
  356.                     </div>
  357.                 </div>
  358.                 <div class="row">
  359.                     {% set video , bgVideo = "", "" %}
  360.                     {% if medias and medias['video'] is defined %}
  361.                         {% set video = medias['video'][0] %}
  362.                     {% endif %}
  363.                     {% if medias and medias['bg_video'] is defined %}
  364.                         {% set bgVideo = medias['bg_video'][0] %}
  365.                     {% endif %}
  366.                     {% for blo in bloc.medias %}
  367.                             {% if blo.media_bloc_type ==  constant('App\\Entity\\Medias\\Media::TYPE_MEDIA_VIDEO') %}
  368.                             {% set video = blo %}
  369.                         {% elseif blo.media_bloc_type ==  constant('App\\Entity\\Medias\\Media::TYPE_MEDIA_BG_VIDEO') %}
  370.                             {% set bgVideo = blo %}
  371.                         {% endif %}
  372.                     {% endfor %}     
  373.                         <div class="col-md-12">
  374.                             <div class="mobile-imgs">
  375.                                 {% if video  %}
  376.                                     <div class="video-container col-md-6">
  377.                                         <video  class="video video-bloc-right video-img back-video " controls 
  378.                                                 {% if bgVideo %} poster="{{ asset(uploads_directory ~ bgVideo.media_bloc_path ~ '/' ~ bgVideo.media_bloc_file ) }}" {% endif %}
  379.                                         >
  380.                                             <source src="{{ asset(uploads_directory ~ video.media_bloc_path ~ '/' ~ video.media_bloc_file ) }}" type="video/mp4">
  381.                                         </video>
  382.                                         <button class="btn video-play play-pause-btn" ></button> 
  383.                                     </div>
  384.                                 {% endif %}
  385.                             </div>
  386.                         </div>
  387.                 </div>
  388.             {% endif %}
  389.         {%  elseif  bloc.type == constant('App\\Entity\\Blocs\\Bloc::TYPE_LABEL_BLOC') %}
  390.             {% if bloc.info_generic.classe == "bloc-3" %}
  391.                 {% if bloc.isShowTitle  != null %}
  392.                     {{ bloc.title | raw  }}
  393.                 {% endif %}
  394.                 <div class="row">
  395.                     {% for lab in bloc.label %}
  396.                         <div class="col-md-{{lab.colBlocLabelSlide}}">
  397.                             <img src="{{ asset('uploads/' ~ lab.media_label_slider_path ~ '/' ~ lab.media_label_slider_file) }}" alt="{{lab.media_label_slider_path}}" class="mx-auto d-block img-fluid">
  398.                             <div class="box-content">
  399.                                 {% if lab.show_name  != null %}
  400.                                     <h4>{{ lab.label_slider_name }}</h4>
  401.                                 {% endif %}
  402.                                 {{ lab.label_slider_description | raw }}
  403.                             </div>
  404.                         </div>
  405.                     {% endfor %}
  406.                 </div>
  407.             {% endif %}
  408.             {% if bloc.info_generic.classe == "section-functions" %}
  409.             <div class="title">
  410.                 {% if bloc.isShowTitle  != null %}
  411.                     {{ bloc.title | raw  }}
  412.                 {% endif %}
  413.             </div>
  414.             <div class="content-functions">
  415.                 <div class="row">
  416.                     {% for lab in bloc.label %}
  417.                     <div class="col-lg-{{lab.colBlocLabelSlide}} col-md-6 col-12 text-center">
  418.                         <div class="icone-function">
  419.                             <img src="{{ asset('uploads/' ~ lab.media_label_slider_path ~ '/' ~ lab.media_label_slider_file) }}" alt="{{lab.media_label_slider_path}}" class="img-fluid">
  420.                         </div>
  421.                         <div class="content-function">
  422.                             {% if lab.show_name  != null %}
  423.                             <h3>{{ lab.label_slider_name }}</h3>
  424.                             {% endif %}
  425.                             {{ lab.label_slider_description | raw }}
  426.                         </div>
  427.                     </div>
  428.                     {% endfor %}
  429.                 </div>
  430.             </div>
  431.             {% endif %}
  432.             {% if bloc.info_generic.classe == "bloc-2" %}
  433.                 {% if bloc.isShowTitle  != null %}
  434.                     {{ bloc.title | raw  }}
  435.                 {% endif %}
  436.                 <div class="row">
  437.                     {% for lab in bloc.label %}
  438.                         <div class="col-lg-{{lab.colBlocLabelSlide}}">
  439.                             <img src="{{ asset('uploads/' ~ lab.media_label_slider_path ~ '/' ~ lab.media_label_slider_file) }}" alt="{{lab.media_label_slider_path}}" class="mx-auto d-block img-fluid">
  440.                             {% if lab.show_name  != null %}
  441.                                 <h4>{{ lab.label_slider_name }}</h4>
  442.                             {% endif %}
  443.                             <div class="box-content">
  444.                                 {{ lab.label_slider_description | raw }}
  445.                             </div>
  446.                         </div>
  447.                     {% endfor %}
  448.                 </div>
  449.             {% endif %}
  450.             {% if bloc.info_generic.classe == "bloc-3-carrousel" %}
  451.                 {% if bloc.isShowTitle  != null %}
  452.                     {{ bloc.title | raw  }}
  453.                 {% endif %}
  454.                 <div class="row">
  455.                     <div class="col-md-12">
  456.                         <div class="carrousel-box">
  457.                             <div class="owl-carousel owl-theme box " id="car">
  458.                                 {% for lab in bloc.label %}
  459.                                     <div class="item text-center">
  460.                                         <img src="{{ asset('uploads/' ~ lab.media_label_slider_path ~ '/' ~ lab.media_label_slider_file) }}" alt="{{lab.media_label_slider_path}}" class="img-fluid img-box">
  461.                                         <div class="box-content">
  462.                                             {% if lab.show_name  != null %}
  463.                                                 <h4>{{ lab.label_slider_name }}</h4>
  464.                                             {% endif %}
  465.                                             {{ lab.label_slider_description | raw }}
  466.                                         </div>
  467.                                     </div>
  468.                                 {% endfor %}
  469.                             </div>
  470.                         </div>
  471.                     </div>
  472.                 </div>
  473.             {% endif %}
  474.             {% if bloc.info_generic.classe == "section-avantage-content" %}
  475.                 {% if bloc.isShowTitle  != null %}
  476.                     {{ bloc.title | raw  }}
  477.                 {% endif %}
  478.                 <div class="{{bloc.info_generic.classe}}">
  479.                     <div class="row justify-content-center">
  480.                         <div class="col-lg-10">
  481.                             <div class="row align-items-start">
  482.                                 {% for lab in bloc.label %}
  483.                                     <div class="col-md-{{lab.colBlocLabelSlide}}">
  484.                                         <div class="avantage-box">
  485.                                             <img src="{{ asset('uploads/' ~ lab.media_label_slider_path ~ '/' ~ lab.media_label_slider_file) }}" alt="{{lab.media_label_slider_path}}" class="img-fluid">
  486.                                             <div class="text-box-avantage">
  487.                                                 {% if lab.show_name  != null %}
  488.                                                     <h3>{{ lab.label_slider_name }}</h3>
  489.                                                 {% endif %}
  490.                                                 {{ lab.label_slider_description | raw }}
  491.                                             </div>
  492.                                         </div>
  493.                                     </div>
  494.                                 {% endfor %}
  495.                             </div>
  496.                         </div>
  497.                     </div>
  498.                 </div>
  499.             {% endif %}
  500.             {% if bloc.info_generic.classe == "block-team-dirig" %}
  501.                 {% if bloc.isShowTitle  != null %}
  502.                     <div class="col-md-12">
  503.                         {{ bloc.title | raw  }}
  504.                     </div>
  505.                 {% endif %}
  506.                   <div class="col-md-12">
  507.                     {% for lab in bloc.label %}
  508.                         <div class="row team-dirig">
  509.                             <div class="col-md-3 team-title-photo text-center">
  510.                                 <div class="img-team-2" style="background-image: url({{ asset('uploads/' ~ lab.media_label_slider_path ~ '/' ~ lab.media_label_slider_file) }}) !important"></div>
  511.                                 <p class="name">{{ lab.label_slider_name }}</p>
  512.                                 <p class="title">{{ lab.label_slider_second_name }}</p>
  513.                                 <a href="{{ lab.link }}" target="_blank">
  514.                                     <img src="{{ asset('img/linkedin.svg') }}" alt="">
  515.                                 </a>
  516.                             </div>
  517.                             <div class="col-md-{{lab.colBlocLabelSlide}} team-description">
  518.                                 {{ lab.label_slider_description | raw }}
  519.                             </div>
  520.                         </div>
  521.                     {% endfor %}    
  522.                 </div>
  523.             {% endif %}
  524.         {%  elseif  bloc.type == constant('App\\Entity\\Blocs\\Bloc::TYPE_BENEFICE_BLOC') %}
  525.         {% if bloc.isShowTitle  != null or bloc.description  != null %}
  526.             <div class="row justify-content-center align-items-center mb-5">
  527.                 <div class="col-md-12">
  528.                     {% if bloc.isShowTitle  != null %}
  529.                         {{ bloc.title | raw  }}
  530.                     {% endif %}
  531.                     {% if bloc.description  != null %}
  532.                         {{ bloc.description | raw  }}
  533.                     {% endif %}
  534.                 </div>
  535.             </div>
  536.         {% endif %}
  537.             <div class="row mt-5 mb-5 align-items-start">
  538.                 {% for benefice in bloc.benefice %}
  539.                     <div class="col-md-{{benefice.colBeneficeItems}}">
  540.                         <div class="{{benefice.classe_benefice_items}} text-center">
  541.                             <img src="{{ asset('uploads/' ~ benefice.media_benefice_items_path ~ '/' ~ benefice.media_benefice_items_file) }}" alt="{{benefice.media_benefice_items_title}}" class="img-fluid">
  542.                             <div class="card-body text-left">
  543.                                 {{ benefice.benefice_items_description | raw }}
  544.                             </div>
  545.                             {% if benefice.benefice_items_link  != null %}
  546.                                 <a class="btn card-all-agence" style="text-align: center !important;" href="{{benefice.benefice_items_link}}">{{ 'front.actions.learn_more'|trans({}, 'front') | upper }}</a>
  547.                             {% endif %}
  548.                         </div>
  549.                     </div>
  550.                 {% endfor %}
  551.             </div>
  552.         {%  elseif  bloc.type == constant('App\\Entity\\Blocs\\Bloc::TYPE_IMAGE_CARD_BLOC') %}
  553.         {% set media = bloc.medias | first %}
  554.             {% if  bloc.positionImage ==  constant('App\\Entity\\medias\\Media::POSITION_RIGHT') %}
  555.             <div class="row ">
  556.                 <div class="col-md-{{ bloc.colCard }}  align-self-center box-win visible-mobile">
  557.                     {% for benefice in bloc.image_card %}
  558.                         <div class="col-md-{{benefice.colBeneficeItems}}">
  559.                             <div class="{{benefice.classe_benefice_items}} content_card text-center">
  560.                                 <img src="{{ asset('uploads/' ~ benefice.media_benefice_items_path ~ '/' ~ benefice.media_benefice_items_file) }}" alt="{{benefice.media_benefice_items_title}}" class="img-fluid">
  561.                                 <div class="card-body text-left">
  562.                                     {{ benefice.benefice_items_description | raw }}
  563.                                 </div>
  564.                                 {% if benefice.benefice_items_link  != null %}
  565.                                     <a class="btn card-all-agence" style="text-align: center !important;" href="{{benefice.benefice_items_link}}">{{ 'front.actions.learn_more'|trans({}, 'front') | upper }}</a>
  566.                                 {% endif %}
  567.                             </div>
  568.                         </div>
  569.                     {% endfor %}
  570.                 </div>
  571.                 <div class="col-md-{{ bloc.colImage }} align-self-center bloc-mobile orderBox2">
  572.                     <div class="img-mobile wp">
  573.                         {% if bloc.isShowTitle  != null and bloc.isBtn  != null   %}
  574.                             <div class="titre-accordien-1">{{ bloc.title | raw  }}
  575.                             </div>
  576.                         {% endif %}
  577.                         {% if media %}
  578.                             <img class="img-fluid" src="{{ asset(uploads_directory ~ media.media_bloc_path ~ '/' ~ media.media_bloc_file) }}" alt="{{ media.media_bloc_title }}">
  579.                         {% endif %}
  580.                     </div>
  581.                 </div>
  582.             </div>
  583.             {% elseif  bloc.positionImage ==  constant('App\\Entity\\medias\\Media::POSITION_LEFT') %}
  584.             <div class="row">
  585.                 <div class="col-md-{{ bloc.colImage }} align-self-center">
  586.                     <div class="img-mobile wp">
  587.                         {% if bloc.isShowTitle  != null and bloc.isBtn  != null  %}
  588.                             <div class="titre-accordien-1">{{ bloc.title | raw  }}</div>
  589.                         {% endif %}
  590.                         {% if media %}
  591.                             <img class="img-fluid" src="{{ asset(uploads_directory ~ media.media_bloc_path ~ '/' ~ media.media_bloc_file) }}" alt="{{ media.media_bloc_title }}">
  592.                         {% endif %}
  593.                     </div>
  594.                 </div>
  595.                 <div class="col-md-{{ bloc.colCard }}  align-self-center  box-down{{ bloc.classe }} visible-mobile">
  596.                     {% for benefice in bloc.image_card %}
  597.                         <div class="col-md-{{benefice.colBeneficeItems}}">
  598.                             <div class="{{benefice.classe_benefice_items}} content_card  text-center">
  599.                                 <img src="{{ asset('uploads/' ~ benefice.media_benefice_items_path ~ '/' ~ benefice.media_benefice_items_file) }}" alt="{{benefice.media_benefice_items_title}}" class="img-fluid">
  600.                                 <div class="card-body text-left">
  601.                                     {{ benefice.benefice_items_description | raw }}
  602.                                 </div>
  603.                                 {% if benefice.benefice_items_link  != null %}
  604.                                     <a class="btn card-all-agence" style="text-align: center !important;" href="{{benefice.benefice_items_link}}">{{ 'front.actions.learn_more'|trans({}, 'front') | upper }}</a>
  605.                                 {% endif %}
  606.                             </div>
  607.                         </div>
  608.                     {% endfor %}
  609.                 </div>
  610.             </div>
  611.             {% endif %}
  612.         {% endif %}
  613.     </div>
  614. </div>
  615. {% include "front/layouts/modal-pack.html.twig" %}