templates/Default/base.html.twig line 1

  1. {% extends 'Default/parameters.html.twig' %}
  2. {% block html %}
  3. <!doctype html>
  4. <html lang='fr' class='{{desktop("adapt")}}'>
  5.     <head>
  6.         <title>{{t}}</title>
  7.         <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
  8.         <meta name='description' content='{{d}}' />
  9.         <meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1' />
  10.         <meta property='fb:app_id' content='798097520521275' />
  11.         <meta property='og:url' content='{{app.request.uri}}' />
  12.         <meta property='og:type' content='article' />
  13.         <meta property='og:title' content='{{t}}' data-dynamic='true' />
  14.         <meta property='og:description' content='{{d}}' data-dynamic='true' />
  15.         <meta property='og:image' content='{{w}}{{thumb}}?v=001' data-dynamic='true' />
  16.         <meta property='og:image:width' content='{{thumbnailSize.width}}' data-dynamic='true'>
  17.         <meta property='og:image:height' content='{{thumbnailSize.height}}' data-dynamic='true'>
  18.         <meta property='og:locale' content='fr_FR' />
  19.         <meta property='og:site_name' content='{{sitename}}' />
  20.         <meta property='twitter:url' content='{{app.request.uri}}' />
  21.         <meta property='twitter:card' content='summary' />
  22.         <meta property='twitter:title' content='{{t}}' />
  23.         <meta property='twitter:description' content='{{d}}' />
  24.         <meta property='twitter:image' content='{{w}}{{thumb}}' />
  25.         <link rel="icon" href="{{asset('images/favicon.ico')}}">
  26.         <link type='text/css' rel='stylesheet' href='{{asset("css/os-style.css")}}' />
  27.         <link type='text/css' rel='stylesheet' href='{{asset("css/style.css")}}' />
  28.         <link type='text/css' rel='stylesheet' href='{{asset("css/os-anim.css")}}' />
  29.         <script src="https://kit.fontawesome.com/6451c614e6.js" crossorigin="anonymous"></script>
  30.         {# <link type='text/css' rel='stylesheet' href='{{asset("fonts/fa/css/all.min.css")}}' /> #}
  31.         {% block css %}
  32.         {% endblock %}
  33.     </head>
  34.     <body class=''>
  35.         {% block container %}
  36.         <div id='container' class='container relative w100 hoverflow'>
  37.             <header id='header' class='w100 fixed left top transition-alt bg-white '>
  38.             {% block header %}
  39.                 <div class="flex row space hheight w100 top transition-alt {{desktop('gleft-in border noborder border-1x border-gray border-bottom')}}{{mobile('gpadding')}}">
  40.                     <div class='relative flex row space fill transition-alt {{desktop("")}} {{mobile("")}}'>
  41.                             <a  href='{{path("home")}}' class='h100 relative {{desktop("vt-5-in")}} {{mobile("vt-5-in")}}'>
  42.                                 <img src="{{asset(os_param('logo'))}}" class='block h100'>
  43.                             </a>
  44.                         {% block menu %}
  45.                         <div class="flex row middle space relative {{desktop('left-30 left-80-in border noborder  border-1x border-gray  border-left w100')}}">
  46.                             <menu id='menu' class='fill flex row middle transition-alt {{desktop("h100 left-10 left-1-in right-80 right-80-in")}} {{mobile("bg-success fixed top left htop w100")}}'>
  47.                                 {{render(controller('App\\Controller\\DefaultController::menu',{activeMenu:(menu is defined ? menu)}))}}
  48.                             </menu>
  49.                             <div class="flex row middle {{desktop('h100 left-80 left-25-in')}} {{mobile('')}}">
  50.                                 <div class="flex row middle  {{desktop('h100 left-3')}} {{mobile('')}}">
  51.                                     {% if isDesktop() %}
  52.                                     <div class="flex row middle white  {{desktop('vt-8-in hz-25-in radius-30')}} {{mobile('right-8')}}">
  53.                                         <a class='flex row middle center h4 {{desktop("left-10")}} {{mobile("left-5")}}' href='{{os_param("socialmedia")["twitter"]}}' target="_blank" title="Compte twitter"><i class="fab fa-twitter success"></i></a>
  54.                                         <a class='flex row middle center h4 {{desktop("left-10")}} {{mobile("left-5")}}' href='{{os_param("socialmedia")["youtube"]}}' target="_blank" title="Compte youtube"><i class="fab fa-youtube success"></i></a>
  55.                                         <a class='flex row middle center h4 {{desktop("left-10")}} {{mobile("left-5")}}' href='{{os_param("socialmedia")["flickr"]}}' target="_blank" title="Compte flickr"><i class="fab fa-flickr success"></i></a>
  56.                                     </div>
  57.                                     {% endif %}
  58.                                     <i class='os-click pointer flex row bg-success center middle {{desktop("h100 left-10 hz-40-in")}} {{mobile("padding-5")}}' data-target="#searchBox" >
  59.                                         <i class='block fa fa-search white {{desktop("h4")}} {{mobile("p")}}'></i>
  60.                                         <span class='left-10 white {{desktop("p")}} {{mobile("p-alt")}}'>Recherche</span>
  61.                                     </i>
  62.                                 </div>
  63.                             </div>
  64.                             {% if isMobile() %}
  65.                             <div id='btn-menu' class='left-10 flex col middle os-click' data-target='#menu'>
  66.                                 <i class='fa fa-bars h1 warning'></i>
  67.                             </div>
  68.                             {% endif %}
  69.                         </div>
  70.                         {% endblock %}
  71.                     </div>
  72.                 </div>
  73.             {% endblock header %}
  74.             </header>
  75.             {% block banner %}
  76.                 <div id='' class='banner relative htop {{desktop(" bottom-20-in")}} {{mobile("")}}' {% if bgColor is defined %} style="background : {{bgColor}};" {%endif%}>
  77.                     <div class='{{desktop("")}} {{mobile("vt-40-in")}}'>
  78.                         <div class='relative {{desktop("")}} {{mobile("")}}'>
  79.                             {% block titlebox %}
  80.                             <div class='w100 relative flex col center {{desktop("vt-40-in")}} {{mobile("")}}'>
  81.                                 {% block title %}
  82.                                 <div class="flex row center middle {{desktop('')}} {{mobile('bottom-15')}}">
  83.                                     <icon class="icon medium contain relative">
  84.                                         <img src="{{asset('images/title-icon.png')}}" class="contain">
  85.                                     </icon>
  86.                                     <h1 class="flex row aquawax extrabold {{desktop('title')}}" style="color: {{titleColor is defined ? titleColor : 'var(--success-color)'}};">{{title is defined ? title}}</h1>
  87.                                 </div>
  88.                                 {% endblock title %}
  89.                                 {% if desc is defined or subtitle is defined %}
  90.                                 <p class="h4 semibold black {{desktop('top-20')}}{{mobile('top-10')}}">
  91.                                 {{desc is defined ? desc|nl2br : subtitle}}
  92.                                 </p>
  93.                                 {% endif %}
  94.                             </div>
  95.                             {% endblock %}
  96.                         </div>
  97.                     </div>
  98.                 </div>
  99.             {% endblock banner %}
  100.             {% block body %}
  101.             <div id='content' class='bg-white content relative'>
  102.                 {% block content %}
  103.                 {% endblock content %}
  104.             </div>
  105.             {% endblock body %}
  106.            {# {% if isMobile() and not home and noShare is not defined %}
  107.             <div class="flex row middle space  bg-gray sharing-box gpadding {{desktop('vt-40-in')}} {{mobile('vt-20-in')}}">
  108.                 <h2 class='h6 success-alt upper vt-8-in font-alt bold'>Partager cette page</h2>
  109.                 <div class='flex row middle success-alt'>
  110.                     {% set link = app.request.uri %}
  111.                     {% if title is not defined %}{% set title = "Site web du "~sitename %} {% endif %}
  112.                     {% set class = "iflex col middle center h2 "~ desktop('left-20')~ mobile('left-8') %}
  113.                     <a class='{{class}}' title='Partager via WhatsApp' target='_blank' href='whatsapp://send?text={{title}} => {{link}}'><i class='transition fab fa-whatsapp'></i></a>
  114.                     <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>
  115.                     <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>
  116.                     <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>
  117.                     <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>
  118.                 </div>
  119.             </div>
  120.             {% endif %} #}
  121.             {% block footer %}
  122.             <footer id="footer" class="w100 {{desktop('')}} {{mobile('')}}">
  123.                 <div class="w100 border border-success relative {{desktop('')}} {{mobile('')}}">
  124.                     <figure class="absolute top left fill {{desktop('')}} {{mobile('')}}">
  125.                         <img src='{{asset("images/utile.jpg")}}' class="cover">
  126.                         <div class="relative fill bg-success"></div>
  127.                     </figure>
  128.                     <div class="relative fill {{desktop('gpadding top-80 top-80-in bottom-80 bottom-80-in')}} {{mobile('hz-20-in vt-40-in')}}">
  129.                         <div class="lien-utile w100 flex row {{desktop('top-30 top-6-in bottom-30 bottom-2-in')}} {{mobile('')}}">
  130.                             <div class="{{desktop('right-40 right-7-in')}} {{mobile('')}}">
  131.                                 <h2 class="flex row aquawax extrabold white {{desktop('h1')}}" style="writing-mode: vertical-rl;text-orientation: mixed; transform:rotate(180deg)">Liens utiles</h2>
  132.                             </div>
  133.                             <div class="w100 {{desktop('')}} {{mobile('')}}">
  134.                                 <div class="w100 flex row {{desktop('')}} {{mobile('')}}">
  135.                                     <a href="https://www.gouv.bj/" target="_blank" class="gouv-utile block relative h100 {{desktop('')}} {{mobile('w100')}}">
  136.                                         <figure class="fill absolute left top {{desktop('')}} {{mobile('')}}">
  137.                                             <img src='{{asset("images/bg-gouv.jpg")}}' class="cover">
  138.                                             <div class="relative fill" style="background: linear-gradient(0deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72))"></div>
  139.                                         </figure>
  140.                                         <div class="relative fill  {desktop('')}} {{mobile('')}}">
  141.                                             <figure class="fill relative flex row center {{desktop('')}} {{mobile('')}}">
  142.                                                 <img src='{{asset("images/gouv.png")}}' class="contain {{desktop('hz-70-in')}} {{mobile('hz-30-in')}}">
  143.                                             </figure>
  144.                                         </div>
  145.                                     </a>
  146.                                     <div class="fill lien-utile1  {{desktop('flex row')}} {{mobile('')}}">
  147.                                         <div class="w100 {{desktop('')}} {{mobile('')}}">
  148.                                             <a href="https://numerique.gouv.bj/" target="_blank" class="numerique-utile fill relative bg-warning block {{desktop('')}} {{mobile('')}}">
  149.                                                 <figure class="fill relative flex row center hoverflow {{desktop('')}} {{mobile('')}}">
  150.                                                     <img src='{{asset("images/numerique.png")}}' class="contain {{desktop('')}} {{mobile('hz-30-in')}}">
  151.                                                 </figure>
  152.                                             </a>
  153.                                             <a href="https://finances.gouv.bj/" target="_blank" class="finance-utile fill relative block {{desktop('')}} {{mobile('')}}" style="background: #1A588F;">
  154.                                                 <figure class="fill relative flex row center hoverflow {{desktop('')}} {{mobile('')}}">
  155.                                                     <img src='{{asset("images/finance.png")}}' class="contain {{desktop('')}} {{mobile('hz-30-in')}}">
  156.                                                 </figure>
  157.                                             </a>
  158.                                         </div>
  159.                                         <div class="{{desktop('')}} {{mobile('')}}">
  160.                                             <a href="" target="_blank" class="arcep-utile fill relative block" style="background: #1A588F;">
  161.                                                 <figure class="fill relative flex row center hoverflow {{desktop('')}} {{mobile('')}}">
  162.                                                     <img src='{{asset("images/arcep.png")}}' class="contain {{desktop('hz-50-in')}} {{mobile('hz-25-in')}}">
  163.                                                 </figure>
  164.                                             </a>
  165.                                             <a href="" target="_blank" class="fill relative bg-white block">
  166.                                                 <figure class="fill relative flex row center hoverflow {{desktop('')}} {{mobile('')}}">
  167.                                                     <img src='{{asset("images/apdp.png")}}' class="contain {{desktop('hz-50-in')}} {{mobile('hz-25-in')}}">
  168.                                                 </figure>
  169.                                             </a>
  170.                                         </div>
  171.                                     </div>
  172.                                 </div>
  173.                             </div>
  174.                         </div>
  175.                     </div>
  176.                 </div>
  177.                 <div class='bg-white relative w100 {{desktop("gright-in")}} {{mobile("hz-20-in")}}' {%if isDesktop() %} style="padding-left : calc(var(--content-margin) + var(--50px) + var(--4px) + var(--h1-size));" {%endif%}>
  178.                     <div class="absolute left top w100 bg-success {{desktop('vt-50-in')}} {{mobile('')}}"></div>
  179.                     <div class='relative w100 {{desktop("")}} {{mobile("")}}'>
  180.                         <figure class="fill absolute left top {{desktop('')}} {{mobile('')}}">
  181.                             <img src='{{asset("images/newsletter.jpg")}}' class="cover">
  182.                             <div class="relative newsletter-mask fill" style="opacity: .92;"></div>
  183.                         </figure>
  184.                         <div class='w100 relative {{desktop("top-60-in left-80-in bottom-60-in")}} {{mobile("vt-30-in")}}'>
  185.                             <div id="newsletter" class='{{desktop("top-7 left-20 left-2-in bottom-4")}} {{mobile("")}} '>
  186.                                 <div class="flex col space">
  187.                                     <h1 class='white aquawax {{desktop("extrabold")}} {{mobile("h2")}}'>
  188.                                         La newsletter
  189.                                     </h1>
  190.                                 </div>
  191.                                 <p class='white semibold {{desktop("h4 top-30 top-7-in")}} {{mobile("p top-20")}}'>Abonnez-vous à notre newsletter afin de vous tenir au courant</p>
  192.                                 <div class="{{desktop('top-30 top-8-in')}} {{mobile('top-20')}}">
  193.                                         {{render(controller('App\\Controller\\Front\\SubscribersFrontController::form',{}))}}
  194.                                 </div>
  195.                             </div>
  196.                         </div>
  197.                     </div>
  198.                 </div>
  199.                 
  200.                  {#<div class="bg-success-alt {{desktop('hz-30-in top-80-in bottom-40-in')}} {{mobile('vt-25-in')}}">
  201.                     <div class="gpadding flex row middle space  {{desktop('')}} {{mobile(' wrap center')}}">
  202.                    {{render(controller('App\\Controller\\DefaultController::menu',{isFooter:1}))}}
  203.                     </div>
  204.                 </div>#}
  205.                 <div class="w100 bg-white {{desktop('hz-50-in top-10 top-80-in')}} {{mobile('vt-20-in')}}">
  206.                     <div class="{{desktop('bottom-30 bottom-7-in')}} {{mobile('')}}">
  207.                         <figure class="flex row center gheight relative hoverflow {{desktop('')}} {{mobile('')}}">
  208.                             <img src="{{asset(os_param('logo'))}}" class="h100">
  209.                         </figure>
  210.                     </div>
  211.                     <div class="gpadding {{desktop('border noborder border-1x border-top border-gray top-50-in bottom-70 bottom-1-in')}} {{mobile('vt-30-in')}}">
  212.                         <div class="flex row middle space {{desktop('top-3')}} {{mobile('wrap center')}}">
  213.                             <p class="medium success {{desktop('h4')}} {{mobile('')}}">© Agence des Systèmes d'Information et du Numérique - 2023</p>
  214.                             <p class="medium success {{desktop('h4')}}{{mobile('')}}"><a href='{{url("page",{"slug":"politique-confidentialite"})}}'>Mentions légales et gestions des cookies</a></p>
  215.                         </div>
  216.                     </div>
  217.                 </div>
  218.                 <div class='bg-white w100 flex row center'>
  219.                     <div class='{{desktop("half")}}'>
  220.                         <div class='flex flag flex-1 block-center w100'>
  221.                             <i></i>
  222.                             <i></i>
  223.                             <i></i>
  224.                         </div>
  225.                     </div>
  226.                 </div>
  227.             </footer>
  228.             {% endblock footer %}
  229.         </div>
  230.     {% endblock container %}
  231.         <div id='searchBox' class='anim-display anim-show vfill fixed top left'>
  232.             <i class="block bg-success transparent fill absolute top left"></i>
  233.             <div class='hpadding fill flex row center middle'>
  234.                 <div class='relative shadow {{desktop("half_80 vt-80-in hz-80-in")}} {{mobile("vt-20-in hz-20-in")}} bg-white'>
  235.                     <div class='absolute top right bg-warning-alt padding-10'>
  236.                         <span data-target='#searchBox' class='block icon close contain filter-white os-click'></span>
  237.                     </div>
  238.                     <div class='w100 flex col around'>
  239.                         <div class='flex col middle top-20'>
  240.                             <h2 class='h3 success'>Faire une recherche</h2>
  241.                             <p class='h6 upper text-left top-20 bottom-20'>Actualités, Projets, opportunités, etc.</p>
  242.                             <div class='flex row'>
  243.                                 <div class='bg-gray w100'>
  244.                                     <input id='searchInput' data-action='{{path("search",{keywords:":keywords"})}}' type='search' class='os-search block nobg border border-gray noradius h4 black vt-20-in {{desktop("hz-40-in")}} {{mobile("hz-20-in")}} block w100' placeholder='Saisissez votre recherche ici'>
  245.                                 </div>
  246.                                 <div class='relative flex col middle center {{desktop("")}} {{mobile("")}} vt-10-in hz-20-in bg-success'>
  247.                                     <span class='block icon small search contain filter-white os-search-btn pointer' data-target='#searchInput'></span>
  248.                                 </div>
  249.                             </div>
  250.                         </div>
  251.                     </div>
  252.                 </div>
  253.             </div>
  254.         </div>
  255.     {% set notices = app.session.flashBag.get('notice') %}
  256.     {% if notices|length %}
  257.         <div class='popup show gpadding flex col middle center'>
  258.             <span class='icon contain close os-close filter-white absolute top right'></span>
  259.             {% for notice in notices %}
  260.             <div class='flex row middle center relative bg-white hz-40-in vt-20-in '>
  261.                 <div class='flex row  success text-left'>
  262.                     <i class='fa fa-thumbs-up fa-3x top-5  right-20'></i>
  263.                     <p class='h4  black'>{{notice|raw}}</p>
  264.                 </div>
  265.             </div>
  266.             {% endfor %}
  267.         </div>
  268.     {% endif %}
  269.         {% if app.request.schemeAndHttpHost() != 'http://localhost' %}
  270.         {% endif %}
  271.         <script src='{{asset("js/jquery-3.6.0.min.js")}}'></script>
  272.         <script src='{{asset("js/os-script.js")}}?v=004'></script>
  273.         <script src='{{asset("js/script.js")}}?v=004'></script>
  274.         {% block js %}
  275.         {% endblock %}
  276.     </body>
  277. </html>
  278. {% endblock %}