templates/website/main.template.html.twig line 109

Open in your IDE?
  1. {% from 'utils.html.twig' import imgUpload %}
  2. <!DOCTYPE html>
  3. <html>
  4.     <head>
  5.         <meta charset="UTF-8">
  6.         {% block title %}
  7.             <title>{{ client.brand }} - {{ client.slogan }}</title>
  8.             <meta name="title" content="{{ client.brand }} - {{ client.slogan }}">
  9.             <meta property="og:title" content="{{ client.brand }} - {{ client.slogan }}">
  10.         {% endblock %}
  11.         {% block meta %}
  12.             {# OPEN GRAPH #}
  13.             {% set pathImageDefault = getFilePathComplete({
  14.                 fileName:  getConfig('image_default'),
  15.                 pathConst: enum('AbstractEnum::PATH_OTHERS'),
  16.                 addUpload: enum('AbstractEnum::YES')
  17.             }) %}
  18.             <meta property="og:image" content="https:{{ pathImageDefault.pathCdn }}">
  19.             <meta name="description" content="{{ client.description|raw }}">
  20.             <meta property="og:description" content="{{ client.description|raw }}">
  21.         {% endblock %}
  22.         <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no user-scalable=0">
  23.         {% block metaIndex %}
  24.             <meta name="robots" content="index, follow">
  25.         {% endblock %}
  26.         
  27.         {% block manifest %}
  28.             <link rel="manifest" href="/manifest.json">
  29.             
  30.             {% if favicon %}
  31.                 <meta name="msapplication-square70x70logo"   content="{{ favicon }}?option=manifest-3">
  32.                 <meta name="msapplication-square150x150logo" content="{{ favicon }}?option=manifest-4">
  33.                 <meta name="msapplication-wide310x150logo"   content="{{ favicon }}?option=manifest-5">
  34.             {% endif %}
  35.             
  36.             <meta name="apple-mobile-web-app-capable" content="yes"> 
  37.             <meta name="apple-mobile-web-app-status-bar-style" content="black">
  38.             <meta name="apple-mobile-web-app-title" content="{{ client.description|raw }}">
  39.             {% if favicon %}
  40.                 <link href="{{ favicon }}?option=manifest-7"  media="(device-width: 320px)  and (device-height: 568px)  and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image">
  41.                 <link href="{{ favicon }}?option=manifest-8"  media="(device-width: 375px)  and (device-height: 667px)  and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image">
  42.                 <link href="{{ favicon }}?option=manifest-9"  media="(device-width: 621px)  and (device-height: 1104px) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image">
  43.                 <link href="{{ favicon }}?option=manifest-10" media="(device-width: 375px)  and (device-height: 812px)  and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image">
  44.                 <link href="{{ favicon }}?option=manifest-11" media="(device-width: 768px)  and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image">
  45.                 <link href="{{ favicon }}?option=manifest-12" media="(device-width: 834px)  and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image">
  46.                 <link href="{{ favicon }}?option=manifest-13" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image">
  47.             {% endif %}
  48.         {% endblock %}
  49.         
  50.         <link rel="sitemap" href="/sitemap.xml">
  51.         <link rel="shortcut icon" href="{{ favicon ? favicon ~ '?option=favicon' : faviconCdn }}">
  52.         <meta name="theme-color" content="{{ getConfig('primary_color') }}">
  53.         {% block stylesheets %}
  54.             {# CONFIG THEME #}
  55.             <style type="text/css">
  56.                 {% block theme_css %}
  57.                     {% include 'website/includes/css-config.html.twig' with { preventDarkTheme: false }%}
  58.                 {% endblock %}
  59.                 {% block category_css %}{% endblock %}
  60.                 {% block product_detail_css %}{% endblock %}
  61.             </style>
  62.             {# MATERIAL ICONS #}
  63.             <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  64.             {# TINY SLIDER #}
  65.             <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.4/tiny-slider.css">
  66.             {# MAIN CSS #}
  67.             {% block mainCss %}
  68.                 {{ encore_entry_link_tags('app') }}
  69.             {% endblock %}
  70.             {# CONFIG CUSTOM STYLES #}
  71.             <style type="text/css">
  72.                 {% if debug or not isLocal %}
  73.                     {{ getConfig('css')|raw }}
  74.                 {% endif %}
  75.             </style>
  76.         {% endblock %}
  77.         {% block configTags %}
  78.             {{ getConfig('meta_tags')|raw }}
  79.             {# CONFIG GOOGLE ANALYTICS #}
  80.             {{ getConfig('google_ua')|raw }}
  81.             {{ getConfig('google_ga4')|raw }}
  82.             {{ getConfig('google_gtm')|raw }}
  83.             {{ getConfig('clarity_script')|raw }}
  84.             {{ getConfig('hotjar_script')|raw }}
  85.             {{ getConfig('twitter_pixel')|raw }}
  86.             {{ getConfig('tiktok_pixel')|raw }}
  87.             {{ getConfig('kwai_pixel')|raw }}
  88.         {% endblock %}
  89.         {% block headScripts %}{% endblock %}
  90.         {% include 'website/includes/img-error.js.twig' %}
  91.     </head>
  92.     {% block bodyComplete %}
  93.         {% block bodyTag %}
  94.             <body id="body" data-theme="{{ isDarkTheme? 'dark':'light' }}"{% if isDarkTheme %} data-hide-deco="{{ hideBgDeco? 1:0 }}"{% endif %}>
  95.         {% endblock %}
  96.             {% block wrapLogin %}{% endblock %}
  97.             {% block wrap %}
  98.                 <div class="page-height">
  99.                     {% block menu_topo %}
  100.                         <div class="topo-bg">
  101.                             <div class="container">
  102.                                 {% include 'website/includes/menu.html.twig' %}
  103.                             </div>
  104.                         </div>
  105.                     {% endblock %}
  106.                     {# BODY #}
  107.                     {% block body %}
  108.                     {% endblock %}
  109.                 </div>
  110.                 {# NOTIFICATIONS #}
  111.                 <div class="fix-notifications fix-notifications-desktop" data-status="off">
  112.                 <div class="overlay overlay-notifications"></div>
  113.                     {% include 'website/includes/fix-notifications.html.twig' %}
  114.                 </div>
  115.                 {# MENU MOBILE #}
  116.                 {% block menuMobile %}
  117.                     {% embed 'website/includes/menu-mobile.html.twig'%}
  118.                         {% block content %}
  119.                             {# MENU MOBILE > SITE #}
  120.                             {% include 'website/includes/menu-mobile-site.html.twig' %}
  121.                         {% endblock %}
  122.                     {% endembed %}
  123.                 {% endblock %}
  124.             {% endblock %}{# -/wrap #}
  125.             {% block footer %}
  126.                 {% if isRestricted and user or not isRestricted %}
  127.                     {% block newsletterSection %}
  128.                         {# include 'website/home/newsletter-section.html.twig' #}
  129.                     {% endblock %}
  130.                     {% block socialSection %}
  131.                         {% include 'website/includes/social-section.html.twig' %}
  132.                     {% endblock %}
  133.                     {% block institutionalSection %}
  134.                         {% include 'website/institutional/institutional-section.html.twig' %}
  135.                     {% endblock %}
  136.                     {% if hasProducts or not isRestricted %}
  137.                         {% block stampsSection %}
  138.                             {% include 'website/includes/stamps-section.html.twig' %}
  139.                         {% endblock %}
  140.                     {% endif %}
  141.                 {% endif %}
  142.             {% endblock %}
  143.             {# OVERLAY BACKGROUND #}
  144.             {# *!!! <div id="overlay" class="overlay js--modal-fecha js--contextual-fecha js--close-menu-mobile"></div> #}
  145.             <div id="overlay" class="overlay" data-status="closed"></div>
  146.             {# SEARCH OVERLAY #}
  147.             {% if isDarkTheme %}
  148.                 {% include 'website/includes/search-overlay.html.twig' %}
  149.             {% endif %}
  150.             {# TOOLTIP #}
  151.             {% include 'website/includes/tooltip-container.html.twig' %}
  152.             {# COOKIES DISCLAIMER #}
  153.             {% include 'website/institutional/alert-terms-privacy.html.twig' %}
  154.             {# OVERLAY WARNINGS #}
  155.             {% block overlay %}{% endblock %}
  156.             {{ getConfig('livechat_script')|raw }}
  157.             {{ getConfig('freshchat_script')|raw }}
  158.             {{ getConfig('jivochat_script')|raw }}
  159.             {{ getConfig('callpage_script')|raw }}
  160.             
  161.             {% block javascripts_page %}{% endblock %}
  162.             {% block javascripts %}
  163.                 {% include 'website/includes/scripts.html.twig' %}
  164.                 {% include 'website/includes/websocket.html.twig' %}
  165.                 <script src="https://kit.fontawesome.com/b0748da184.js" crossorigin="anonymous"></script>
  166.                 {{ encore_entry_script_tags('app') }}
  167.                 {# CONFIG -- SCRIPTS #}
  168.                 {% block config_scripts %}
  169.                     {% if debug or not isLocal %}
  170.                         {{ htmlDecode(getConfig('scripts'))|raw }}
  171.                     {% endif %}
  172.                 {% endblock %}
  173.                 {% include 'website/includes/ead-rights-section.html.twig' %}
  174.                 {% include 'website/includes/sc-activate.html.twig' %}
  175.             {% endblock %}
  176.             {# TEST GUIDES #}
  177.             {# {% include 'test/includes/test-guides.html.twig' %} #}
  178.         </body>
  179.     {% endblock %}
  180. </html>