Unification of the variable menu_default_links_color

This commit is contained in:
slawkens
2025-02-09 01:02:14 +01:00
parent f97f8cbe87
commit f646856e20
5 changed files with 8 additions and 7 deletions

View File

@@ -7,8 +7,9 @@
last_id[{{ cat }}] = {{ last_id[cat] }};
{% endfor %}
{% set menuDefaultLinksColor = config('menu_default_links_color') %}
{% for cat, options in config('menu_categories') %}
colors[{{ cat }}] = '{{ options['default_links_color'] ?? config('menu_default_color') }}';
colors[{{ cat }}] = '{{ options['default_links_color'] ?? (menuDefaultLinksColor ?? config('menu_default_color')) }}';
{% endfor %}
$(function () {