get_results("SELECT ID, post_title from $wpdb->posts WHERE post_type='page' AND post_parent=0 ORDER BY post_title");
else
$results = $wpdb->get_results("SELECT ID, post_title from $wpdb->posts WHERE post_status='static' AND post_parent=0 ORDER BY post_title");
$excludepages = explode(',', get_settings('viala_excludepages'));
if($results) {
echo " ";_e('Exclude the Following Pages from the Top Navigation','ml');echo "
";
foreach($results as $page)
{
echo 'ID, $excludepages)==true) { echo ' checked="checked"'; }
echo ' /> ' . $page->post_title . ' ';
}
}
echo '
';
echo " ";_e('Sort the List Pages by','ml');echo " ";
ml_input( "s_sortpages", "radio", __("Page Title ?",'ml'), "post_title", get_settings( 'viala_sortpages' ) );
ml_input( "s_sortpages", "radio", __("Date ?",'ml'), "post_date", get_settings( 'viala_sortpages' ) );
ml_input( "s_sortpages", "radio", __("Page Order ?",'ml'), "menu_order", get_settings( 'viala_sortpages' ) );
_e("(Each Page can be given a page order number, from the wordpress admin, edit page area)",'ml');
echo " ";
?>
|
'', 'show_option_none' => '',
'orderby' => 'ID', 'order' => 'ASC',
'show_last_update' => 0, 'show_count' => 0,
'hide_empty' => 1, 'child_of' => 0,
'exclude' => '', 'echo' => 1,
'selected' => 0, 'hierarchical' => 0,
'name' => 'cat', 'class' => 'postform'
);
$r = wp_parse_args( $args, $defaults );
extract( $r );
$features_cats = get_categories($r);
?>
|