'
',
'after_widget' => '',
'before_title' => '',
));
}
function wp_list_pages2($limit=NULL) {
$defaults = array('depth' => 0, 'show_date' => '', 'date_format' => get_option('date_format'),
'child_of' => 0, 'exclude' => '', 'title_li' =>'', 'echo' => 1, 'authors' => '', 'sort_column' => 'menu_order, post_title');
$r = array_merge((array)$defaults, (array)$r);
$output = '';
$current_page = 0;
// sanitize, mostly to keep spaces out
$r['exclude'] = preg_replace('[^0-9,]', '', $r['exclude']);
// Allow plugins to filter an array of excluded pages
$r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude'])));
// Query pages.
$pages = get_pages($r);
if ( !empty($pages) ) {
for($i=0;$ipost_title))
$class=' class="select" ';
$output .=''.$pages[$i]->post_title.'';
if($limit!=NULL)
{
break;
}
}
}
$output = apply_filters('wp_list_pages', $output);
echo $output;
}
?>