{# /** * This file is part of FacturaScripts * Copyright (C) 2017-2024 Carlos Garcia Gomez * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see http://www.gnu.org/licenses/. */ #} {% for item in getIncludeViews('MenuTemplate', 'HeadFirst') %} {% include item['path'] %} {% endfor %} {% block meta %} {{ fsc.title | raw }} {% endblock %} {% block icons %} {% endblock %} {% for item in getIncludeViews('MenuTemplate', 'CssBefore') %} {% include item['path'] %} {% endfor %} {% block css %} {% endblock %} {# Adds custom CSS assets #} {% for css in assetManager.get('css') %} {% endfor %} {% for item in getIncludeViews('MenuTemplate', 'CssAfter') %} {% include item['path'] %} {% endfor %} {% for item in getIncludeViews('MenuTemplate', 'JsHeadBefore') %} {% include item['path'] %} {% endfor %} {% block javascripts %} {% endblock %} {# Adds custom JS assets #} {% for js in assetManager.get('js') %} {% endfor %} {% for item in getIncludeViews('MenuTemplate', 'JsHeadAfter') %} {% include item['path'] %} {% endfor %} {% if debugBarRender %} {{ debugBarRender.renderHead() | raw }} {% endif %} {% for item in getIncludeViews('MenuTemplate', 'HeadEnd') %} {% include item['path'] %} {% endfor %} {% block fullBody %} {% if fsc.isPublic == 0 %} {% for item in getIncludeViews('MenuTemplate', 'BodyFirst') %} {% include item['path'] %} {% endfor %} {% block navbar %} {% if settings("theme", "select-menu") == '' %} {% include 'ProTheme/Menu/horizontal.html.twig' %} {% endif %} {% if settings("theme", "select-menu") == 'vertical' %} {% include 'ProTheme/Menu/vertical.html.twig' %} {% endif %} {% if settings("theme", "select-menu") == 'horizontal' %} {% include 'ProTheme/Menu/horizontal.html.twig' %} {% endif %} {% endblock %} {% endif %}
{% block messages %} {% if fsc.isPublic == 0 %} {% include 'Macro/Toasts.html.twig' %} {% from 'Macro/Utils.html.twig' import message as showMessage %}
{{ showMessage(log, ['error', 'critical'], 'danger') }} {{ showMessage(log, ['warning'], 'warning') }} {{ showMessage(log, ['notice'], 'success') }} {{ showMessage(log, ['info'], 'info') }}
{% endif %} {% endblock %} {% block bodyHeaderOptions %} {% endblock %}
{% block body %} {% endblock %} {% for item in getIncludeViews('MenuTemplate', 'JsFooter') %} {% include item['path'] %} {% endfor %} {% for item in getIncludeViews('MenuTemplate', 'BodyEnd') %} {% include item['path'] %} {% endfor %} {% if debugBarRender %} {{ debugBarRender.render() | raw }} {% endif %}


{% endblock %}