# Default menu
lib.defaultMenu = HMENU
lib.defaultMenu {
    special = directory
    special.value.field = pages
    1 = TMENU
    1 {
        target =
        target.override = {$PAGE_TARGET}
        NO {
            stdWrap.htmlSpecialChars = 1
            wrapItemAndSub = <li>|</li>
            ATagTitle.field = description // title
        }
    }
    stdWrap {
        prepend = COA
        prepend {
            stdWrap {
                if.isTrue.field = accessibility_bypass
            }
            10 = LOAD_REGISTER
            10 {
                accessibility_bypass_text = TEXT
                accessibility_bypass_text {
                    field = accessibility_bypass_text
                }
            }
            20 = CONTENT
            20 {
                table = tt_content
                select {
                    pidInList = this
                    orderBy = sorting
                    where {
                        dataWrap = sorting>{field:sorting}
                    }
                    languageField = sys_language_uid
                    max = 1
                }
                renderObj = TEXT
                renderObj {
                    required = 1
                    data = LLL:EXT:css_styled_content/Resources/Private/Language/locallang.xlf:menu.bypassNavigation
                    override.data = register:accessibility_bypass_text
                    trim = 1
                    htmlSpecialChars = 1
                    typolink {
                        parameter {
                            field = pid
                        }
                        section {
                            field = uid
                        }
                    }
                    wrap = <li class="csc-nav-bypass">|</li>
                }
            }
            30 = RESTORE_REGISTER
        }
        outerWrap = <ul class="csc-menu csc-menu-def">|</ul>
        required = 1
    }
}
