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

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