- Timestamp:
- Nov 24, 2009, 3:51:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/xpress_block_render.php
r448 r455 160 160 function xpress_block_render($mydirname,$block_function_name,$options) 161 161 { 162 global $wpdb ;162 global $wpdb,$xoops_config; 163 163 $func_file = $block_function_name; 164 164 $call_theme_function_name = str_replace(".php", "", $block_function_name); … … 167 167 $blockID =get_block_id($mydirname,$func_file,$options); 168 168 169 $this_url = '/modules/'. $mydirname;169 $this_url = str_replace( $xoops_config->xoops_url , '' , get_option('home')); 170 170 $call_url = $_SERVER['REQUEST_URI']; 171 172 171 xpress_block_css_set($mydirname); 173 if (strstr($call_url,$this_url)){ 172 if (strstr($call_url,$this_url)){ 174 173 $block_theme_file = get_block_file_path($mydirname,$inc_theme_file_name); 175 174 require_once $block_theme_file['file_path']; … … 185 184 } 186 185 } 187 188 $templates_file = 'db:'.$mydirname. '_' . str_replace(".php", ".html", $block_function_name); 186 $option = explode('|' , $block['options']); 187 188 if (isset($option[1])) 189 $templates_file = $option[1]; 190 else 191 $templates_file = 'db:'.$mydirname. '_' . str_replace(".php", ".html", $block_function_name); 189 192 $tpl =& new XoopsTpl() ; 190 193 $tpl->assign( 'block' , $block ) ;
Note: See TracChangeset
for help on using the changeset viewer.