Changeset 5444 for trunk/wp-includes/post-template.php
- Timestamp:
- 05/11/2007 03:10:05 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r5293 r5444 136 136 137 137 function wp_link_pages($args = '') { 138 global $post; 139 140 if ( is_array($args) ) 141 $r = &$args; 142 else 143 parse_str($args, $r); 144 145 $defaults = array('before' => '<p>' . __('Pages:'), 'after' => '</p>', 'next_or_number' => 'number', 'nextpagelink' => __('Next page'), 146 'previouspagelink' => __('Previous page'), 'pagelink' => '%', 'more_file' => '', 'echo' => 1); 147 $r = array_merge($defaults, $r); 148 extract($r); 149 150 global $id, $page, $numpages, $multipage, $more, $pagenow; 138 $defaults = array( 139 'before' => '<p>' . __('Pages:'), 'after' => '</p>', 140 'next_or_number' => 'number', 'nextpagelink' => __('Next page'), 141 'previouspagelink' => __('Previous page'), 'pagelink' => '%', 142 'more_file' => '', 'echo' => 1 143 ); 144 145 $r = wp_parse_args( $args, $defaults ); 146 extract( $r ); 147 148 global $post, $id, $page, $numpages, $multipage, $more, $pagenow; 151 149 if ( $more_file != '' ) 152 150 $file = $more_file; … … 252 250 253 251 function wp_dropdown_pages($args = '') { 254 if ( is_array($args) ) 255 $r = &$args; 256 else 257 parse_str($args, $r); 258 259 $defaults = array('depth' => 0, 'child_of' => 0, 'selected' => 0, 'echo' => 1, 260 'name' => 'page_id', 'show_option_none' => ''); 261 $r = array_merge($defaults, $r); 262 extract($r); 252 $defaults = array( 253 'depth' => 0, 'child_of' => 0, 254 'selected' => 0, 'echo' => 1, 255 'name' => 'page_id', 'show_option_none' => '' 256 ); 257 258 $r = wp_parse_args( $args, $defaults ); 259 extract( $r ); 263 260 264 261 $pages = get_pages($r); … … 282 279 283 280 function wp_list_pages($args = '') { 284 if ( is_array($args) ) 285 $r = &$args; 286 else 287 parse_str($args, $r); 288 289 $defaults = array('depth' => 0, 'show_date' => '', 'date_format' => get_option('date_format'), 290 'child_of' => 0, 'exclude' => '', 'title_li' => __('Pages'), 'echo' => 1, 'authors' => '', 'sort_column' => 'menu_order, post_title'); 291 $r = array_merge($defaults, $r); 281 $defaults = array( 282 'depth' => 0, 'show_date' => '', 283 'date_format' => get_option('date_format'), 284 'child_of' => 0, 'exclude' => '', 285 'title_li' => __('Pages'), 'echo' => 1, 286 'authors' => '', 'sort_column' => 'menu_order, post_title' 287 ); 288 289 $r = wp_parse_args( $args, $defaults ); 290 extract( $r ); 292 291 293 292 $output = '';
Note: See TracChangeset
for help on using the changeset viewer.