From fa32853d3daaf9290a2f359e968396c5ed8cf299 Mon Sep 17 00:00:00 2001 From: Japo Domingo Date: Mon, 30 Aug 2021 17:31:55 +1200 Subject: [PATCH] Add list of extra templating code configurations Add a full list of the available configurations on the menu items page. --- src/templates/_menu-items.twig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/templates/_menu-items.twig b/src/templates/_menu-items.twig index d3b70c5..4c1334f 100644 --- a/src/templates/_menu-items.twig +++ b/src/templates/_menu-items.twig @@ -292,6 +292,17 @@
{% verbatim %}{{ craft.olivemenus.getMenuHTML('{% endverbatim %}{{menu.handle}}{% verbatim %}') }}{% endverbatim %}

{{ "Optionally you can add an array of settings to the call, to set extra configurations for the menu:"|t('olivemenus') }}

{% verbatim %}{{ craft.olivemenus.getMenuHTML('{% endverbatim %}{{menu.handle}}{% verbatim %}',{ 'menu-id': 'main-menu' }) }}{% endverbatim %}
+

{{ "This is the full list of extra configurations with the default values:"|t('olivemenus') }}

+
{% verbatim %}
+'menu-id': '',
+'menu-class': '',
+'ul-class': '',
+'without-container': false,
+'without-ul': false,
+'li-class': '',
+'link-class': '',
+'sub-menu-ul-class': ''
+					{% endverbatim %}