{# #} {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #} {# Resource hints for better performance - DNS prefetch and preconnect for CDN resources #} {% set currentPath = app.request.attributes.get('_route') %} {% set currentRouteParams = (app.request.attributes.get('_route_params')|default([]))|merge(app.request.query.all|default([])) %} {# Canonical URL #} {% if currentPath %} {% else %} {% endif %} {# Hreflang tags #} {% if currentPath %} {% for locale in get_locales() %} {% endfor %} {% endif %} {# Fallback script for async CSS loading in older browsers #} {% block stylesheets %} {# {{ encore_entry_link_tags('app') }} #} {% endblock %} {# Schema.org Structured Data #} {% import "macros/schema_org.html.twig" as schema %} {% block schema_org %} {# LocalBusiness/BeautySalon Schema - This is the most specific type and includes all Organization properties #} {% set businessName = 'Natea Les Massages d\'Agadir' %} {% set businessUrl = absolute_url(path('accueil', {'_locale': app.request.locale})) %} {% set businessLogo = absolute_url(asset('front/images/logo.png')) %} {% set businessPhone = 'contact.tel1'|trans|default('') %} {% set businessEmail = 'contact.email'|trans|default('') %} {% set businessAddress = { 'streetAddress': 'natea_address'|trans|default('420, Rue Abbas Kabbage, Cité Riad Essalam'), 'addressLocality': 'Agadir', 'addressRegion': 'Souss-Massa', 'addressCountry': 'MA' } %} {% set openingHours = [ {'dayOfWeek': 'Monday', 'opens': '10:00', 'closes': '20:00'}, {'dayOfWeek': 'Tuesday', 'opens': '10:00', 'closes': '20:00'}, {'dayOfWeek': 'Wednesday', 'opens': '10:00', 'closes': '20:00'}, {'dayOfWeek': 'Thursday', 'opens': '10:00', 'closes': '20:00'}, {'dayOfWeek': 'Friday', 'opens': '10:00', 'closes': '20:00'}, {'dayOfWeek': 'Saturday', 'opens': '10:00', 'closes': '20:00'}, {'dayOfWeek': 'Sunday', 'opens': '10:00', 'closes': '20:00'} ] %} {{ schema.local_business_schema( businessName, businessUrl, businessLogo, businessPhone, businessEmail, businessAddress, openingHours, '$$', businessLogo ) }} {# WebSite Schema #} {{ schema.website_schema( businessName, businessUrl, null ) }} {% endblock %} {# #}
{% if currentPath != "app_admin_orderconformation" and currentPath != "app_completed" and currentPath != "app_reservation" and currentPath != 'app_panier' and currentPath != 'app_confirmation' and currentPath != 'app_cadeaux_completed' and currentPath != 'app_checkout_paiement' and currentPath != 'app_abonnment_completed' %}