includes/cs-bootstrap-register-menu.php
/* End of the <ul>
   *
   * Note on $depth: Counterintuitively, $depth here means the "depth right before we start this menu".
   *                   So basically add one to what you'd expect it to be
   */
End of the 
Note on $depth: Counterintuitively, $depth here means the "depth right before we start this menu".
So basically add one to what you'd expect it to be
End of the Note on $depth : Counterintuitively $depth here means the " depth right before we start this menu " . So basically add one to what you ' d expect it to be
function end_lvl(&$output, $depth)
  {
    if ($depth == 0) { 
      $output .= '<!--.dropdown-->';
    }
    $tabs = str_repeat("\t", $depth);
    $output .= "\n{$tabs}</ul>\n";
    return;
  }
function end_lvl ( & $ output , $ depth ) { if ( $ depth == 0 ) { $ output .= '<!--.dropdown-->' ; } $ tabs = str_repeat ( " \t " , $ depth ) ; $ output .= " \n { $ tabs } </ul> \n " ; return ; }
End of the <ul>
 Note on $depth: Counterintuitively, $depth here means the "depth right before we start this menu".
End of the <ul > Note on $depth : Counterintuitively $depth here means the " depth right before we start this menu " .
// This is actually the end of the level-1 submenu ($depth is misleading here too!) // we don't have anything special for Bootstrap, so we'll just leave an HTML comment for now