' . $r['title_li'] . ''; } $output .='|'; //$output = apply_filters('mjn_list_pages', $output); if ( $r['echo'] ) echo $output; else return $output; } function _mjn_page_level_out($parent, $page_tree, $args, $depth = 0, $echo = true) { global $wp_query; $queried_obj = $wp_query->get_queried_object(); $output = ''; if ( $depth ) $indent = str_repeat("\t", $depth); //$indent = join('', array_fill(0,$depth,"\t")); if ( !is_array($page_tree[$parent]['children']) ) return false; foreach ( $page_tree[$parent]['children'] as $page_id ) { $cur_page = $page_tree[$page_id]; $title = $cur_page['title']; $linkstyle=''; $closestyle=''; $css_class = 'page_item'; if ( $page_id == $queried_obj->ID ) { $linkstyle=''; $closestyle=''; } //This line below is the one you modify to get the output you'd like! $output .= '| '.$linkstyle . $title . $closestyle.' '; /*if ( isset($cur_page['ts']) ) { $format = get_settings('date_format'); if ( isset($args['date_format']) ) $format = $args['date_format']; $output .= " " . mysql2date($format, $cur_page['ts']); }*/ /*if ( isset($cur_page['children']) && is_array($cur_page['children']) ) { $new_depth = $depth + 1; if ( !$args['depth'] || $depth < ($args['depth']-1) ) { $output .= "$indent\n"; } }*/ //$output .= "$indent\n"; } if ( $echo ) echo $output; else return $output; } ?>