<?php
function authors_block($options)
{
	$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
	$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_authors.html' : trim( $options[1] );
	$optioncount = empty( $options[2] ) ? false : true ;
	$exclude_admin = empty( $options[3] ) ? false : true ;
	$show_fullname = empty( $options[4] ) ? false : true ;
	$hide_empty = empty( $options[5] ) ? false : true ;		
	$mydirpath = get_xpress_dir_path();
	
	$param = array(
		'optioncount' => $optioncount, 
		'exclude_admin' => $exclude_admin, 
		'format' => $format, 
		'show_fullname' => $show_fullname, 
		'hide_empty' => $hide_empty,
		'feed' => '',
		'feed_image' => ''
	);
	ob_start();
		wp_list_authors($param);
		$list_authors = ob_get_contents() ;
	ob_end_clean();
	$output = "<ul>\n" . $list_authors . "\n</ul>\n";
	
	$block['authors'] = $output;
	
	return $block ;
}
?>