{% trans_default_domain 'messages' %} {% set householdShouldPrompt = shouldAdherentFillHouseholdSize() and app.user is defined and app.user and app.user.adherent is defined and app.user.adherent and is_granted('ROLE_ADHERENT') and (app.user.adherent.householdSize is null or app.user.adherent.householdSize < 1) %} {% set householdForceOpen = householdShouldPrompt and app.session and app.session.get('show_household_size_modal') %} {% set seoTitle = title|default(KOH_MLC_NAME|default('Kohinos'))|seo_clean %} {% set seoDescription = description|default(KOH_SEO_DESCRIPTION|default('Kohinos : Outil de gestion de monnaie locale complémentaire'))|seo_truncate(160) %} {% set seoKeywords = keywords|default(KOH_SEO_KEYWORDS|default('Kohinos, mlc, mlcc, monnaie locale, monnaies locales'))|seo_keywords %} {% set seoImage = seo_image|default(KOH_SEO_OG_IMAGE|default(KOH_MLC_LOGO_URL|default('/images/logo.png'))) %} {% set canonicalUrl = canonical_url|default(app is defined and app.request is defined and app.request ? app.request.getSchemeAndHttpHost() ~ app.request.getPathInfo() : '/') %} {% set seoImageAbsolute = seoImage starts with 'http' or seoImage starts with '//' ? seoImage : ((app is defined and app.request is defined and app.request) ? app.request.getSchemeAndHttpHost() ~ seoImage : seoImage) %} {# POUR AJOUTER DES META ( like og: ) #} {% block meta %} {% if KOH_SEO_TWITTER_HANDLE is defined and KOH_SEO_TWITTER_HANDLE %} {% endif %} {% endblock meta %} {# DONNÉES STRUCTURÉES SCHEMA.ORG #} {% block structured_data %} {% endblock structured_data %} {% block pagetitle %} {{ seoTitle }} {% endblock pagetitle %} {# FAVICON - Utilise les favicons générés par l'admin ou les statiques par défaut #} {% block favicon %} {% set faviconPath = (KOH_SEO_FAVICON_512 is defined and KOH_SEO_FAVICON_512 starts with '/upload/favicon/') ? '/upload/favicon' : '/images/favicon' %} {% set favicons = get_available_favicons(faviconPath) %} {# Favicon ICO et shortcut #} {% if favicons.ico %} {% endif %} {% if favicons.standard|length > 0 %} {% endif %} {# Favicons standard PNG #} {% for favicon in favicons.standard %} {% endfor %} {# Apple Touch Icons #} {% if favicons.appleTouchIcon %} {% endif %} {% for icon in favicons.apple %} {% endfor %} {# Android Icons #} {% for icon in favicons.android %} {% endfor %} {# Microsoft Tiles #} {% for icon in favicons.ms %} {% if icon.size == 144 %} {% elseif icon.size == 70 %} {% elseif icon.size == 150 %} {% elseif icon.size == 310 %} {% endif %} {% endfor %} {# Theme color for mobile browsers #} {% endblock favicon %} {% block stylesheets %} {{ encore_entry_link_tags('app') }} {{ encore_entry_link_tags('achat-monnaie-styles') }} {{ encore_entry_link_tags('pwa-install-prompt-styles') }} {{ encore_entry_link_tags('favorite-entity-styles') }} {% endblock stylesheets %} {# POUR AJOUTER DES CSS #} {% block css %} {% endblock css %}
{{ KOH_MLC_NAME_SMALL|default('Kohinos') }}
{{ 'Installer l\'application'|trans }} {{ KOH_MLC_NAME_SMALL|default('Kohinos') }}

{{ 'Ajoutez cette application à votre écran d\'accueil pour y accéder plus rapidement'|trans }}

{% include '@kohinos/common/modale_choix_groupe.html.twig' %} {% include '@kohinos/common/modale_confirmation_transaction.html.twig' %} {% if shouldAdherentFillHouseholdSize() %} {% include '@kohinos/common/modale_household_size.html.twig' %} {% endif %} {% if app.user and app.session and app.session.get('gdpr_consent_required') and app.request.attributes.get('_route') != 'gdpr_consent' and app.request.attributes.get('_route') != 'gdpr_privacy_policy' %} {% include '@kohinos/gdpr/_consent_modal.html.twig' %} {% endif %} {% block header %} {% include '@kohinos/common/header.html.twig' %} {% endblock header %}
{% include '@kohinos/common/flash-messages.html.twig' %} {% if householdShouldPrompt %} {% include '@kohinos/common/household_size_prompt.html.twig' %} {% endif %} {% block content %} {% endblock content %}
{% block footer %} {% include '@kohinos/common/footer.html.twig' %} {% endblock footer %} {% block javascripts %} {{ encore_entry_script_tags('app') }} {{ encore_entry_script_tags('achat-monnaie') }} {{ encore_entry_script_tags('pwa-install-prompt') }} {{ encore_entry_script_tags('favorite-entity') }} {% endblock javascripts %} {# POUR AJOUTER DES JS #} {% block js %} {% endblock js %} {# AFFICHAGE DE LA MODALE DE CHOIX DU RÔLE (groupe associé aux rôles) #} {% if showModalGroupChoice() %} {% endif %} {% if app.user and app.session and app.session.get('gdpr_consent_required') and app.request.attributes.get('_route') != 'gdpr_consent' and app.request.attributes.get('_route') != 'gdpr_privacy_policy' %} {% endif %} {% if app.request.query.get('showmlcadhesionmodal') %} {% endif %}