templates/front/multimedia/video.html.twig line 1

Open in your IDE?
  1. {% extends 'front.html.twig' %}
  2. {% block title %}Multimédia | vidéo | CIMEF-INTERNATIONAL{% endblock %}
  3. {% block styleSheets %}
  4. <style id='wp-emoji-styles-inline-css' type='text/css'>
  5. .video-wrapper {
  6.     margin-top: 50px;
  7.     position: relative;
  8.     padding-bottom: 56.25%; /* 16:9 */
  9.     height: 0;
  10.     border-top-left-radius: 10px;
  11.     border-top-right-radius: 10px;
  12.     overflow: hidden;
  13.     box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
  14.                                0 6px 20px 0 rgba(0, 0, 0, 0.19);
  15. }
  16. .video-wrapper iframe {
  17.     position: absolute;
  18.     top: 0;
  19.     left: 0;
  20.     width: 100%;
  21.     height: 100%;
  22.     border: 0;
  23.     box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
  24.                                0 6px 20px 0 rgba(0, 0, 0, 0.19);
  25. }
  26. .search_archive_event{
  27.     border: 1px solid white !important;
  28. }
  29. .form-control{
  30.     width:95%;
  31.     height: auto;
  32.     padding:10px;
  33.     border-radius:1px !important;
  34.     font-family: arial;
  35.     margin: 10px;
  36.     border:1px solid #ccc;
  37. }
  38. .shadow{
  39.     box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1), 0 3px 10px 0 rgba(0, 0, 0, 0.10);
  40. }
  41. .row {
  42.     display: flex;            /* flexbox pour aligner les colonnes */
  43.     flex-wrap: wrap;          /* les colonnes passent à la ligne si nécessaire */
  44.     margin-right: -0.75rem;   /* -gutter/2 */
  45.     margin-left: -0.75rem;    /* -gutter/2 */
  46. }
  47. .events_pagination ul.pagination {
  48.     display: flex;
  49.     flex-wrap: wrap;
  50.     justify-content: center;
  51.     list-style: none;
  52.     margin: 0;
  53.     padding: 0;
  54. }
  55. .page-item.active .page-link {
  56.     background-color: #ff6600;
  57.     color: #fff;
  58. }
  59. .page-link {
  60.     margin: 10px;
  61.     color: #051a53;
  62.     background-color: #ededed;
  63.     border-radius: 5px;
  64.     padding: 10px;
  65.     /* margin: 0 3px; */
  66. }
  67. .text-lien{
  68.    color: #ff6600;
  69.    /* font-size: 16px; */
  70. }
  71. /* Small devices ≥576px */
  72. @media (min-width: 576px) {
  73.   .col-3 { flex: 0 0 100%; max-width: 100%; }
  74.   .col-sm-4 { flex: 0 0 100%; max-width: 100%; }
  75.   .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
  76.   .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  77. }
  78. /* Medium devices ≥768px */
  79. @media (min-width: 768px) {
  80.   .col-md-3 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  81.   .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  82.   .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  83.   .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  84. }
  85. /* Large devices ≥992px */
  86. @media (min-width: 992px) {
  87.   .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  88.   .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  89.   .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  90.   .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
  91. }
  92. .type1 .date-event {
  93.     transition: all 0.5s ease;
  94.     position: absolute;
  95.     bottom: 20px;
  96.     left: 30px;
  97.     z-index: 1;
  98.     font-size: 12px;
  99.     color: #fff;
  100.     font-weight: 700;
  101.     text-transform: uppercase;
  102.     text-align: center;
  103.     line-height: 1.3;
  104.     letter-spacing: 1px;
  105.     background-color: #ff6600 !important;
  106.     padding: 12px;
  107. }
  108. .icon_event{
  109.     color: #ff6600 !important;
  110. }
  111. .btn-rechercher{
  112.     margin-left: 10px !important;
  113. }
  114. .wrap_header_banner .overlay-slider {
  115.     position: absolute;
  116.     top: 0;
  117.     left: 0;
  118.     padding-top: 30px; 
  119.     width: 100%;
  120.     height: 100%;
  121.     background-color: rgba(0, 0, 0, 0.6392156863);
  122. }
  123. </style>
  124. {% endblock %}
  125. {% block body %}
  126. {% include 'section/navbar.html.twig' %}
  127. <div class="wrap_header_banner" style="height: 200px; background: url({{ asset('public/inter/wp-content/uploads/2023/06/header-banner.jpg')}});">
  128.     <div class="overlay-slider">
  129.         <div class="row_site">
  130.             <div class="container_site">
  131.                 <div class="cover_color"></div>
  132.                 <div class="header_banner_el">
  133.                     <div class="header_breadcrumbs">
  134.                         <div id="breadcrumbs">
  135.                         <ul class="breadcrumb">
  136.                             <li><a href="{{ path('front.inter.index') }}" style="color: #fff!important;" title="accueil">Accueil</a></li>
  137.                             <li class="li_separator"><span class="separator"><i class="ovaicon-next" style="color: #fff!important;"></i></span></li>
  138.                             <li style="color: #fff!important;">Multimédia</li>
  139.                             <li class="li_separator"><span class="separator"><i class="ovaicon-next" style="color: #fff!important;"></i></span></li>
  140.                             <li style="color: #fff!important;">vidéos</li>
  141.                         </ul>
  142.                         </div>
  143.                     </div>
  144.                     <h1 class="header_title" style="color: #fff!important;">CIMEF-INTERNATIONAL EN VIDEO</h1>
  145.                 </div>
  146.             </div>
  147.         </div>
  148.     </div>
  149. </div>
  150. {% for message in app.flashes('success') %}
  151. <div class="row toast_success" style="top: 100px !important; float: right !important; position: absolute;">
  152.     <div class="col-md-2 col-sm-2" style="padding: 10px;">
  153.         <i class="fa fa-check fa-2x" aria-hidden="true"></i>
  154.     </div>
  155.     <div class="col-md-10 col-sm-10" style="padding: 10px;">
  156.         <label style="font-family: arial;">{{ message }}</label>
  157.     </div>
  158. </div>    
  159. {% endfor %}
  160. {% for message in app.flashes('danger') %}
  161. <div class="row toast_danger" style="top: 100px !important; float: right !important; position: absolute;">
  162.     <div class="col-md-2 col-sm-2" style="padding: 10px;">
  163.         <i class="fa fa-check fa-2x" aria-hidden="true"></i>
  164.     </div>
  165.     <div class="col-md-10 col-sm-10" style="padding: 10px;">
  166.         <label style="font-family: arial;">{{ message }}</label>
  167.     </div>
  168. </div>   
  169. {% endfor %}
  170. <div class="container-event">
  171.     <div id="main-event" class="content-event">
  172.    
  173.         <div class="row" style="">
  174.             {% if videos != null %}
  175.                 {% for pag in videos %}
  176.                 <div class="col-lg-4 col-md-4 col-sm-12" style="padding: 10px;">
  177.                     <div class="type1 mb-2">
  178.                         <div class="desc">
  179.                             <div class="margin-top: -100px !important;">
  180.                                 <div class="video-wrapper no-click" style="">
  181.                                     {% if pag.lien != null  %}
  182.                                         <iframe 
  183.                                             style="border: 1px solid #ff6600 !important; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
  184.                                             0 6px 20px 0 rgba(0, 0, 0, 0.19);"
  185.                                             src="https://www.youtube.com/embed/{{ pag.lien }}?autoplay=1&mute=1&loop=1&playlist={{ pag.lien }}&controls=0&modestbranding=1&rel=0&showinfo=0&fs=0" 
  186.                                             title="CIMEF International : Un partenaire de confiance pour vos besoins en formation" 
  187.                                             frameborder="0" 
  188.                                             allow="autoplay; encrypted-media; picture-in-picture" 
  189.                                             referrerpolicy="strict-origin-when-cross-origin" allowfullscreen>
  190.                                             
  191.                                         </iframe>
  192.                                     {% endif %}
  193.                                 </div>
  194.                             </div>
  195.                         </div>
  196.                                         <div style="height: 55px;text-align: center !important; background-color: #ff6600; border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; ">
  197.                                             <label class="second_font event_title" style="font-weight: bold; color: #ededed; font-size: 14px !important;">
  198.                                                 {% if pag.titre|striptags|length > 120 %}
  199.                                                     {{ pag.titre|striptags|slice(0, 120) ~ '...' }}
  200.                                                 {% else %}
  201.                                                     {{ pag.titre|striptags }}
  202.                                                 {% endif %}
  203.                                             </label>
  204.                                         </div>
  205.                     </div>
  206.                 </div>
  207.                 {% endfor %}
  208.             {% else %}
  209.                 <div style="width: 100% !important; text-align: center !importanat;">
  210.                     <h1 style="font-family: arial;">Pas de vidéo disponible pour l'instant </h1>
  211.                 </div>
  212.             {% endif %}
  213.            
  214.         </div>
  215.     </div>
  216. </div>
  217. {% include 'section/footer.html.twig' %}
  218. {% endblock %}