Changeset 284
- Timestamp:
- Jun 16, 2009, 2:20:56 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/authors_block_theme.php
r161 r284 4 4 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 5 5 $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_authors.html' : trim( $options[1] ); 6 $optioncount = empty( $options[2] ) ? false : true;7 $exclude_admin = empty( $options[3] ) ? false : true;8 $show_fullname = empty( $options[4] ) ? false : true;9 $hide_empty = empty( $options[5] ) ? false : true;6 $optioncount = empty( $options[2] ) ? 0 : 1 ; 7 $exclude_admin = empty( $options[3] ) ? 0 : 1 ; 8 $show_fullname = empty( $options[4] ) ? 0 : 1 ; 9 $hide_empty = empty( $options[5] ) ? 0 : 1 ; 10 10 $mydirpath = get_xpress_dir_path(); 11 11 … … 19 19 'feed_image' => '' 20 20 ); 21 $param_str = 'optioncount='. $optioncount . '&exclude_admin=' . $exclude_admin .'&format=' . $format . '&show_fullname='. $show_fullname . '&hide_empty=' . $hide_empty; 21 22 ob_start(); 22 wp_list_authors($param); 23 // wp_list_authors($param); 24 wp_list_authors($param_str); //WP2011 wp_list_authors() used only parse_str() 23 25 $list_authors = ob_get_contents() ; 24 26 ob_end_clean();
Note: See TracChangeset
for help on using the changeset viewer.