'', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

', )); function wp_list_page($args = '') { parse_str($args, $r); if ( !isset($r['depth']) ) $r['depth'] = 0; if ( !isset($r['show_date']) ) $r['show_date'] = ''; if ( !isset($r['child_of']) ) $r['child_of'] = 0; if ( !isset($r['title_li']) ) $r['title_li'] = __('Pages'); if ( !isset($r['echo']) ) $r['echo'] = 1; $output = ''; // Query pages. $pages = & get_pages($args); if ( $pages ) { if ( $r['title_li'] ) $output .= ''; } $output = apply_filters('wp_list_page', $output); if ( $r['echo'] ) echo $output; else return $output; } function _page_level_out1($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']; $css_class = 'page_item'; if ( $page_id == $queried_obj->ID ) $css_class .= ' current_page_item'; $output .= $indent . '
  • ' . $title . ''; 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; } ?>