templates/front/detail/detail-thematique.html.twig line 1

Open in your IDE?
  1. {% extends 'front.html.twig' %}
  2. {% block title %}Thématiques | {{ slug }} | CIMEF-INTERNATIONAL{% endblock %}
  3. {% block styleSheets %}
  4. <style id='wp-emoji-styles-inline-css' type='text/css'>
  5.     .shadow{
  6.         box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1), 0 3px 10px 0 rgba(0, 0, 0, 0.10);
  7.     }
  8.     label{
  9.         color: #ff6600;
  10.         font-weight: bold;
  11.     }
  12.     .events_pagination ul.pagination {
  13.         display: flex;
  14.         flex-wrap: wrap;
  15.         justify-content: center;
  16.         list-style: none;
  17.         margin: 0;
  18.         padding: 0;
  19.     }
  20.     .page-item.active .page-link {
  21.         background-color: #ff6600;
  22.         color: #fff;
  23.     }
  24.     .page-link {
  25.         margin: 10px;
  26.         color: #051a53;
  27.         background-color: #ededed;
  28.         border-radius: 5px;
  29.         padding: 10px;
  30.         /* margin: 0 3px; */
  31.     }
  32.     .titre-certificat{
  33.         color: #051a53;
  34.         font-family: arial !important;
  35.         font-size: 16px;
  36.         text-transform: uppercase !important;
  37.         line-height: 1.3;
  38.         font-weight: bold;
  39.     }
  40.     .lien-theme{
  41.         color: #051a53 !important;
  42.     }
  43.     .lien-theme:hover{
  44.         color: #ff6600;
  45.     }
  46.     .row {
  47.         display: flex;            /* flexbox pour aligner les colonnes */
  48.         flex-wrap: wrap;          /* les colonnes passent à la ligne si nécessaire */
  49.         margin-right: -0.75rem;   /* -gutter/2 */
  50.         margin-left: -0.75rem;    /* -gutter/2 */
  51.     }
  52.     .events_pagination ul.pagination {
  53.         display: flex;
  54.         flex-wrap: wrap;
  55.         justify-content: center;
  56.         list-style: none;
  57.         margin: 0;
  58.         padding: 0;
  59.     }
  60.     .page-item.active .page-link {
  61.         background-color: #ff6600;
  62.         color: #fff;
  63.     }
  64.     .page-link {
  65.         margin: 10px;
  66.         color: #051a53;
  67.         background-color: #ededed;
  68.         border-radius: 5px;
  69.         padding: 10px;
  70.         /* margin: 0 3px; */
  71.     }
  72.     .text-lien{
  73.        color: #ff6600;
  74.        /* font-size: 16px; */
  75.     }
  76.     /* Small devices ≥576px */
  77.     @media (min-width: 576px) {
  78.       .col-3 { flex: 0 0 100%; max-width: 100%; }
  79.       .col-sm-4 { flex: 0 0 100%; max-width: 100%; }
  80.       .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
  81.       .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  82.     }
  83.     /* Medium devices ≥768px */
  84.     @media (min-width: 768px) {
  85.       .col-md-3 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  86.       .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  87.       .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  88.       .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  89.     }
  90.     /* Large devices ≥992px */
  91.     @media (min-width: 992px) {
  92.       .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  93.       .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  94.       .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  95.       .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
  96.     }
  97.     .type1 .date-event {
  98.         transition: all 0.5s ease;
  99.         position: absolute;
  100.         bottom: 20px;
  101.         left: 30px;
  102.         z-index: 1;
  103.         font-size: 12px;
  104.         color: #fff;
  105.         font-weight: 700;
  106.         text-transform: uppercase;
  107.         text-align: center;
  108.         line-height: 1.3;
  109.         letter-spacing: 1px;
  110.         background-color: #ff6600 !important;
  111.         padding: 12px;
  112.     }
  113.     .icon_event{
  114.         color: #ff6600 !important;
  115.     }
  116.     .wrap_header_banner .overlay-slider {
  117.         position: absolute;
  118.         top: 0;
  119.         left: 0;
  120.         padding-top: 30px; 
  121.         width: 100%;
  122.         height: 100%;
  123.         background-color: rgba(0, 0, 0, 0.6392156863);
  124.     }
  125. </style>
  126. {% endblock %}
  127. {% block body %}
  128. {% include 'section/navbar.html.twig' %}
  129. <div class="wrap_header_banner" style="height: 200px; background: url({{ asset('public/inter/wp-content/uploads/2023/06/header-banner.jpg')}});">
  130.     <div class="overlay-slider">
  131.         <div class="row_site">
  132.             <div class="container_site">
  133.                 <div class="cover_color"></div>
  134.                 <div class="header_banner_el">
  135.                     <div class="header_breadcrumbs">
  136.                         <div id="breadcrumbs">
  137.                         <ul class="breadcrumb">
  138.                             <li><a href="{{ path('front.inter.index') }}" style="color: #fff!important;" title="accueil">Accueil</a></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;">{{ nomThematique }}</li>
  141.                         </ul>
  142.                         </div>
  143.                     </div>
  144.                     <h1 class="header_title" style="color: #fff!important;">{{ nomThematique }}</h1>
  145.                 </div>
  146.             </div>
  147.         </div>
  148.     </div>
  149. </div>
  150. <div class="container-event">
  151.     <div id="sidebar-active" class="content-event">
  152.         {% if thematique != null %}
  153.         <div class="mb-5">
  154.             <label>Description :</label>
  155.             {% if thematique.description is empty %}
  156.                 <p>Aucune description disponible.</p>
  157.             {% else %}
  158.                 <p>{{ thematique.description|raw }}</p>
  159.             {% endif %}
  160.         </div>
  161.         {% endif %}
  162.         <div class="mb-2"></div>
  163.         <h3 style="font-family: Arial; font-weight: bold;">Thèmes</h3>
  164.         <div class="mt-4" style="height: 20px;"></div>
  165.         <div class="shadow" style="margin-bottom: 20px !impirtant; width: 100%; padding: 10px !important; border: 1px solid #cfcfcf; background-color: #F5F5F5 !important;">
  166.             <form method="POST">
  167.                 <div class="row" style="width: 100%; margin: 0px !important; padding: 0px !important;">
  168.                     <div class="col-md-12 col-sm-12">
  169.                         <input type="text" class="form-control" name="recherche" id="searchTheme" placeholder="Rechercher un thème..." style="width: 100%;" />
  170.                     </div>
  171.                 </div>
  172.             </form>
  173.         </div>
  174.         <div class="mt-4" style="height: 20px;"></div>
  175.         <!-- search form -->
  176.         
  177.         {% for pag in pagination %}
  178.             <div class="row theme-item" data-nom="{{ pag.nom|lower }}" style="padding: 10px; margin-bottom: 10px; border: 1px solid #cfcfcf; width: 100%; margin-left: 2px;">
  179.                 <div class="col-md-12 col-sm-12">
  180.                     <h3 class="titre-certificat">{{ pag.nom }}</h3>
  181.         
  182.                     <a href="{{ path('front.thematique.date.theme', {
  183.                         'slugThematique': slug,
  184.                         'slug': pag.slug
  185.                     }) }}">En savoir plus</a>
  186.                 </div>
  187.             </div>
  188.         {% endfor %}
  189.     </div>
  190.    {% include 'section/aside.html.twig' %}
  191. </div>
  192.    {% include 'section/footer.html.twig' %}
  193. <script>
  194. document.getElementById('searchTheme').addEventListener('keyup', function () {
  195.     let value = this.value.toLowerCase().trim();
  196.     let items = document.querySelectorAll('.theme-item');
  197.     items.forEach(function (item) {
  198.         let nom = item.dataset.nom;
  199.         if (nom.includes(value)) {
  200.             item.style.display = '';
  201.         } else {
  202.             item.style.display = 'none';
  203.         }
  204.     });
  205. });
  206. </script>
  207. {% endblock %}