"; $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) { $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; $Identification = '-' . $disp_count . '-' . $disp_length ; foreach ($selected as $item){ $Identification .= '-' . $item ; } 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; } } ?>