mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Shorten setting name
This commit is contained in:
parent
0e5a5ef27e
commit
9d962f91ff
5 changed files with 12 additions and 12 deletions
|
@ -38,7 +38,7 @@ miniposts: true
|
|||
miniposts_number: 3
|
||||
latestposts: true
|
||||
miniposts_category: minipost
|
||||
displaycustommenus:
|
||||
custommenus:
|
||||
enabled: false
|
||||
dropdown:
|
||||
enabled: true
|
||||
|
|
|
@ -25,7 +25,7 @@ dependencies:
|
|||
form:
|
||||
validation: loose
|
||||
|
||||
fields:
|
||||
fields:
|
||||
production-mode:
|
||||
type: toggle
|
||||
label: FUTURE.ADMIN.THEME.PRODUCTION_MODE
|
||||
|
@ -53,7 +53,7 @@ form:
|
|||
toggleable: true
|
||||
filesize: 3
|
||||
accept: ['image/png', '.ico']
|
||||
|
||||
|
||||
custom_logo:
|
||||
type: file
|
||||
label: FUTURE.ADMIN.THEME.CUSTOM_LOGO
|
||||
|
@ -73,7 +73,7 @@ form:
|
|||
multiple: false
|
||||
accept:
|
||||
- image/*
|
||||
|
||||
|
||||
slogan:
|
||||
type: text
|
||||
label: FUTURE.ADMIN.THEME.SLOGAN
|
||||
|
@ -125,7 +125,7 @@ form:
|
|||
validate:
|
||||
min: 1
|
||||
max: 5
|
||||
|
||||
|
||||
footer_section:
|
||||
type: columns
|
||||
fields:
|
||||
|
@ -186,7 +186,7 @@ form:
|
|||
icon: bars
|
||||
title: FUTURE.ADMIN.THEME.CUSTOM_MENU_TITLE
|
||||
fields:
|
||||
displaycustommenus.enabled:
|
||||
custommenus.enabled:
|
||||
type: toggle
|
||||
label: FUTURE.ADMIN.THEME.CUSTOM_MENU_ENABLE
|
||||
help: FUTURE.ADMIN.THEME.CUSTOM_MENU_ENABLE_HELP
|
||||
|
|
|
@ -38,5 +38,5 @@ miniposts: true
|
|||
miniposts_number: 3
|
||||
latestposts: true
|
||||
miniposts_category: minipost
|
||||
displaycustommenus:
|
||||
custommenus:
|
||||
enabled: true
|
|
@ -3,7 +3,7 @@
|
|||
<ul>
|
||||
{{ macros.nav_loop(pages) }}
|
||||
|
||||
{% if theme_var('displaycustommenus.enabled') %}
|
||||
{% if theme_var('custommenus.enabled') %}
|
||||
{% for mitem in theme_var('custommenu') %}
|
||||
<li>
|
||||
<a href="{{ mitem.url }}" target="{{ mitem.target }}">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% block menu_navigation %}
|
||||
{% block menu_navigation %}
|
||||
{% macro loop(page) %}
|
||||
{% for p in page.children.visible %}
|
||||
{% set current_page = (p.active or p.activeChild) ? 'active' : '' %}
|
||||
|
@ -24,7 +24,7 @@
|
|||
{% endmacro %}
|
||||
<ul class="menulink">
|
||||
{{ _self.loop(pages) }}
|
||||
{% if theme_var('displaycustommenus.enabled') %}
|
||||
{% if theme_var('custommenus.enabled') %}
|
||||
{% for mitem in theme_var('menu') %}
|
||||
<li>
|
||||
<a href="{{ mitem.url }}" target="{{ mitem.target }}">
|
||||
|
@ -36,5 +36,5 @@
|
|||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
</ul>
|
||||
{% endblock %}
|
Loading…
Add table
Reference in a new issue