\n"; } /** * Start El. * * @see Walker::start_el() * @since 3.0.0 * * @access public * @param mixed $output Passed by reference. Used to append additional content. * @param mixed $item Menu item data object. * @param int $depth (default: 0) Depth of menu item. Used for padding. * @param array $args (default: array()) Arguments. * @param int $id (default: 0) Menu item ID. * @return void */ public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; /** * Dividers, Headers or Disabled * ============================= * Determine whether the item is a Divider, Header, Disabled or regular * menu item. To prevent errors we use the strcasecmp() function to so a * comparison that is not case sensitive. The strcasecmp() function returns * a 0 if the strings are equal. */ if ( 0 === strcasecmp( $item->attr_title, 'divider' ) && 1 === $depth ) { $output .= $indent . '
  • ' . esc_attr( 'Add a menu', 'borax' ) . '
  • '; echo ''; if ( $container ) { echo ''; } } } } } // End if().