$n"; } /** * {@inheritDoc} */ public function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) { $indent = str_repeat( "\t", $depth ); $css_class = ''; if ( ! empty( $args['current_class'] ) && $page->ID === $current_page ) { $css_class .= ' ' . $args['current_class']; } if ( ! empty( $args['has_children_class'] ) && $this->has_children ) { $css_class .= ' ' . $args['has_children_class']; } $output .= $indent . '
  • '; $output .= '' . $page->post_title . ''; if ( $args['has_children_class'] && $this->has_children ) { $output .= '' . '' . ''; } } } }