{% extends 'Default/parameters.html.twig' %}
{% block html %}
<!doctype html>
<html lang='fr' class='{{desktop("adapt")}}'>
<head>
<title>{{t}}</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<meta name='description' content='{{d}}' />
<meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1' />
<meta property='fb:app_id' content='798097520521275' />
<meta property='og:url' content='{{app.request.uri}}' />
<meta property='og:type' content='article' />
<meta property='og:title' content='{{t}}' data-dynamic='true' />
<meta property='og:description' content='{{d}}' data-dynamic='true' />
<meta property='og:image' content='{{w}}{{thumb}}?v=001' data-dynamic='true' />
<meta property='og:image:width' content='{{thumbnailSize.width}}' data-dynamic='true'>
<meta property='og:image:height' content='{{thumbnailSize.height}}' data-dynamic='true'>
<meta property='og:locale' content='fr_FR' />
<meta property='og:site_name' content='{{sitename}}' />
<meta property='twitter:url' content='{{app.request.uri}}' />
<meta property='twitter:card' content='summary' />
<meta property='twitter:title' content='{{t}}' />
<meta property='twitter:description' content='{{d}}' />
<meta property='twitter:image' content='{{w}}{{thumb}}' />
<link rel="icon" href="{{asset('images/logo-alt.svg')}}">
<link type='text/css' rel='stylesheet' href='{{asset("css/os-style.css")}}' />
<link type='text/css' rel='stylesheet' href='{{asset("css/style.css")}}' />
<link type='text/css' rel='stylesheet' href='{{asset("css/os-anim.css")}}' />
{# <script src="https://kit.fontawesome.com/5c0ab7f24a.js" crossorigin="anonymous"></script>#}
<link type='text/css' rel='stylesheet' href='{{asset("fonts/fa/css/all.min.css")}}' />
{% block css %}
{% endblock %}
</head>
<body class='{{bgcolor ?? "bg-white"}}'>
{% block container %}
<div id='container' class='container relative w100 hoverflow'>
<header id='header' class='bg-success fixed left top w100 hheight transition-alt {{desktop("")}} {{mobile("")}}'>
{% block header %}
<div class='relative flex row fill transition-alt {{desktop("")}}'>
<a id='logo' href='{{path("home")}}' class='bg-white hwidth flex col {{desktop("padding-10")}} {{mobile("")}}'>
<span class="fill relative">
<img src="{{asset(os_param('logo'))}}" class='block relative contain'>
</span>
</a>
{% block menu %}
<div class="flex row middle around {{desktop('w100')}}">
<menu id='menu' class='transition-alt upper {{desktop("h100")}} {{mobile("bg-success fixed top left htop w100")}}'>
{{render(controller('App\\Controller\\DefaultController::menu',{activeMenu:(menu is defined ? menu)}))}}
</menu>
{% if isMobile() %}
<div id='btn-menu' class='left-25 flex col middle os-click' data-target='#menu'>
<i class='fa fa-bars h1 white'></i>
</div>
{% else %}
<a class="bg-success-alt vt-10-in hz-25-in white radius-5 upper nowrap" href="{{path('registration')}}">Pré-inscription</a>
{% endif %}
</div>
{% endblock %}
</div>
{% endblock header %}
</header>
<div id='' class='relative w100 {{desktop("flex row")}} {{mobile("")}}'>
<div class="flex col hwidth relative htop-in">
<div class="bg-success-alt flex col h4 white">
<a class="hheight flex row middle center" href="{{os_param('socialmedia').facebook}}"><i class="fab fa-facebook-square"></i></a>
<a class="hheight flex row middle center" href="{{os_param('socialmedia').twitter}}"><i class="fab fa-twitter"></i></a>
<a class="hheight flex row middle center" href="{{os_param('socialmedia').youtube}}"><i class="fab fa-youtube"></i></a>
<span class="os-click bg-success white hheight flex row middle center" data-target="#searchBox"><i class="fa fa-search"></i></span>
</div>
</div>
{% block banner %}
<div id='' class='banner relative w100 {{desktop("htop-in")}} {{mobile("")}}'>
<div class='relative flex col fill {{desktop("")}} {{mobile("")}}'>
<figure class="fill relative hoverflow">
<img src="{{b}}" class="cover">
</figure>
<i class="hheight"></i>
</div>
</div>
{% endblock banner %}
</div>
{% block titlebox %}
{% if not home %}
<div class='relative w100 flex col gpadding {{desktop("")}} {{mobile("")}}'>
{% block title %}
<i class="vt-5-in bg-gray quarter-80 radius-5"></i>
<h1 class='success h2'>{{title is defined ? title}}</h1>
{% endblock title %}
{% if description is defined or subtitle is defined %}
<p class="h4 semibold">
{{description is defined ? description|nl2br : subtitle}}
</p>
{% endif %}
</div>
{% endif %}
{% endblock %}
{% block body %}
<div id='content' class='bg-white content relative'>
{% block content %}
{% endblock content %}
</div>
{% endblock body %}
{% if isMobile() and not home and noShare is not defined %}
<div class='flex row middle space bg-gray sharing-box gpadding {{desktop('vt-40-in')}} {{mobile('vt-20-in')}}'>
<h2 class='h6 success-alt upper vt-8-in font-alt bold'>Partager cette page</h2>
<div class='flex row middle success-alt'>
{% set link = app.request.uri %}
{% if title is not defined %}{% set title = "Site web du "~sitename %} {% endif %}
{% set class = "iflex col middle center h2 "~ desktop('left-20')~ mobile('left-8') %}
<a class='{{class}}' title='Partager via WhatsApp' target='_blank' href='whatsapp://send?text={{title}} => {{link}}'><i class='transition fab fa-whatsapp'></i></a>
<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>
<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>
<a class='{{class}}' title='Envoyer par mail' target='_blank' href='mailto:?subject={{title}}&body=Je vous invite à lire cette page : {{link}}.'><i class='transition fa fa-envelope'></i></a>
<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>
</div>
</div>
{% endif %}
{# <div class='bg-warning gpadding relative w100 {{desktop("hpadding")}} {{mobile("vt-30-in")}}'>
<figure class="absolute top left fill transparent-alt">
<img src="{{asset('images/newsletter.jpg')}}" class="cover">
</figure>
<div class="relative flex col middle {{desktop("center")}} {{mobile("")}}">
<div class="flex col text-center {{desktop('center')}}">
<h2 class="h1 white text-center upper extrabold {{desktop("")}} {{mobile("bottom-20")}}">NEWSLETTER</h2>
<p class="white medium {{desktop('half_80')}}">Inscrivez-vous pour recevoir régulièrement les dernières nouvelles sur l'avancée du Programme d'Actions du Gouvernement.</p>
</div>
<div class="flex row middle {{desktop('half-80 top-40')}} {{mobile('gpadding top-20')}}">
{{render(controller('App\\Controller\\DefaultController::subscribers',{}))}}
</div>
</div>
</div> #}
{% block footer %}
<footer id="footer" class="bg-success relative gpadding flex col center {{desktop('vt-60-in op-40')}} {{mobile(' text-center vt-40-in')}}">
<figure class="relative hoverflow {{desktop('gheight gwidth')}} {{mobile('icon medium')}}">
<img src="{{l}}" class="block contain">
</figure>
<div class="relative flex row center text-center {{desktop('gpadding top-20')}}{{mobile('')}}">
<p class="white">
© Copyright {{"now"|date('Y')}}
<br>{{sitename}}
</p>
</div>
</footer>
<div class='bg-success w100 flex flag flex-1 w100 gpadding'>
<div class='w100 flex flag flex-1 block-center half'>
<i class=""></i>
<i></i>
<i></i>
</div>
</div>
{% endblock footer %}
</div>
{% endblock container %}
<div id='searchBox' class='anim-display anim-show vfill fixed top left'>
<i class="block bg-success transparent fill absolute top left"></i>
<div class='hpadding fill flex row center middle'>
<div class='relative shadow {{desktop("half_80 vt-80-in hz-80-in")}} {{mobile("vt-20-in hz-20-in")}} bg-white'>
<div class='absolute top right bg-error padding-10'>
<span data-target='#searchBox' class='block icon close contain filter-white os-click'></span>
</div>
<div class='w100 flex col around'>
<div class='flex col middle top-20'>
<h2 class='h3 success'>Faire une recherche</h2>
<p class='h6 upper text-left top-20 bottom-20'>Actualités, formations, documents, pages, etc.</p>
<div class='flex row'>
<div class='bg-gray w100'>
<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'>
</div>
<div class='relative flex col middle center {{desktop("")}} {{mobile("")}} vt-10-in hz-20-in bg-success'>
<span class='block icon small search contain filter-white os-search-btn pointer' data-target='#searchInput'></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% set notices = app.session.flashBag.get('notice') %}
{% if notices|length %}
<div class='popup show gpadding flex col middle center'>
<span class='icon contain close os-close filter-white absolute top right'></span>
{% for notice in notices %}
<div class='flex row middle center relative bg-white hz-40-in vt-20-in '>
<div class='flex row success text-left'>
<i class='fa fa-thumbs-up fa-3x top-5 right-20'></i>
<p class='h4 black'>{{notice|raw}}</p>
</div>
</div>
{% endfor %}
</div>
{% endif %}
{% if app.request.schemeAndHttpHost() != 'http://localhost' %}
{% endif %}
<script src='{{asset("js/jquery-3.6.0.min.js")}}'></script>
<script src='{{asset("js/os-script.js")}}?v=004'></script>
<script src='{{asset("js/script.js")}}?v=004'></script>
{% block js %}
{% endblock %}
</body>
</html>
{% endblock %}