{#
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 continue = false %}
{% if item.menu_item_parent == '0' %}
{% set parent_id = item.ID %}
{% set class = 'responsive-menu-desktop-menu-top-level-label' %}
{% set continue = true %}
{% elseif parent_id == item.menu_item_parent %}
{% set next_level_id = item.ID %}
{% set class = 'responsive-menu-desktop-menu-sub-menu-label' %}
{% set continue = true %}
{% endif %}
{# Stop us going too many levels deep #}
{% if continue %}
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 %}