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