templates/front/detail/detail-seminaire-inter.html.twig line 1

Open in your IDE?
  1. {% extends 'front.html.twig' %}
  2. {% block title %}Détail Séminaire internationaux | CIMEF-INTERNATIONAL{% endblock %}
  3. {% block styleSheets %}
  4. <style id='wp-emoji-styles-inline-css' type='text/css'>
  5. #map {
  6.     height: 500px;
  7.     width: 100%;
  8. }
  9. .row {
  10.     display: flex;            /* flexbox pour aligner les colonnes */
  11.     flex-wrap: wrap;          /* les colonnes passent à la ligne si nécessaire */
  12.     margin-right: -0.75rem;   /* -gutter/2 */
  13.     margin-left: -0.75rem;    /* -gutter/2 */
  14. }
  15. .btn-register {
  16.     background-color: #ff6600;
  17.     color: #fff;
  18.     font-weight: bold;
  19.     margin-top: 10px;
  20.     text-align: center; 
  21.     border: 1px solid #ff6600!important; 
  22.     width: 100% !important;
  23.     padding: 10px;
  24.     border-radius: 2px;
  25. }
  26. .btn-register:hover {
  27.     background-color: #051a53;
  28.     color: #fff;
  29.     margin-top: 10px;
  30.     text-align: center; 
  31.     border: 1px solid #051a53!important; 
  32.     width: 100% !important;
  33.     padding: 10px;
  34.     border-radius: 2px;
  35. }
  36. .text-lien{
  37.    color: #ff6600;
  38.    font-size: 16px;
  39. }
  40. .mon-div-fixe {
  41.     position: fixed;
  42.     top: 250px;     /* distance du haut */
  43.     /* right: 20px;   distance de la droite */
  44.     z-index: 9999; /* pour passer au-dessus des autres éléments */
  45. }
  46. .btn-fichier{
  47.     margin-bottom: 30px; background: #ff6600; padding: 10px; height: 70px; width: 100%; line-height: 50px;
  48. }
  49. .btn-fichier:hover{
  50.     margin-bottom: 30px; background: #051a53; padding: 10px; height: 70px; width: 100%;
  51. }
  52. .shadow {
  53.     box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
  54. }
  55. .header_title{ font-size: 25px !important; text-transform: lowercase; color: #fff!important; font-weight: bold !important; }
  56. /* Small devices ≥576px */
  57. @media (min-width: 576px) {
  58.   .col-3 { flex: 0 0 100%; max-width: 100%; }
  59.   .col-sm-4 { flex: 0 0 100%; max-width: 100%; }
  60.   .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
  61.   .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  62.   .header_title{ font-size: 20px; text-transform: lowercase; color: #fff!important; }
  63.   .header_banner_el { padding: 10px!important; }
  64. }
  65. /* Medium devices ≥768px */
  66. @media (min-width: 768px) {
  67.   .col-md-3 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  68.   .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  69.   .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  70.   .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  71. }
  72. /* Large devices ≥992px */
  73. @media (min-width: 992px) {
  74.   .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  75.   .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  76.   .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  77.   .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
  78. }
  79. .wrap_header_banner .overlay-slider {
  80.     position: absolute;
  81.     top: 0;
  82.     left: 0;
  83.     padding-top: 30px; 
  84.     width: 100%;
  85.     height: 100%;
  86.     background-color: rgba(0, 0, 0, 0.6392156863);
  87. }
  88. </style>
  89. {% endblock %}
  90. {% block mapjs %}
  91.     <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"/>
  92.     <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
  93. {% endblock %}
  94. {% block body %}
  95. {% include 'section/navbar.html.twig' %}
  96. <div class="wrap_header_banner" style="height: 200px; background: url({{ asset('public/inter/wp-content/uploads/2023/06/header-banner.jpg')}});">
  97.     <div class="overlay-slider">
  98.         <div class="row_site">
  99.             <div class="container_site">
  100.                 <div class="cover_color"></div>
  101.                 <div class="header_banner_el">
  102.                     {% if query != null %}
  103.                         {% for f in query %}
  104.                     <div class="header_breadcrumbs">
  105.                         <div id="breadcrumbs">
  106.                             <ul class="breadcrumb">
  107.                                 <li><a href="{{ path('front.inter.index') }}" style="color: #fff!important;" title="accueil">Accueil</a></li>
  108.                                 <li class="li_separator"><span class="separator"><i class="ovaicon-next" style="color: #fff!important;"></i></span></li>
  109.                                 <li style="color: #fff!important; text-transform: lowercase;">Formations</li>
  110.                                 <li class="li_separator"><span class="separator"><i class="ovaicon-next" style="color: #fff!important;"></i></span></li>
  111.                                 <li style="color: #fff!important; text-transform: lowercase;">{{ type }}</li>
  112.                                 <li class="li_separator"><span class="separator"><i class="ovaicon-next" style="color: #fff!important;"></i></span></li>
  113.                                 <!--
  114.                                 <li style="color: #fff!important; text-transform: lowercase;">{{ f.thmnom }}</li>
  115.                                 -->
  116.                             </ul>
  117.                         </div>
  118.                     </div>
  119.                     <h1 class="header_title">{{ f.nom }} </h1>
  120.                         {% endfor %}
  121.                     {% endif %}
  122.                 </div>
  123.             </div>
  124.         </div>
  125.     </div>
  126. </div>
  127.        <style id="elementor-post-1308">.elementor-1308 .elementor-element.elementor-element-6df1039{margin-top:0px;margin-bottom:110px;}.elementor-1308 .elementor-element.elementor-element-7668bb9 .ovaev-event-title{font-size:30px;}.elementor-1308 .elementor-element.elementor-element-5dc2e39 > .elementor-widget-container{margin:0px 0px 35px 0px;}.elementor-1308 .elementor-element.elementor-element-ee883c9 > .elementor-widget-wrap > .elementor-widget:not(.elementor-widget__width-auto):not(.elementor-widget__width-initial):not(:last-child):not(.elementor-absolute){margin-bottom:30px;}.elementor-1308 .elementor-element.elementor-element-ee883c9 > .elementor-element-populated{margin:-50px 0px 0px 10px;--e-column-margin-right:0px;--e-column-margin-left:10px;}@media(max-width:1024px){.elementor-1308 .elementor-element.elementor-element-6df1039{margin-top:0px;margin-bottom:80px;}.elementor-1308 .elementor-element.elementor-element-ee883c9 > .elementor-element-populated{margin:0px 0px 0px 0px;--e-column-margin-right:0px;--e-column-margin-left:0px;}}@media(max-width:767px){.elementor-1308 .elementor-element.elementor-element-7668bb9 > .elementor-widget-container{margin:0px 0px 20px 0px;}.elementor-1308 .elementor-element.elementor-element-ff09908 > .elementor-widget-container{margin:0px 0px 50px 0px;}}@media(min-width:768px){.elementor-1308 .elementor-element.elementor-element-d6d4b6c{width:67%;}.elementor-1308 .elementor-element.elementor-element-ee883c9{width:33%;}}</style>
  128.         <div data-elementor-type="page" data-elementor-id="1308" class="elementor elementor-1308">
  129.         {% if query != null %}
  130.             {% for f in query %}
  131.             <section class="elementor-section elementor-top-section elementor-element elementor-element-6df1039 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6df1039" data-element_type="section">
  132.                 <div class="elementor-container elementor-column-gap-default">
  133.                 <div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-d6d4b6c" data-id="d6d4b6c" data-element_type="column">
  134.                     <div class="elementor-widget-wrap elementor-element-populated">
  135.                         <div class="elementor-element elementor-element-7668bb9 elementor-widget elementor-widget-ova_event_title" data-id="7668bb9" data-element_type="widget" data-widget_type="ova_event_title.default">
  136.                             <div class="elementor-widget-container">
  137.                                 <h1 class="ovaev-event-title" style="font-family: Arial; font-weight: bold; font-size: 25px;">
  138.                                     {{ f.nom }}                    
  139.                                 </h1>
  140.                             </div>
  141.                             <div class="elementor-widget-container">
  142.                                 <h5 class="ovaev-event-title" style="font-size: 25px; color: #ff6600; font-family: Arial;font-weight: bolder;">
  143.                                     {{ f.thmnom }}                    
  144.                                 </h5>
  145.                             </div>
  146.                         </div>
  147.                         <div class="elementor-element elementor-element-e0d81c8 elementor-widget elementor-widget-ova_event_content" data-id="e0d81c8" data-element_type="widget" data-widget_type="ova_event_content.default">
  148.                             <div class="elementor-widget-container">
  149.                                 <div class="ovaev-event-content">
  150.                                     {% if f.description != null %}
  151.                                         {{ f.description|raw }}
  152.                                     {% else %}
  153.                                         <p>The City Government is excited to announce an upcoming event that will showcase all the amazing things our community has to offer. Join us on Saturday for our community fair, where local vendors, artists, and organizations will come together to showcase their products and services.</p>
  154.                                         <p>This fun-filled event will feature live music performances, food trucks, children&#8217;s activities, and much more. Meet local business owners and community leaders and learn about their vision for our city&#8217;s future. There will also be opportunities to learn more about local government initiatives and community development projects.</p>
  155.                                         <h2 class="wp-block-heading">Event requirements</h2>
  156.                                         <p>This event is free and open to the public, so bring your family and friends along to enjoy a day of fun and community spirit. We look forward to seeing you there!</p>
  157.                                         
  158.                                     {% endif %}
  159.                                 </div>
  160.                             </div>
  161.                         </div>
  162.                     </div>
  163.                 </div>
  164.                 <div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-ee883c9" data-id="ee883c9" data-element_type="column">
  165.                     <div class="elementor-widget-wrap elementor-element-populated">
  166.                         <div  class="elementor-element elementor-element-bdfb755 elementor-widget elementor-widget-ova_event_info" data-id="bdfb755" data-element_type="widget" data-widget_type="ova_event_info.default">
  167.                             <div class="elementor-widget-container">
  168.                             <div class="ovaev-event-info">
  169.                                 <div class="row">
  170.                                     <div class="col-md-2">
  171.                                         <span class="label"><i class="fa fa-calendar-o" aria-hidden="true"></i> </span>
  172.                                     </div>
  173.                                     <div class="col-md-10">
  174.                                         <span class="info"><b style="color: #051a53;">{{ f.dates_session}} {{ annee }}</b></span>
  175.                                     </div>
  176.                                 </div>
  177.                                 <div class="row" style="margin-top: 30px !important;">
  178.                                     <div class="col-md-2">
  179.                                         <span class="label"><i class="fa fa-map-marker" aria-hidden="true"></i> </span>
  180.                                     </div>
  181.                                     <div class="col-md-10">
  182.                                         <span class="info"><b style="color: #051a53;">{{ f.pays }}, {{ f.vilnom }}</b></span>
  183.                                     </div>
  184.                                 </div>
  185.                                 <div class="row" style="margin-top: 20px !important; margin-bottom: 20px !important;">
  186.                                     <div class="col-md-2">
  187.                                         <span class="label"><i class="fa fa-money" aria-hidden="true"></i> </span>
  188.                                     </div>
  189.                                     <div class="col-md-10">
  190.                                         <span class="info"><b style="color: #051a53;">{{ f.prix }} {{ f.devise }}</b></span>
  191.                                     </div>
  192.                                 </div>
  193.                                 <!--
  194.                                 <ul class="info-contact">
  195.                                     <li>
  196.                                         <span class="label"><i class="fa fa-calendar-o" aria-hidden="true"></i> </span>
  197.                                         <span class="info">{{ f.dates_session}} {{ annee }}</span>
  198.                                     </li>
  199.                                     <li style="margin-top: -10px !important;">
  200.                                         <span class="label"><i class="fa fa-map-marker" aria-hidden="true"></i></span>
  201.                                         <span class="info">{{ f.pays }}, {{ f.vilnom }}</span>
  202.                                     </li>
  203.                                     <li style="margin-top: -10px;">
  204.                                         <span class="label"><i class="fa fa-money" aria-hidden="true"></i></span>
  205.                                         <span class="info">
  206.                                             <a href="https://demo.ovathemewp.com/gimont/event_category/museum/" title="Museum">{{ f.prix }} {{ f.devise }}</a>
  207.                                         </span>                        
  208.                                     </li>
  209.                                 </ul>
  210.                                 -->
  211.                         
  212.                                 
  213.                                 <a href="{{ path('front.inscription',{'slug': f.slug, 'id': f.id,'seminaires': 'seminaires interantionaux'}) }}">
  214.                                     <div class="btn-register" style="">
  215.                                         S'inscrire        
  216.                                     </div>
  217.                                 </a>
  218.                             
  219.                             </div>
  220.                             </div>
  221.                         </div>
  222.                         <div class="shadow btn-fichier">
  223.                             <a href="{{ asset('public/catalogues/Catalogue_2026_CIMEF_INTERNATIONAL.pdf') }}">
  224.                                 <div class="row">
  225.                                     <div class="col-md-2 col-sm-12" style="text-align: center;">
  226.                                         <a href="{{ asset('public/catalogues/Catalogue_2026_CIMEF_INTERNATIONAL.pdf') }}" title="Download files" class="icon" data-id="829">
  227.                                             <i class="gimonticon-download" style="font-size: 22px; color: #fff;" aria-hidden="true"></i>
  228.                                         </a>    
  229.                                     </div>
  230.                                     <div class="col-md-10 col-sm-12">
  231.                                         <a href="{{ asset('public/catalogues/Catalogue_2026_CIMEF_INTERNATIONAL.pdf') }}">
  232.                                         <label style="color: #fff; font-size: 20px; font-family: arial; cursor: pointer;">Télécharger le catalogue 2026</h3>
  233.                                         </a>
  234.                                     </div>
  235.                                 </div>
  236.                             </a>
  237.                         </div>
  238.                         <div class="elementor-element elementor-element-4d96d43 elementor-widget elementor-widget-ova_event_location" 
  239.                         data-id="4d96d43" data-element_type="widget" data-widget_type="ova_event_location.default">
  240.                             <div class="elementor-widget-container">
  241.                                 <div id="map"></div>
  242.                             </div>
  243.                         </div>
  244.                     </div>
  245.                 </div>
  246.                 </div>
  247.             </section>
  248.             {% endfor %}
  249.         {% else %}
  250.             <div style="margin-top: 20px; text-align: justify;">
  251.                 <h2>Informations indisponible</h2>
  252.             </div>
  253.         {% endif %}
  254.         </div>
  255.       </div>
  256.   
  257.   <script>
  258.     // Icône personnalisée
  259.     var customIcon = L.icon({
  260.         iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-red.png',
  261.         shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png',
  262.         iconSize: [25, 41],
  263.         iconAnchor: [12, 41],
  264.         popupAnchor: [1, -34]
  265.     });
  266.     // Layers de base
  267.     var planLayer = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
  268.         attribution: '&copy; OpenStreetMap contributors'
  269.     });
  270.     var satelliteLayer = L.tileLayer(
  271.         'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',
  272.         {
  273.             attribution: '© Esri, Maxar'
  274.         }
  275.     );
  276.     // Initialisation de la carte (Plan par défaut)
  277.     var map = L.map('map', {
  278.         center: [20, 0],
  279.         zoom: 2,
  280.         layers: [planLayer]
  281.     });
  282.     // Bouton Plan / Satellite
  283.     L.control.layers({
  284.         "Plan": planLayer,
  285.         "Satellite": satelliteLayer
  286.     }).addTo(map);
  287.     // Données venant de Twig
  288.     var locations = {{ locations|json_encode|raw }};
  289.     var markers = [];
  290.     
  291.     locations.forEach(function(location) {
  292.     var marker = L.marker([location.lat, location.lng], { icon: customIcon })
  293.         .addTo(map)
  294.         .bindPopup(`
  295.             <strong>${location.ville}</strong><br>
  296.             <a href="https://www.google.com/maps?q=&layer=c&cbll=${location.lat},${location.lng}"
  297.                target="_blank">
  298.                Voir Street View
  299.             </a>
  300.         `);
  301.     markers.push(marker);
  302. });
  303. /*
  304.     locations.forEach(function(location) {
  305.         var marker = L.marker([location.lat, location.lng], { icon: customIcon })
  306.             .addTo(map)
  307.             .bindPopup(location.ville);
  308.         markers.push(marker);
  309.     });
  310.     */
  311.     // Zoom + ouverture popup
  312.     function zoomOn(lat, lng) {
  313.         map.setView([lat, lng], 12);
  314.         markers.forEach(function(marker) {
  315.             var position = marker.getLatLng();
  316.             if (position.lat === lat && position.lng === lng) {
  317.                 marker.openPopup();
  318.             }
  319.         });
  320.     }
  321.         
  322.     
  323. </script>
  324. </div>
  325.     {% include 'section/footer.html.twig' %}               
  326. {% endblock %}