Changeset 46 for trunk/blocks
- Timestamp:
- Dec 26, 2008, 12:15:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/blocks/recent_comments_block.php
r44 r46 66 66 require_once $mydirpath.'/include/xpress_block_render.php'; 67 67 return xpress_block_render($mydirname,$block_function_name,$options); 68 /*69 70 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;71 $disp_count = empty( $options[1] ) ? '10' : $options[1] ;72 $disp_length = empty( $options[2] ) ? '30' : $options[2] ;73 $selected = array_slice($options,3); // get allowed cats74 75 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;76 global $wpdb;77 78 if (!is_null($wpdb)){79 require_once $mydirpath.'/include/xpress_block_theme.php';80 xpress_block_css_set($mydirname);81 82 $block_theme_file = get_block_file_path($mydirname,'recent_comments_block');83 require_once $block_theme_file;84 $block = recent_comments_block($options);85 86 require_once $mydirpath.'/include/xoops_block_cache.php';87 $my_name = basename( __FILE__ );88 $blockID =get_block_id($mydirname,$my_name,$options);89 xpress_block_cache_write($mydirname,'recent_comments_block'. $blockID, $block);90 } else {91 require_once $mydirpath.'/include/xoops_block_cache.php';92 $my_name = basename( __FILE__ );93 $blockID =get_block_id($mydirname,$my_name,$options);94 $block = xpress_block_cache_read($mydirname,'recent_comments_block'. $blockID);95 }96 return $block;97 */98 68 } 99 69 }
Note: See TracChangeset
for help on using the changeset viewer.