templates/Default/base.html.twig line 50

Open in your IDE?
  1. {% set hasReCaptcha = true %}
  2. {% extends 'Default/parameters.html.twig' %}
  3. {% block html %}
  4. <!doctype html>
  5. <html lang='fr' class='{{desktop("adapt")}}'>
  6.     <head>
  7.         <title>{{t}}</title>
  8.         <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
  9.         <meta name='description' content='{{d}}' />
  10.         <meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1' />
  11.         <meta property='fb:app_id' content='798097520521275' />
  12.         <meta property='og:url' content='{{app.request.uri}}' />
  13.         <meta property='og:type' content='article' />
  14.         <meta property='og:title' content='{{t}}' data-dynamic='true' />
  15.         <meta property='og:description' content='{{d}}' data-dynamic='true' />
  16.         <meta property='og:image' content='{{w}}{{thumb}}?v=001' data-dynamic='true' />
  17.         <meta property='og:image:width' content='{{thumbnailSize.width}}' data-dynamic='true'>
  18.         <meta property='og:image:height' content='{{thumbnailSize.height}}' data-dynamic='true'>
  19.         <meta property='og:locale' content='fr_FR' />
  20.         <meta property='og:site_name' content='{{sitename}}' />
  21.         <meta property='twitter:url' content='{{app.request.uri}}' />
  22.         <meta property='twitter:card' content='summary' />
  23.         <meta property='twitter:title' content='{{t}}' />
  24.         <meta property='twitter:description' content='{{d}}' />
  25.         <meta property='twitter:image' content='{{w}}{{thumb}}' />
  26.         <link rel="icon" href="{{asset('images/favicon.ico')}}?v=001">
  27.         <link type='text/css' rel='stylesheet' href='{{asset("css/os-style.css")}}?v=002' />
  28.         <link type='text/css' rel='stylesheet' href='{{asset("css/style.css")}}?v=004' />
  29.         <link type='text/css' rel='stylesheet' href='{{asset("css/os-anim.css")}}' />
  30.         <script src="https://kit.fontawesome.com/6451c614e6.js" crossorigin="anonymous"></script>
  31.         {% block css %}
  32.         {% endblock %}
  33.         {% if (hasReCaptcha ?? false) %}
  34.         <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  35.         {% endif %}
  36.     </head>
  37.     <body class='bg-white'>
  38.         {% block container %}
  39.         <div id='container' class='container relative w100 hoverflow'>
  40.             <header id='header' class='bg-white shadow-header fixed left top w100 hheight transition-1s gpadding {{desktop("")}} {{mobile("")}}'>
  41.             {% block header %}
  42.                 <div class='relative top flex row space fill transition-1s {{desktop("")}}'>
  43.                     <div class='relative fill flex row space {{desktop("")}} {{mobile("")}}'>
  44.                         <a href='{{path("home")}}' class='transition white h100 relative {{desktop(" vt-10-in")}} {{mobile("vt-10-in")}}'>
  45.                             <img src="{{asset(os_param('logo'))}}" class='block h100'>
  46.                         </a>
  47.                         {% block menu %}
  48.                         <div class="flex row middle space h100 {{desktop('w100')}}">
  49.                             <menu id='menu' class='fill transition-alt {{desktop("h100")}} {{mobile("bg-success fixed top left htop w100")}}'>
  50.                                 {{render(controller('App\\Controller\\DefaultController::menu',{activeMenu:(menu is defined ? menu)}))}}
  51.                             </menu>
  52.                         </div>
  53.                         {% endblock %}
  54.                         <div class="flex row middle">
  55.                             <span class="os-click flex row middle {{desktop('hz-10-in')}}{{mobile(' hz-5-in')}}" data-target="#searchBox">
  56.                                 <i class="icon w100 search h100 filter-black {{desktop('min')}}{{mobile('')}}"></i>
  57.                             </span>
  58.                             {% if isDesktop() %}
  59.                             <div class='h5 black flex row vt-10  {{mobile("center")}}'>
  60.                                 {% set social = os_param('socialmedia') %}
  61.                                 {% set class = "icon min fab left-5" %}
  62.                                 {% if social.whatsapp %}<a href='{{social.whatsapp}}' class='{{class}} fa-whatsapp' target="_blank" title="Nous écrire sur WhatsApp"></a>{% endif %}
  63.                                 {% if social.facebook %}<a href='{{social.facebook}}' class='{{class}} fa-facebook-square' target="_blank" title="Page Facebook officiel"></a>{% endif %}
  64.                                 {% if social.twitter %}<a href='{{social.twitter}}' class='{{class}} fa-twitter' target="_blank" title="Compte Twitter officiel"></a>{% endif %}
  65.                                 {% if social.youtube %}<a href='{{social.youtube}}' class='{{class}} fa-youtube' target="_blank" title="Compte Youtube officiel"></a>{% endif %}
  66.                                 {% if social.linkedin %}<a href='{{social.linkedin}}' class='{{class}} fa-linkedin' target="_blank" title="Compte Flickr officiel"></a>{% endif %}
  67.                             </div>
  68.                             {% endif %}
  69.                             {% if isMobile() %}
  70.                             <div id='btn-menu' class='left-10 flex col middle os-click' data-target='#menu'>
  71.                                 <i class='fa fa-bars h1 black'></i>
  72.                             </div>
  73.                             {% endif %}
  74.                         </div>
  75.                     </div>
  76.                 </div>
  77.             {% endblock header %}
  78.             </header>
  79.             {% block banner %}
  80.             <div id='banner' class='banner bg-success relative w100 htop-in {{desktop("")}} {{mobile("")}}'>
  81.                 <div class='relative flex row space w100 gpadding {{desktop("hpadding")}} {{mobile("vt-30-in")}}'>
  82.                     {% if banner is defined %}
  83.                     <div class="absolute fill top left">
  84.                         <figure class="fill relative hoverflow">
  85.                             <img src="{{banner}}" class="cover">
  86.                         </figure>
  87.                     </div>
  88.                     <i class="absolute top left fill gradient-banner"></i>
  89.                     {% endif %}
  90.                     {% block titlebox %}
  91.                     <div class='relative white w100 flex col {{desktop("top-20-in")}} {{mobile("")}}'>
  92.                         {% block title %}
  93.                         <h1 class='special-alt extrabold left-30-in'>
  94.                             <span class="home-title">{{titleAlt is defined ? titleAlt|replace({" **":" <strong class='extrabold'>","'**":"'<strong class='extrabold'>","**":"</strong>"})|raw : title is defined ? title : "Aucune donnée"}}</span>
  95.                         </h1>
  96.                         {% endblock title %}
  97.                         {% if description is defined or subtitle is defined %}
  98.                         <p class="h5 medium left-30-in upper {{desktop('half_80')}}">
  99.                         {{description is defined ? description|nl2br : subtitle}}
  100.                         </p>
  101.                         {% endif %}
  102.                     </div>
  103.                     {% endblock %}
  104.                 </div>
  105.             </div>
  106.             {% endblock banner %}
  107.             {% block body %}
  108.             <div id='content' class='bg-white content relative'>
  109.                 {% block content %}
  110.                 {% endblock content %}
  111.             </div>
  112.             {% endblock body %}
  113.             {% if not home and noShare is not defined %}
  114.             <div class='flex col middle center  bg-warning sharing-box gpadding {{desktop('vt-40-in')}} {{mobile('vt-20-in')}}'>
  115.                 <h2 class='h6 black upper vt-8-in font-alt bold'>Partager cette page</h2>
  116.                 <div class='flex row middle black'>
  117.                     {% set link = app.request.uri %}
  118.                     {% if title is not defined %}{% set title = "Site web du "~sitename %} {% endif %}
  119.                     {% set class = "iflex col middle center "~ desktop(' h4 hz-10')~ mobile(' h1 hz-8') %}
  120.                     <a class='{{class}}' title='Partager via WhatsApp' target='_blank' href='whatsapp://send?text={{title}} => {{link}}'><i class='transition fab fa-whatsapp'></i></a>
  121.                     <a class='{{class}}' title='Partager sur Facebook' target='_blank' href='https://www.facebook.com/sharer/sharer.php?u={{link}}&t={{title}}'><i class='transition fab fa-facebook-square'></i></a>
  122.                     <a class='{{class}}' title='Partager sur Twitter' target='_blank' href='https://twitter.com/intent/tweet?text={{title}}&url={{link}}'><i class='transition fab fa-twitter'></i></a>
  123.                     <a class='{{class}}' title='Envoyer par mail' target='_blank' href='mailto:?subject={{title}}&amp;body=Je vous invite à lire cette page :  {{link}}.'><i class='transition fa fa-envelope'></i></a>
  124.                     <a class='{{class}}' title='Partager sur LinkedIn' target='_blank' href='https://www.linkedin.com/shareArticle?mini=true&url={{link}}&title={{title}}'><i class='transition fab fa-linkedin'></i></a>
  125.                 </div>
  126.             </div>
  127.             {% endif %}
  128.             <div class="relative bg-warning gpadding">
  129.                 <div class="bg-black vt-60-in absolute bottom left w100"></div>
  130.                 {{render(controller('App\\Controller\\Front\\SubscribersFrontController::form',{}))}}
  131.                 {% if isDesktop() %}
  132.                 <div class="gwidth absolute bottom right">
  133.                     <div class="w100 flex row center">
  134.                         <a href="#banner" class="os-scroll relative icon bg-white circle {{desktop('padding-15')}}">
  135.                             <span href="#banner" class="block relative fill">
  136.                                 <img src="{{asset('icons/arrow-up.png')}}" class="contain">
  137.                             </span>
  138.                         </a>
  139.                     </div>
  140.                 </div>
  141.                 {% endif %}
  142.             </div>
  143.             {% block footer %}
  144.             <footer id="footer" class="bg-black relative gpadding white flex {{desktop('col htop-in bottom-40-in')}} {{mobile('col vt-40-in')}}">
  145.                 <div class="flex center middle {{desktop('row')}}{{mobile('col')}}">
  146.                     <div class="{{desktop("")}}">
  147.                         <figure class="relative hoverflow {{desktop('hheight hz-40-in')}} {{mobile('hz-60-in vt-10-in w100')}}">
  148.                             <img src="{{asset('images/ministere.png')}}" class="{{desktop('h100')}}{{mobile('w100')}}">
  149.                         </figure>
  150.                     </div>
  151.                     <div class="{{desktop("")}}">
  152.                         <figure class="relative hoverflow {{desktop('hheight hz-40-in')}} {{mobile('hz-60-in vt-10-in w100')}}">
  153.                             <img src="{{asset(os_param('logo'))}}" class="filter-white {{desktop('h100')}}{{mobile('w100')}}">
  154.                         </figure>
  155.                     </div>
  156.                     <div class="{{desktop("")}}">
  157.                         <figure class="relative hoverflow {{desktop('hheight hz-40-in')}} {{mobile('hz-60-in vt-10-in w100')}}">
  158.                             <img src="{{asset('images/cooperation-alt.png')}}" class="{{desktop('h100')}}{{mobile('w100')}}">
  159.                         </figure>
  160.                     </div>
  161.                 </div>
  162.                 <div class="w100 relative flex {{desktop('row space top-80')}}{{mobile('col center text-center')}}">
  163.                     {% set class = "block "~desktop("top-10")~mobile("vt-3-in") %}
  164.                     <div class="{{desktop('right-60')}} {{mobile('top-20')}}">
  165.                         <span class="upper gray medium" href="">Navigation</span>
  166.                         <ul class="flex col p-alt {{desktop('left-20-in')}} {{mobile('list')}}">
  167.                             <li class=""><a class="{{class}}" href="{{path('formations')}}">Formations</a></li>
  168.                             <li class=""><a class="{{class}}" href="{{path('events')}}">Colloques</a></li>
  169.                             <li class=""><a class="{{class}}" href="{{path('professions')}}">Professions</a></li>
  170.                             <li class=""><a class="{{class}}" href="{{path('articles')}}">Actualités</a></li>
  171.                             <li class=""><a class="{{class}}" href="{{path('resources')}}">Ressources</a></li>
  172.                         </ul>
  173.                     </div>
  174.                     <div class="{{desktop('right-60')}} {{mobile('top-20')}}">
  175.                         <span class="upper gray medium" href="">Liens utiles</span>
  176.                         <ul class="flex col p-alt {{desktop('left-20-in')}} {{mobile('list')}}">
  177.                             <li class=""><a class="{{class}}" href="https://www.gouv.bj" target="_blank">Gouvernement du Bénin</a></li>
  178.                             <li class=""><a class="{{class}}" href="https://beninrevele.bj" target="_blank">Programme d'Actions du Gouvernement</a></li>
  179.                             <li class=""><a class="{{class}}" href="https://justice.gouv.bj" target="_blank">Ministère de la Justice et de la Législation</a></li>
  180.                             <li class=""><a class="{{class}}" href="https://sgg.gouv.bj" target="_blank">Secrétariat général du Gouvernement</a></li>
  181.                             <li class=""><a class="{{class}}" href="https://european-union.europa.eu/index_fr" target="_blank">Union Européenne</a></li>
  182.                         </ul>
  183.                     </div>
  184.                     <div class="flex col {{desktop('left right-60')}} {{mobile('top-20')}}">
  185.                         <span class="upper gray medium" href="">Nos contacts</span>
  186.                         <ul class='p-alt white flex row {{mobile("center")}}'>
  187.                             <li class='relative flex col top  {{mobile("center")}}'>
  188.                                 <span class='vt-5-in flex row middle'>
  189.                                     <i class='fa fa-envelope top-5 right-10'></i>
  190.                                     <span>{{os_param("contacts").email}}</span>
  191.                                 </span>
  192.                                 <span class='vt-5-in flex row middle'>
  193.                                     <i class='fa fa-phone top-5 right-10'></i>
  194.                                     <span>{{os_param("contacts").phone}}</span>
  195.                                 </span>
  196.                             </li>
  197.                         </ul>
  198.                         <div class="flex row middle top-10 {{mobile('center')}}">
  199.                             {% set class="icon circle bg-white flex col middle center right-10 "~desktop('min')~mobile('') %}
  200.                             {% set social = os_param('socialmedia') %}
  201.                             {% if social.whatsapp %}<a href='{{social.whatsapp}}' class='{{class}}' target="_blank" title="Nous écrire sur WhatsApp"><i class="success fab fa-whatsapp"></i></a>{% endif %}
  202.                             {% if social.facebook %}<a href='{{social.facebook}}' class='{{class}}' target="_blank" title="Page Facebook officiel"><i class="success fab fa-facebook-f"></i></a>{% endif %}
  203.                             {% if social.twitter %}<a href='{{social.twitter}}' class='{{class}}' target="_blank" title="Compte Twitter officiel"><i class="success fab fa-twitter"></i></a>{% endif %}
  204.                             {% if social.youtube %}<a href='{{social.youtube}}' class='{{class}}' target="_blank" title="Compte Youtube officiel"><i class="success fab fa-youtube"></i></a>{% endif %}
  205.                             {% if social.linkedin %}<a href='{{social.linkedin}}' class='{{class}}' target="_blank" title="Compte Flickr officiel"><i class="success fab fa-flickr"></i></a>{% endif %}
  206.                         </div>
  207.                     </div>
  208.                 </div>
  209.                 <div class="flex col center text-center warning {{desktop('top-80')}}{{mobile('top-20')}}">
  210.                     <span>© Copyright 2022 - EFPJ</span>
  211.                     <span class="p-alt white vt-10">Financé par l'Union Européenne</span>
  212.                     <a href="{{path('page',{slug:'mentions-legales'})}}" class="top-10 p-alt">Mentions légales et politique de confidentialité</a>
  213.                 </div>
  214.                 <div class="absolute left bottom w100 gpadding">
  215.                     <div class="w100 flag flex row flex-1">
  216.                         <i></i>
  217.                         <i></i>
  218.                         <i></i>
  219.                     </div>
  220.                 </div>
  221.             </footer>
  222.             {% endblock footer %}
  223.         </div>
  224.     {% endblock container %}
  225.         <div id='searchBox' class='anim-display anim-show vfill fixed top left'>
  226.             <i class="block mask fill absolute top left"></i>
  227.             <div class='hpadding fill flex row center middle'>
  228.                 <div class='bg-gray relative shadow  {{desktop("half_80 vt-80-in hz-80-in")}} {{mobile("vt-20-in hz-20-in")}}'>
  229.                     <div class='absolute top right bg-error padding-10'>
  230.                         <span data-target='#searchBox' class='block icon close contain filter-white os-click'></span>
  231.                     </div>
  232.                     <div class='w100 flex col around'>
  233.                         <div class='flex col middle top-20 text-center'>
  234.                             <h2 class='h3 success'>Faire une recherche</h2>
  235.                             <p class='h6 top-10 bottom-20'>Formations, professions, colloques, articles, documents, etc.</p>
  236.                             <div class='flex row hoverflow text-center {{desktop("")}}{{mobile("")}}'>
  237.                                 <div class='bg-gray w100'>
  238.                                     <input id='searchInput' data-action='{{path("search",{keywords:":keywords"})}}' type='search' class='os-search block noborder bg-white h4 black {{desktop("hz-40-in vt-20-in")}} {{mobile("hz-20-in vt-10-in")}} block w100' placeholder='Saisissez votre recherche ici'>
  239.                                 </div>
  240.                                 <div class='relative flex col middle center {{desktop("vt-10-in ")}} {{mobile("vt-8-in")}} hz-20-in bg-success'>
  241.                                     <span class='block icon small search contain filter-white os-search-btn pointer' data-target='#searchInput'></span>
  242.                                 </div>
  243.                             </div>
  244.                         </div>
  245.                     </div>
  246.                 </div>
  247.             </div>
  248.         </div>
  249.     {% set notices = app.session.flashBag.get('notice') %}
  250.     {% if notices|length %}
  251.         <div class='popup show gpadding flex col middle center'>
  252.             <span class='icon contain close os-close filter-white absolute top right'></span>
  253.             {% for notice in notices %}
  254.             <div class='flex row middle center relative bg-white hz-40-in vt-20-in '>
  255.                 <div class='flex row  success text-left'>
  256.                     <i class='fa fa-thumbs-up fa-3x top-5  right-20'></i>
  257.                     <p class='h4  black'>{{notice|raw}}</p>
  258.                 </div>
  259.             </div>
  260.             {% endfor %}
  261.         </div>
  262.     {% endif %}
  263.         {% if os_param('GA') and app.request.schemeAndHttpHost() != 'http://localhost' %}
  264.         {% set code = os_param('GA') %}
  265.         <!-- Global site tag (gtag.js) - Google Analytics -->
  266.         <script async src="https://www.googletagmanager.com/gtag/js?id={{code}}"></script>
  267.         <script>
  268.           window.dataLayer = window.dataLayer || [];
  269.           function gtag(){dataLayer.push(arguments);}
  270.           gtag('js', new Date());
  271.           gtag('config', '{{code}}');
  272.         </script>
  273.         {% endif %}
  274.         <script src='{{asset("js/jquery-3.6.0.min.js")}}'></script>
  275.         <script src='{{asset("js/os-script.js")}}?v=004'></script>
  276.         <script src='{{asset("js/script.js")}}?v=004'></script>
  277.         {% block js %}
  278.         {% endblock %}
  279.         {% block script %}
  280.         {% endblock %}
  281.     </body>
  282. </html>
  283. {% endblock %}