{% trans_default_domain 'default_layout' %}
<!DOCTYPE html>
<html lang="{{app.request.getLocale}}">
<head>
<!-- Basic Meta -->
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>{% block title %}{% if page is defined and page.metas[0] is defined %}{{page.metas[0].title}}{% endif %}{% endblock title %} | {% if site.config['site_name'] is defined and site.config['site_name'] != "" %}{{site.config['site_name']}}{% else %}Geoweb 4{% endif %}</title>
<!-- Favicon -->
<link rel="favicon" href="{% if site.config['favicon'] is defined and site.config['favicon'] != "" %}{{site.config['favicon']}}{% endif %}">
<!-- SEO Meta -->
{% if site.config['no_robots'] is defined and site.config['no_robots'] == true %}
<meta content="noindex,nofollow" name="robots" />
{% else %}
<meta content="{% if site.config['meta_description'] is defined and site.config['meta_description'] != "" %}{{site.config['meta_description']}}{% endif %}" name="description" />
<meta content="{% if site.config['meta_keywords'] is defined and site.config['meta_keywords'] != "" %}{{site.config['meta_keywords']}}{% endif %}" name="keywords" />
{% endif %}
<!-- Vendor -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
<!-- Stylesheets -->
{% block extended_stylesheets %}{% endblock extended_stylesheets %}
{{ encore_entry_link_tags('app') }}
</head>
<body>
<header class="header" {% block header_data %}{% endblock %}>
<div class="container">
<div class="row">
<div class="col-lg-2">
<div class="logo__wrapper">
<a href="{{path('app_home')}}">
<img class="logo__image" src="{{asset('build/admin/img/logo_2x.png')}}" data-src-white=" {% if site.style['logo_dark'] is defined %}{{site.styles['logo_dark']}}{% else %}{{asset('build/admin/img/logo_white_2x.png')}}{% endif %}" data-src-black="{% if site.style['logo_light'] is defined %}{{site.styles['logo_light']}}{% else %}{{asset('build/admin/img/logo_2x.png')}}{% endif %}" alt="Logo" />
</a>
</div>
</div>
<div class="col-lg-10">
<div class="header__navigation">
{% if site.layout['header_main_nav'] is defined %}
<nav class="navigation">
{% for link in site.layout['header_main_nav'].links %}
{% if link.childrens|length > 0 %}
<div class="navigation__dropdown">
<a class="navigation__link">{{link.label}}</a>
<div class="dropdown">
{% for child in link.childrens %}
<a href="{{child.url}}" class="navigation__link">{{child.label}}</a>
{% endfor %}
</div>
</div>
{% else %}
<a href="{{link.url}}" class="navigation__link {% if app.request.pathinfo == link.url %}active{% endif %}">{{link.label}}</a>
{% endif %}
{% endfor %}
</nav>
{% endif %}
<nav class="navigation navigation__utils">
<!-- Quotation -->
{% if site.layout['header_second_nav'] is defined %}
{% for link in site.layout['header_second_nav'].links %}
<a href="{{link.url}}" class="navigation__link navigation__link--rounded">{{link.label}}</a>
{% endfor %}
{% endif %}
<!-- User Profile -->
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
{% if is_granted('ROLE_ADMIN') %}
<a href="{{path('app_admin.fr', {'_locale': 'fr'})}}" class="navigation__link">
<img src="{{asset('build/theme/default/img/profile.svg')}}" alt="Icone utilisateur" class="user-profile">
</a>
{% else %}
<span class="navigation__dropdown">
<img src="{{asset('build/theme/default/img/profile.svg')}}" alt="Icone utilisateur" class="user-profile">
<div class="dropdown">
<div class="dropdown__inner">
{{app.user.firstname ~ ' ' ~ app.user.lastname }}
<hr class="separator">
<a href="{{path('app_user_folders')}}" class="dropdown__link">Mes fichiers</a>
<a href="{{path('app_logout')}}" class="dropdown__link">Déconnexion</a>
</div>
</div>
</span>
{% endif %}
{% else %}
<a href="{{path('app_login')}}" class="navigation__link">
<img src="{{asset('build/theme/default/img/profile.svg')}}" alt="Icone utilisateur" class="user-profile">
</a>
{% endif %}
<!-- Switch language -->
{% if site.config['multilingual'] is defined and site.config['multilingual'] != "" %}
{% endif %}
</nav>
</div>
</div>
</div>
</div>
</header>
<!-- Content -->
<main>
{% block main %}{% endblock main %}
</main>
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-lg-3">
<div class="footer__column">
<a href="http://www.geometre-expert.fr/" target="_blank">
<img src="{{asset('build/theme/default/img/logo-geometre-expert-light.png')}}" data-logo-light="{{asset('build/theme/default/img/logo-geometre-expert-light.png')}}" data-logo-dark="{{asset('build/theme/default/img/logo-geometre-expert-dark.png')}}" class="footer__logo" alt="Logo ordre des géomètres-experts">
</a>
</div>
</div>
<div class="col-lg-2">
<div class="footer__column footer__column--nav">
{% if site.layout['footer_column_1'] is defined %}
<span class="footer__column__title">{{site.layout['footer_column_1'].name}}</span>
<nav class="footer__navigation">
{% for link in site.layout['footer_column_1'].links %}
<a href="{{link.url}}" class="footer__navigation__link">{{ link.label }}</a>
{% endfor %}
</nav>
{% endif %}
</div>
</div>
<div class="col-lg-2">
<div class="footer__column footer__column--nav">
{% if site.layout['footer_column_1'] is defined %}
<span class="footer__column__title">{{site.layout['footer_column_2'].name}}</span>
<nav class="footer__navigation">
{% for link in site.layout['footer_column_2'].links %}
<a href="{{link.url}}" class="footer__navigation__link">{{ link.label }}</a>
{% endfor %}
</nav>
{% endif %}
</div>
</div>
<div class="col-lg-3">
<div class="footer__column">
<span class="footer__copyright">{{"now"|date('Y')}} © {% if site.config['site_name'] is defined and site.config['site_name'] != "" %}{{site.config['site_name']}}{% else %}Geoweb{% endif %}.<br> {{'layout.footer.copyright'|trans}}.</span>
</div>
</div>
<div class="col-lg-2">
<div class="footer__column">
<nav class="footer__navigation--socials">
{% if site.config['facebook'] is defined and site.config['facebook'] != "" %}
<a href="{{site.config['facebook']}}" class="footer__navigation__link" target="_blank"><i class="fab fa-facebook-f"></i></a>
{% endif %}
{% if site.config['linkedin'] is defined and site.config['linkedin'] != "" %}
<a href="{{site.config['linkedin']}}" class="footer__navigation__link" target="_blank"><i class="fab fa-linkedin-in"></i></a>
{% endif %}
{% if site.config['twitter'] is defined and site.config['twitter'] != "" %}
<a href="{{site.config['twitter']}}" class="footer__navigation__link" target="_blank"><i class="fab fa-twitter"></i></a>
{% endif %}
{% if site.config['instagram'] is defined and site.config['instagram'] != "" %}
<a href="{{site.config['instagram']}}" class="footer__navigation__link" target="_blank"><i class="fab fa-instagram"></i></a>
{% endif %}
</nav>
</div>
</div>
</div>
</div>
</footer>
{% block extended_javascripts %}{% endblock extended_javascripts %}
{{ encore_entry_script_tags('app') }}
{% block extended_page_javascripts %}{% endblock extended_page_javascripts %}
</body>
</html>