\n"; } /** * Start_el * * @see Walker::start_el() * @since 3.0.0 * * @param string $output Output. * @param WP_Post $item Item. * @param int $depth Depth. * @param array $args Args. * @param int $id id. */ 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 ( strcasecmp( $item->attr_title, 'divider' ) == 0 && $depth >= 1 ) { $output .= $indent . ''; $fb_output .= ''; if ( $args['container'] ) { $fb_output .= ''; } $allowed_html = array( 'a' => array( 'href' => array(), ), 'div' => array( 'id' => array(), 'class' => array(), ), 'ul' => array( 'class' => array(), ), 'li' => array(), ); echo wp_kses( $fb_output, $allowed_html ); } } }