lib.mobilenavigation = HMENU
lib.mobilenavigation {
    wrap = <nav id="mobileNavigation" role="navigation"><ul><li><a href="/">Startseite</a></li>|</ul></nav>

    1 = TMENU
    1 {
        expAll = 1

        NO = 1
        NO {
            wrapItemAndSub  = <li>|</li>
            stdWrap.htmlSpecialChars = 1
            ATagTitle.field = abstract // description // subtitle // title
        }

        CUR < .NO
        CUR.wrapItemAndSub  = <li class="active">|</li>

        IFSUB < .NO
        IFSUB {
            wrapItemAndSub = <li class="hasSub">|</li>
            stdWrap2.append = TEXT
            stdWrap2.append.wrap = <input type="radio" id="subNavigationTrigger-{field:uid}" name="subNavigationLevel-1" class="subNavigationTrigger"><div class="subNavigationContainer">
            stdWrap2.append.wrap.insertData = 1
        }

        CURIFSUB < .IFSUB
        CURIFSUB {
            wrapItemAndSub = <li class="hasSub active">|</li>
        }

        ACTIFSUB < .CURIFSUB
        ACTIFSUB {
            wrapItemAndSub = <li class="hasSub active">|</li>
            stdWrap2.append = TEXT
            stdWrap2.append.wrap = <input type="radio" id="subNavigationTrigger-{field:uid}" name="subNavigationLevel-1" class="subNavigationTrigger" checked="checked"><div class="subNavigationContainer">
            stdWrap2.append.wrap.insertData = 1
        }
    }

    2 < .1
    2 {
        #wrap = <ul>|</ul>

        #stdWrap.prepend = TEXT
        #stdWrap.prepend.field= pid
        #stdWrap.prepend.wrap = <input type="radio" id="subNavigationTrigger-|" name="subNavigationLevel-1" class="subNavigationTrigger"><div class="subNavigationContainer">
        stdWrap.append = TEXT
        stdWrap.append.field= pid
        stdWrap.append.wrap = <label for="subNavigationTrigger-|" class="subNavigationLabel"><span>+</span></label></div>
        stdWrap.wrap = <ul>|</ul>

#        IFSUB {
#            stdWrap2.append = TEXT
#            stdWrap2.append.wrap = <input type="radio" id="subNavigationTrigger-{field:uid}" name="subNavigationLevel-2" class="subNavigationTrigger"><div class="subNavigationContainer">
#            stdWrap2.append.wrap.insertData = 1
#        }

#        ACTIFSUB {
#            stdWrap2.append = TEXT
#            stdWrap2.append.wrap = <input type="radio" id="subNavigationTrigger-{field:uid}" name="subNavigationLevel-2" class="subNavigationTrigger" checked="checked"><div class="subNavigationContainer">
#            stdWrap2.append.wrap.insertData = 1
#        }

        IFSUB >
        CURIFSUB >
        ACTIFSUB >
    }

#    3 < .1
#    3 {
#        #wrap = <ul>|</ul>
#
#        #stdWrap.prepend = TEXT
#        #stdWrap.prepend.field= pid
#        #stdWrap.prepend.wrap = <input type="radio" id="subNavigationTrigger-|" name="subNavigationLevel-2" class="subNavigationTrigger"><div class="subNavigationContainer">
#        stdWrap.append = TEXT
#        stdWrap.append.field= pid
#        stdWrap.append.wrap = <label for="subNavigationTrigger-|" class="subNavigationLabel"><span>+</span></label></div>
#        stdWrap.wrap = <ul>|</ul>
#    }

#    4 < .1
#    4 {
#        wrap = <ul>|</ul>
#
#        IFSUB >
#        CURIFSUB >
#        ACTIFSUB >
#    }
}