{# Responsive Menu Jinja template file. Safe to Copy #} {% import 'admin/macros.html.twig' as macros %}
{% set desktop_menu_options = options.desktop_menu_options|json_decode %} {% set menu_items = menu_items(options) %}
{% for item in menu_items %} {% set has_title = false %}
#{{ item.ID }} {{ item.title }}
{% if item.menu_item_parent == 0 %}
Set the type of menu for this sub menu section.

Note : The Menu > Depth option will not apply for Mega Menu items.

{% endif %}
Our Desktop Menu uses a 12 item width grid. You can specify the width of each item here as a fraction of 12, or keep them auto sized.
{% if item.menu_item_parent == 0 %} {# Menu panel max width element for desktop menu. #}
Add submenu panel max width.
{% set choices = { 'px': 'px', '%': '%', 'em': 'em', 'rem': 'rem', 'vw': 'vw', 'vh': 'vh' } %}
Sets the background colour for the mega menu container section.
Sets the background image for the mega menu container section.
Set the Mega menu items background and text colors.
Background
Background Hover
Text Color
Text Hover
{% endif %} {% if item.menu_item_parent != '0' %}
Add padding for this mega menu widgets section. You can add padding in any unit. Example : 10px, 2% or etc.
Top
Right
Bottom
Left
Drag the widgets and re-arrange them below.
{% if desktop_menu_options[item.ID]['widgets'] %} {% set count = 0 %} {% for widget in desktop_menu_options[item.ID]['widgets'] %} {% for type, value in widget %} {% set count = count + 1 %} {% if type == 'image' %}
Image
{% elseif type == 'text' %}
Text
{% elseif type == 'title' %} {% set has_title = true %}
Title {{ item.title }}
{% endif %} {% endfor %} {% endfor %} {% endif %} {% if not has_title %}
Title {{ item.title }}
{% endif %}
Image
Text
{% endif %}
{% endfor %}