Shorten setting name

This commit is contained in:
pikim 2022-12-03 14:23:55 +01:00
parent 0e5a5ef27e
commit 9d962f91ff
5 changed files with 12 additions and 12 deletions

View file

@ -38,7 +38,7 @@ miniposts: true
miniposts_number: 3 miniposts_number: 3
latestposts: true latestposts: true
miniposts_category: minipost miniposts_category: minipost
displaycustommenus: custommenus:
enabled: false enabled: false
dropdown: dropdown:
enabled: true enabled: true

View file

@ -25,7 +25,7 @@ dependencies:
form: form:
validation: loose validation: loose
fields: fields:
production-mode: production-mode:
type: toggle type: toggle
label: FUTURE.ADMIN.THEME.PRODUCTION_MODE label: FUTURE.ADMIN.THEME.PRODUCTION_MODE
@ -53,7 +53,7 @@ form:
toggleable: true toggleable: true
filesize: 3 filesize: 3
accept: ['image/png', '.ico'] accept: ['image/png', '.ico']
custom_logo: custom_logo:
type: file type: file
label: FUTURE.ADMIN.THEME.CUSTOM_LOGO label: FUTURE.ADMIN.THEME.CUSTOM_LOGO
@ -73,7 +73,7 @@ form:
multiple: false multiple: false
accept: accept:
- image/* - image/*
slogan: slogan:
type: text type: text
label: FUTURE.ADMIN.THEME.SLOGAN label: FUTURE.ADMIN.THEME.SLOGAN
@ -125,7 +125,7 @@ form:
validate: validate:
min: 1 min: 1
max: 5 max: 5
footer_section: footer_section:
type: columns type: columns
fields: fields:
@ -186,7 +186,7 @@ form:
icon: bars icon: bars
title: FUTURE.ADMIN.THEME.CUSTOM_MENU_TITLE title: FUTURE.ADMIN.THEME.CUSTOM_MENU_TITLE
fields: fields:
displaycustommenus.enabled: custommenus.enabled:
type: toggle type: toggle
label: FUTURE.ADMIN.THEME.CUSTOM_MENU_ENABLE label: FUTURE.ADMIN.THEME.CUSTOM_MENU_ENABLE
help: FUTURE.ADMIN.THEME.CUSTOM_MENU_ENABLE_HELP help: FUTURE.ADMIN.THEME.CUSTOM_MENU_ENABLE_HELP

View file

@ -38,5 +38,5 @@ miniposts: true
miniposts_number: 3 miniposts_number: 3
latestposts: true latestposts: true
miniposts_category: minipost miniposts_category: minipost
displaycustommenus: custommenus:
enabled: true enabled: true

View file

@ -3,7 +3,7 @@
<ul> <ul>
{{ macros.nav_loop(pages) }} {{ macros.nav_loop(pages) }}
{% if theme_var('displaycustommenus.enabled') %} {% if theme_var('custommenus.enabled') %}
{% for mitem in theme_var('custommenu') %} {% for mitem in theme_var('custommenu') %}
<li> <li>
<a href="{{ mitem.url }}" target="{{ mitem.target }}"> <a href="{{ mitem.url }}" target="{{ mitem.target }}">

View file

@ -1,4 +1,4 @@
{% block menu_navigation %} {% block menu_navigation %}
{% macro loop(page) %} {% macro loop(page) %}
{% for p in page.children.visible %} {% for p in page.children.visible %}
{% set current_page = (p.active or p.activeChild) ? 'active' : '' %} {% set current_page = (p.active or p.activeChild) ? 'active' : '' %}
@ -24,7 +24,7 @@
{% endmacro %} {% endmacro %}
<ul class="menulink"> <ul class="menulink">
{{ _self.loop(pages) }} {{ _self.loop(pages) }}
{% if theme_var('displaycustommenus.enabled') %} {% if theme_var('custommenus.enabled') %}
{% for mitem in theme_var('menu') %} {% for mitem in theme_var('menu') %}
<li> <li>
<a href="{{ mitem.url }}" target="{{ mitem.target }}"> <a href="{{ mitem.url }}" target="{{ mitem.target }}">
@ -36,5 +36,5 @@
</li> </li>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</ul> </ul>
{% endblock %} {% endblock %}