Changeset 95 for trunk/include/xpress_block_render.php
- Timestamp:
- Mar 3, 2009, 8:33:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/xpress_block_render.php
r89 r95 62 62 function get_block_stylesheet_url($mydirname) 63 63 { 64 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 64 global $xoops_config; 65 $mydirpath = $xoops_config->xoops_root_path . '/modules/' . $mydirname; 65 66 $select_theme = get_xpress_theme_name($mydirname); 66 67 $style_file = $mydirpath . '/wp-content/themes/' . $select_theme . '/blocks/style.css'; 67 68 if (file_exists($style_file)) 68 return XOOPS_URL. '/modules/' .$mydirname . '/wp-content/themes/' . $select_theme . '/blocks/style.css';69 return $xoops_config->xoops_url . '/modules/' .$mydirname . '/wp-content/themes/' . $select_theme . '/blocks/style.css'; 69 70 else 70 return XOOPS_URL. '/modules/' .$mydirname . '/wp-content/themes/xpress_default/blocks/style.css';71 return $xoops_config->xoops_url . '/modules/' .$mydirname . '/wp-content/themes/xpress_default/blocks/style.css'; 71 72 } 72 73 … … 88 89 function get_block_file_path($mydirname,$file_name) 89 90 { 90 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 91 global $xoops_config; 92 $mydirpath = $xoops_config->xoops_root_path . '/modules/' . $mydirname; 91 93 $select_theme = get_xpress_theme_name($mydirname); 92 94 $block_file = $mydirpath . '/wp-content/themes/' . $select_theme . '/blocks/' . $file_name; 93 95 94 96 if (!file_exists($block_file)) 95 $block_file = XOOPS_ROOT_PATH. '/modules/' .$mydirname . '/wp-content/themes/xpress_default/blocks/' . $file_name;97 $block_file = $xoops_config->xoops_root_path . '/modules/' .$mydirname . '/wp-content/themes/xpress_default/blocks/' . $file_name; 96 98 return $block_file; 97 99 }
Note: See TracChangeset
for help on using the changeset viewer.