templates/front/page-recherche.html.twig line 1

Open in your IDE?
  1. {% extends 'front.html.twig' %}
  2. {% block title %}Recherche | CIMEF-INTERNATIONAL{% endblock %}
  3. {% block meta_description %}
  4. <meta name="description" content="Suivez l'actualité de CIMEF International : formations, séminaires et conseils en management pour cadres et dirigeants en Afrique et à l'international."/>
  5. {% endblock %}
  6. {% block styleSheets %}
  7. <script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-element-bundle.min.js"></script>
  8. <style id='wp-emoji-styles-inline-css' type='text/css'>
  9.     .row{display:flex;flex-wrap:wrap;margin-right:-.75rem;margin-left:-.75rem}.events_pagination ul.pagination{display:flex;flex-wrap:wrap;justify-content:center;list-style:none;margin:0;padding:0}.page-item.active .page-link{background-color:#f60;color:#fff}.page-link{margin:10px;color:#051a53;background-color:#ededed;border-radius:5px;padding:10px}.text-lien{color:#f60}@media (min-width:576px){.col-3,.col-sm-12,.col-sm-4,.col-sm-6{flex:0 0 100%;max-width:100%}}@media (min-width:768px){.col-md-3,.col-md-4{flex:0 0 33.333333%;max-width:33.333333%}.col-md-6{flex:0 0 50%;max-width:50%}.col-md-12{flex:0 0 100%;max-width:100%}}@media (min-width:992px){.col-lg-3{flex:0 0 25%;max-width:25%}.col-lg-4{flex:0 0 33.333333%;max-width:33.333333%}.col-lg-6{flex:0 0 50%;max-width:50%}.col-lg-12{flex:0 0 100%;max-width:100%}}.type1 .date-event{transition:.5s;position:absolute;bottom:20px;left:30px;z-index:1;font-size:12px;color:#fff;font-weight:700;text-transform:uppercase;text-align:center;line-height:1.3;letter-spacing:1px;background-color:#f60!important;padding:12px}.icon_event{color:#f60!important}.wrap_header_banner .overlay-slider{position:absolute;top:0;left:0;padding-top:30px;width:100%;height:100%;background-color:rgba(0,0,0,.6392156863)}
  10. </style>
  11. {% endblock %}
  12. {% block body %}
  13. {% include 'section/navbar.html.twig' %}
  14. <div class="wrap_header_banner" style="height: 200px; background: url({{ asset('public/inter/table.jpeg')}});        
  15.         background-size: cover;
  16.         background-position: center;
  17.         background-repeat: no-repeat;">
  18.     <div class="overlay-slider">
  19.         <div class="row_site">
  20.             <div class="container_site">
  21.                 <div class="cover_color"></div>
  22.                 <div class="header_banner_el">
  23.                     <div class="header_breadcrumbs">
  24.                         <div id="breadcrumbs">
  25.                         <ul class="breadcrumb">
  26.                             <li><a href="{{ path('front.inter.index') }}" style="color: #fff!important;" title="accueil">Accueil</a></li>
  27.                             <li class="li_separator"><span class="separator"><i class="ovaicon-next" style="color: #fff!important;"></i></span></li>
  28.                             <li style="color: #fff!important;">recherche</li>
  29.                         </ul>
  30.                         </div>
  31.                     </div>
  32.                     <h1 class="header_title" style="color: #fff!important;">Résultats pour : {{ query }}</h1>
  33.                 </div>
  34.             </div>
  35.         </div>
  36.     </div>
  37. </div>
  38. <div class="container-event">
  39.     <div id="sidebar-active" class="content-event">
  40.       <!-- search form -->
  41.         <div class="mt-4" style="height: 20px;"></div>
  42.       <!-- search form -->
  43. {% set hasResults = false %}
  44. {% for table, items in results %}
  45.     {% if items is not empty %}
  46.         {% set hasResults = true %}
  47.     {% endif %}
  48. {% endfor %}
  49. {% if not hasResults %}
  50.     <div style="padding: 20px; text-align: center;">
  51.         <h3>Aucun résultat trouvé pour : "{{ query }}"</h3>
  52.         <p>Essayez d'autres mots-clés ou explorez nos thèmes disponibles.</p>
  53.     </div>
  54. {% else %}
  55.     {% for table, items in results %}
  56.         {% if items is not empty %}
  57.             {% for item in items %}
  58.                 <div class="row" style="padding: 10px; margin-bottom: 10px; border: 1px solid #cfcfcf; width: 100%; margin-left: 2px;">
  59.                     <div class="col-md-12 col-sm-12">
  60.                         <div style="margin-bottom: 20px;">
  61.                             <h3 class="titre-certificat">
  62.                                 {% if item.nom is defined and item.nom %}
  63.                                     {{ item.nom }}
  64.                                 {% elseif item.titre is defined and item.titre %}
  65.                                     {{ item.titre }}
  66.                                 {% elseif item.theme is defined and item.theme %}
  67.                                     {{ item.theme }}
  68.                                 {% elseif item.titremen is defined and item.titremen %}
  69.                                     {{ item.titremen }}
  70.                                 {% elseif item.detailmen is defined and item.detailmen %}
  71.                                     {{ item.detailmen|slice(0, 120)|raw }}...
  72.                                 {% elseif item.texte is defined and item.texte %}
  73.                                     {{ item.texte|slice(0, 150)|raw }}...
  74.                                 {% endif %}
  75.                             </h3>
  76.                         </div>
  77.                         <span style="text-transform: capitalize; color: #ff6600; font-weight: bold;">
  78.                             {% if table == 'themes' %}
  79.                                 Thèmes
  80.                             {% endif %}
  81.                         </span>
  82.                         {% if table == 'themes' %}
  83.                             {% if item.thematique %}
  84.                                 <a style="text-transform: lowercase; color: #ff6600; float: right;"
  85.                                    href="{{ path('front.thematique.date.theme', {'slugThematique': item.thematique.slug,'slug': item.slug}) }}">
  86.                                    En savoir plus
  87.                                 </a>
  88.                             {% endif %}
  89.                         {% endif %}
  90.                     </div>
  91.                 </div>
  92.             {% endfor %}
  93.         {% endif %}
  94.     {% endfor %}
  95. {% endif %}
  96.     </div>
  97.    
  98.    {% include 'section/aside.html.twig' %}
  99. </div>
  100.    {% include 'section/footer.html.twig' %}
  101. {% endblock %}