{% extends "Master/MicroTemplate.html.twig" %} {% block body %} {{ parent() }}

{% set text_lateral = settings('themelogin','text_lateral', 0) %} {{text_lateral}}

{# Obtener los valores desde la configuración #} {% set enlace_factura_script = settings('themelogin', 'enlace_factura_script', '') %} {% set enlace_facebook = settings('themelogin', 'enlace_facebook', '') %} {% set enlace_twitter = settings('themelogin', 'enlace_twitter', '') %} {% set enlace_instagram = settings('themelogin', 'enlace_instagram', '') %} {# Mostrar los enlaces si están configurados #} {% if enlace_factura_script %} {% endif %} {% if enlace_facebook %} {% endif %} {% if enlace_twitter %} {% endif %} {% if enlace_instagram %} {% endif %}
{% set idfile = settings('themelogin','imagen_lateral', 0) %} {{ _self.loadLogo(idfile) }}
{{ formToken() }}

{{ trans('login-text') }}

{{ formToken() }}
{% endblock %} {% block css %} {{ parent() }} {# Añadimos las hojas de estilo de ProTheme para que los estilos del login coincidan #} {% endblock %} {% macro loadLogo(idfile) %} {% set url = 'Dinamic/Assets/Images/logotheme.png' %} {% if idfile > 0 %} {% set attached = attachedFile(idfile) %} {% if attached.filename is not empty %} {% set url = attached.url('download-permanent') %} {% endif %} {% endif %} FacturaScripts {% endmacro loadLogo %}