";
$form .= _MB_XPRESS_COUNT .":
";
$form .= _MB_XPRESS_LENGTH .": ";
$form .= "
" . _MB_XPRESS_COM_TYPE ;
$isAll = (count($selected)==0||empty($selected[0]))?true:false;
$form .= "
";
// $form .="
";
return $form;
}
function _b_comments_show($options)
{
global $wpdb;
$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
$block_function_name = basename( __FILE__ );
require_once $mydirpath.'/include/xpress_block_render.php';
return xpress_block_render($mydirname,$block_function_name,$options);
/*
$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
$disp_count = empty( $options[1] ) ? '10' : $options[1] ;
$disp_length = empty( $options[2] ) ? '30' : $options[2] ;
$selected = array_slice($options,3); // get allowed cats
$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
global $wpdb;
if (!is_null($wpdb)){
require_once $mydirpath.'/include/xpress_block_theme.php';
xpress_block_css_set($mydirname);
$block_theme_file = get_block_file_path($mydirname,'recent_comments_block');
require_once $block_theme_file;
$block = recent_comments_block($options);
require_once $mydirpath.'/include/xoops_block_cache.php';
$my_name = basename( __FILE__ );
$blockID =get_block_id($mydirname,$my_name,$options);
xpress_block_cache_write($mydirname,'recent_comments_block'. $blockID, $block);
} else {
require_once $mydirpath.'/include/xoops_block_cache.php';
$my_name = basename( __FILE__ );
$blockID =get_block_id($mydirname,$my_name,$options);
$block = xpress_block_cache_read($mydirname,'recent_comments_block'. $blockID);
}
return $block;
*/
}
}
?>