- Timestamp:
- Jun 18, 2009, 12:39:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/authors_block_theme.php
r284 r292 10 10 $mydirpath = get_xpress_dir_path(); 11 11 12 $param = array( 13 'optioncount' => $optioncount, 14 'exclude_admin' => $exclude_admin, 15 'format' => $format, 16 'show_fullname' => $show_fullname, 17 'hide_empty' => $hide_empty, 18 'feed' => '', 19 'feed_image' => '' 20 ); 21 $param_str = 'optioncount='. $optioncount . '&exclude_admin=' . $exclude_admin .'&format=' . $format . '&show_fullname='. $show_fullname . '&hide_empty=' . $hide_empty; 22 ob_start(); 23 // wp_list_authors($param); 24 wp_list_authors($param_str); //WP2011 wp_list_authors() used only parse_str() 25 $list_authors = ob_get_contents() ; 26 ob_end_clean(); 12 if(xpress_is_wp20() ){ 13 $param_str = 'optioncount='. $optioncount . '&exclude_admin=' . $exclude_admin .'&show_fullname='. $show_fullname . '&hide_empty=' . $hide_empty; 14 ob_start(); 15 wp_list_authors($param_str); //WP2011 wp_list_authors() used only parse_str() 16 $list_authors = ob_get_contents() ; 17 ob_end_clean(); 18 } else { 19 $param = array( 20 'optioncount' => $optioncount, 21 'exclude_admin' => $exclude_admin, 22 'show_fullname' => $show_fullname, 23 'hide_empty' => $hide_empty, 24 'feed' => '', 25 'feed_image' => '', 26 'echo' => false 27 ); 28 $list_authors = wp_list_authors($param); 29 } 27 30 if (xpress_is_multi_user()){ 28 31 $all_link = '<li>' . '<a href="' . get_bloginfo('url'). '" title="' . __('All Authors','xpress') . '">' .__('All Authors','xpress') . '</a></li>';
Note: See TracChangeset
for help on using the changeset viewer.