function b_wp_authors_show($options, $wp_num = "") { $with_count = empty($options[0]) ? 0 : $options[0]; $idmode = empty($options[1]) ? '' : $options[1]; $show_rss2_icon = empty($options[2]) ? 0 : $options[2]; global $wpdb, $siteurl, $wp_id, $wp_inblock, $user_cache; $id = 1; $use_cache = 1; if ($wp_num == "") { $wp_id = $wp_num; $wp_inblock = 1; require dirname(__FILE__) . '/../wp-config.php'; $wp_inblock = 0; } $optioncount = $with_count == 1; $exclude_admin = false; $show_fullname = false; $hide_empty = true; $feed = $show_rss2_icon == 1 ? 'rss2' : ''; $feed_image = $show_rss2_icon == 1 ? $siteurl . '/wp-images/rss-mini.gif' : ''; ob_start(); block_style_get($wp_num); echo "<ul class='wpBlockList'>\n"; list_authors2($optioncount, $exclude_admin, $idmode, $hide_empty, $feed, $feed_image); echo "</ul>\n"; $block['content'] = ob_get_contents(); ob_end_clean(); return $block; }
function _b_wp_authors_show($options, $wp_num = "") { $with_count = empty($options[0]) ? 0 : $options[0]; $idmode = empty($options[1]) ? '' : $options[1]; $show_rss2_icon = empty($options[2]) ? 0 : $options[2]; $optioncount = $with_count == 1; $exclude_admin = false; $show_fullname = false; $hide_empty = true; $feed = $show_rss2_icon == 1 ? 'rss2' : ''; $feed_image = $show_rss2_icon == 1 ? wp_siteurl() . '/wp-images/rss-mini.gif' : ''; ob_start(); block_style_get(); echo "<ul class='wpBlockList'>\n"; list_authors2($optioncount, $exclude_admin, $idmode, $hide_empty, $feed, $feed_image); echo "</ul>\n"; $block['content'] = ob_get_contents(); ob_end_clean(); return $block; }
function _b_wp_authors_show($options, $wp_num = "") { $with_count = empty($options[0]) ? 0 : $options[0]; $idmode = empty($options[1]) ? '' : $options[1]; $show_rss2_icon = empty($options[2]) ? 0 : $options[2]; $optioncount = $with_count == 1; $exclude_admin = false; $show_fullname = false; $hide_empty = true; $feed = $show_rss2_icon == 1 ? 'rss2' : ''; $feed_image = $show_rss2_icon == 1 ? wp_siteurl() . '/wp-images/rss-mini.gif' : ''; $block['wp_num'] = $wp_num; $block['divid'] = 'wpAuthor' . $wp_num; $block['style'] = block_style_get(false); $block['authors'] = list_authors2($optioncount, $exclude_admin, $idmode, $hide_empty, $feed, $feed_image, false); $_wpTpl =& new WordPresTpl('theme'); $_wpTpl->assign('block', $block); $block['content'] = $_wpTpl->fetch('wp_authors.html'); return $block; }