Last change
on this file since 146 was
126,
checked in by toemon, 16 years ago
|
投稿者ブロックの調整
list_authors()からwp_list_authors()に変更
この変更をもってデザイン面での修正 #70 も終了とする
|
File size:
920 bytes
|
Line | |
---|
1 | <?php
|
---|
2 | function authors_block($options)
|
---|
3 | {
|
---|
4 | $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
|
---|
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 ;
|
---|
10 | $mydirpath = get_xpress_dir_path();
|
---|
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 | ob_start();
|
---|
22 | wp_list_authors($param);
|
---|
23 | $list_authors = ob_get_contents() ;
|
---|
24 | ob_end_clean();
|
---|
25 | $output = "<ul>\n" . $list_authors . "\n</ul>\n";
|
---|
26 |
|
---|
27 | $block['authors'] = $output;
|
---|
28 |
|
---|
29 | return $block ;
|
---|
30 | }
|
---|
31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.