- Timestamp:
- May 23, 2011, 3:03:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/include/xpress_block_header.php
r719 r757 4 4 require_once dirname( __FILE__ ) .'/xml.php' ; 5 5 require_once dirname( __FILE__ ) .'/xpress_cache.php' ; 6 global $ xoops_config;6 global $mod_info; 7 7 8 if (!is_object($ xoops_config)){ // is call other modules9 require_once dirname(dirname( __FILE__ )) .'/class/ config_from_xoops.class.php' ;10 $ xoops_config = new ConfigFromXoops;8 if (!is_object($mod_info)){ // is call other modules 9 require_once dirname(dirname( __FILE__ )) .'/class/modInfo_class.php' ; 10 $mod_info = new modInfoClass; 11 11 } 12 12 … … 46 46 function get_block_stylesheet_url($mydirname) 47 47 { 48 global $ xoops_config;49 $mydirpath = $ xoops_config->xoops_root_path. '/modules/' . $mydirname;48 global $mod_info; 49 $mydirpath = $mod_info->get_xoops_root_path() . '/modules/' . $mydirname; 50 50 $select_theme = get_xpress_theme_name($mydirname); 51 51 $style_file = $mydirpath . '/wp-content/themes/' . $select_theme . '/blocks/block_style.css'; 52 52 if (file_exists($style_file)) 53 return $ xoops_config->xoops_url. '/modules/' .$mydirname . '/wp-content/themes/' . $select_theme . '/blocks/block_style.css';53 return $mod_info->get_xoops_url() . '/modules/' .$mydirname . '/wp-content/themes/' . $select_theme . '/blocks/block_style.css'; 54 54 else 55 return $ xoops_config->xoops_url. '/modules/' .$mydirname . '/wp-content/themes/xpress_default/blocks/block_style.css';55 return $mod_info->get_xoops_url() . '/modules/' .$mydirname . '/wp-content/themes/xpress_default/blocks/block_style.css'; 56 56 } 57 57
Note: See TracChangeset
for help on using the changeset viewer.