{# layout.html.twig #} {# Base layout #} {% if app['combodo.current_user'] is defined and app['combodo.current_user'] is not null %} {% set bUserConnected = true %} {% set sUserFullname = app['combodo.current_user'].Get('first_name') ~ ' ' ~ app['combodo.current_user'].Get('last_name') %} {% set sUserEmail = app['combodo.current_user'].Get('email') %} {% set sUserPhotoUrl = app['combodo.current_contact.photo_url'] %} {% else %} {% set bUserConnected = false %} {% set sUserFullname = '' %} {% set sUserEmail = '' %} {% set sUserPhotoUrl = app['combodo.portal.base.absolute_url'] ~ 'img/user-profile-default-256px.png' %} {% endif %} {# This block can be used to add your own meta tags by extending the default template #} {% block pPageExtraMetas %} {% endblock %} {% block pPageTitle %}{% if sPageTitle is defined and sPageTitle is not null %}{{ sPageTitle }} - {{ constant('ITOP_APPLICATION') }}{% else %}{{ 'Page:DefaultTitle'|dict_s }}{% endif %}{% endblock %} {% block pPageStylesheets %} {# First bootstrap core, lib themes, then bootstrap theme, portal adjustements #} {# - Bootstrap Datetime picker #} {# - Datatables #} {# - Font Combodo #} {# - Font awesome #} {# - Misc libs #} {# - Bootstrap theme #} {# - Portal adjustments for BS theme #} {# Custom CSS that is supposed to do adjustments to the portal #} {% if app['combodo.portal.instance.conf'].properties.themes.custom is defined %} {% endif %} {# Others CSS that will come after the theme/portal/custom, in an undefined order #} {% if app['combodo.portal.instance.conf'].properties.themes.others is defined %} {% for theme in app['combodo.portal.instance.conf'].properties.themes.others %} {% endfor %} {% endif %} {% endblock %} {% block pPageScripts %} {# Visible.js to check if an element is visible on screen #} {# Base64.js #} {# Moment.js #} {# Datatables #} {# CKEditor files for HTML WYSIWYG #} {# Date-time picker for Bootstrap #} {# Typeahead files for autocomplete #} {# Form files #} {# Form files for portal #} {% endblock %} {% block pPageBodyWrapper %} {% block pEnvBannerWrapper %} {% if app['combodo.current_environment'] != 'production' %} {% endif %} {% endblock %} {% block pNavigationWrapper %} {# Topbar navigation menu for mobile screens #} {% block pNavigationTopMenuWrapper %} {% endblock %} {# Sidebar navigation menu for normal screens #} {% block pNavigationSideMenuWrapper %} {% endblock %} {% endblock %} {% block pMainWrapper %}
{% block pMainHeader %} {% endblock %}
{% block pMainContent %} {% endblock %}
{% endblock %} {% block pModalForAllWrapper %} {% endblock %} {% block pModalForAlert %} {% endblock %} {% block pPageOverlay %}
{% include 'itop-portal-base/portal/src/views/helpers/loader.html.twig' %}
{% endblock %} {% endblock %} {% block pPageLiveScripts %} {% endblock %}