diff --git a/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_item.html b/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_item.html index 2dd6c367..b47562f4 100644 --- a/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_item.html +++ b/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_item.html @@ -1,49 +1,45 @@ -
  • -
    - @if(page.isFolder) - - @else +
  • + @if(page.hasPages) +
    {{page.title}} - @if(page.hasPages) - @endif @endif
    + @else + {{page.title}} + @endif @includeIf(page.hasPages, template: "mobile_submenu")
  • diff --git a/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_submenu.html b/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_submenu.html index c55616c5..6a69076b 100644 --- a/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_submenu.html +++ b/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_submenu.html @@ -21,28 +21,49 @@ {{child.title}} @include("mobile_submenu_indicator") - @else -
    + @else @if(child.hasPages) +
    {{child.title}} - @includeIf(child.hasPages, template: "mobile_submenu_indicator") +
    - @endif @includeIf(child.hasPages, template: "mobile_submenu_menu") + @else + {{child.title}} + @endif @endif @includeIf(child.hasPages, template: "mobile_submenu_menu") @endeach