templates\_base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.         <title>{% block title %}{{site|capitalize}} Space{% endblock %}</title>
  7.         <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
  8.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  9.         {% block stylesheets %}
  10.             
  11.         {% endblock %}
  12.         {% block javascripts %}
  13.             {{ encore_entry_script_tags('ui', null, site|lower) }}             
  14.             {{ encore_entry_script_tags('consent', null, site|lower) }}             
  15.         {% endblock %}
  16.     </head>
  17.    
  18.     <body {% if searchEmpty is defined %} 
  19.         data-search-empty="{{searchEmpty}}"
  20.         data-search-msg-icon="{{searchMsgIcon}}"
  21.         data-search-msg-title="{{searchMsgTitle}}"
  22.         data-search-msg-html="{{searchMsgHtml}}"
  23.         data-search-msg-footer="{{searchMsgFooter}}"
  24.         
  25.         {% endif %} class="{#
  26.             #}{% if page is defined %}page--{{page}}{% endif %}
  27.         {#{% if app.request.get('_route') == 'signup' or app.request.get('_route') == 'signin' %}light-green{% endif %}"#} 
  28.         "
  29.         {% if mainMenu[0]['css'] is defined and mainMenu[0]['css']['body_hex_color'] is defined %}
  30.             {# make a template to use with names of the vals arrays #}
  31.             {% include 'parts/_custom-el-css.html.twig' with {'css': mainMenu[0]['css'],'cssToUse':[{ 'body_hex_color':'background-color' }]} %}
  32.         {% endif %}    
  33.             >
  34.         {% if app.user is not null %}
  35.         {#{% if app.user is not null and is_granted('ROLE_SUPERUSER') %}#}
  36.             {% include 'admin/_top-panel.html.twig' %}
  37.         {% endif %}
  38.         {% block body %}{% endblock %}
  39.     </body>
  40. </html>