menu.defaults = HMENU
menu.defaults {
  1 = TMENU
  1 {
    
    #wrap = <ul class="level-1">|</ul>
    
    expAll = 1
    noBlur = 1
    
    NO = 1
    NO {
      # Use the page title field the title property on the A-tag, but only if the navigation title is set
      ATagTitle {
        field = title
        fieldRequired = nav_title
      }
      
      #wrapItemAndSub = <li class="nav-item first">|</li> |*| <li class="nav-item">|</li> |*| <li class="nav-item last">|</li>
      wrapItemAndSub = <li>|</li>
                   
      # HTML-encode special characters according to the PHP-function htmlSpecialChars
      stdWrap.htmlSpecialChars = 1
    }
  
    /*
    IFSUB = 1
    IFSUB < .NO
    IFSUB {
      wrapItemAndSub = <li class="subpages">|</li>         
      ATagBeforeWrap = 1
    }
    */
    
    IFSUB = 1
    IFSUB.before = <a href="#" class="dropdown-toggle" data-toggle="dropdown">
    IFSUB.after =  <span class="child-icon">+</span></a>
    IFSUB.doNotLinkIt = 1
    IFSUB.wrapItemAndSub = <li class="dropdown">|</li>
    IFSUB.ATagTitle.field = abstract // description // title
    
    ACT = 1
    ACT < .NO
    ACT {
      #wrapItemAndSub = <li class="cur">|</li>
      ATagParams = class="cur"
    }
    
    ACTIFSUB = 1
    ACTIFSUB.before = <a href="#" class="dropdown-toggle act" data-toggle="dropdown">
    ACTIFSUB.after =  <span class="child-icon">+</span></a>
    ACTIFSUB.doNotLinkIt = 1
    ACTIFSUB.wrapItemAndSub = <li class="dropdown">|</li>
    ACTIFSUB.ATagTitle.field = abstract // description // title
    ACTIFSUB.ATagParams = class="cur"

    CUR = 1
    CUR < .NO
    CUR {
      ATagParams = class="cur"
      #wrapItemAndSub = <li class="cur">|</li>
    }
    
    CURIFSUB = 1
    CURIFSUB < .ACTIFSUB
    CURIFSUB.before = <a href="#" class="dropdown-toggle" data-toggle="dropdown">
    #CURIFSUB.before = <a href="#" class="dropdown-toggle" data-toggle="dropdown">
    #CURIFSUB.after =  <i class="fa fa-caret-down" aria-hidden="true"></i></a>
    #CURIFSUB.doNotLinkIt = 1
    #CURIFSUB.wrapItemAndSub = <li class="dropdown">|</li>
    #CURIFSUB.ATagTitle.field = abstract // description // title
    #CURIFSUB.ATagParams = class="cur"

    /*
    CURIFSUB < .IFSUB
    CURIFSUB {
      wrapItemAndSub = <li class="cur subpages">|</li>
      #ATagParams = class="selected"
    }
    */
  }
  2 < .1
  2 {
    wrap = <ul class="level-2">|</ul>
  }
  3 < .2
  3 {
    wrap = <ul class="level-3">|</ul>
  }
  4 < .3
  4 {
    wrap = <ul class="level-4">|</ul>
  }
  5 < .4
  5 {
    wrap = <ul class="level-5">|</ul>
  }
  #2 < .1
  #3 < .2
}