Allow to configure the global theme using the WebUI

This commit is contained in:
Jan Böhmer 2024-06-24 21:40:37 +02:00
parent 3e657a7cac
commit f88584e1ca
5 changed files with 16 additions and 6 deletions

View file

@ -40,14 +40,12 @@
{% if not app.user.theme is defined %}
{% set theme = global_theme %}
{% if app.user.theme is not defined or app.user.theme is null %}
{% set theme = settings_instance('customization').theme %}
{% else %}
{% set theme = app.user.theme %}
{% endif %}
{% if theme and theme in available_themes and encore_entry_exists('theme_' ~ theme) %}
{{ encore_entry_link_tags('theme_' ~ theme) }}
{% else %}