{% 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 %}
{% 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.
{% 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 %}
Sets the background colour for the mega menu container section.
Sets the background image for the mega menu container section.
{% endif %}
{% if item.menu_item_parent != '0' %}
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 %}