XPressME Integration Kit

Trac


Ignore:
Timestamp:
May 23, 2011, 3:03:57 PM (13 years ago)
Author:
toemon
Message:

ConfigFromXoopsクラスを廃止し、modInfoクラスを使用するように変更
WP2.2以下で使用するテンプレートold_templateの廃止

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver3.0/xpressme_integration_kit/include/xpress_block_header.php

    r719 r757  
    44        require_once dirname( __FILE__ ) .'/xml.php' ; 
    55        require_once dirname( __FILE__ ) .'/xpress_cache.php' ; 
    6         global $xoops_config; 
     6        global $mod_info; 
    77         
    8         if (!is_object($xoops_config)){ // is call other modules 
    9                 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; 
    1111        } 
    1212         
     
    4646        function get_block_stylesheet_url($mydirname) 
    4747        { 
    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; 
    5050                $select_theme = get_xpress_theme_name($mydirname); 
    5151                $style_file = $mydirpath . '/wp-content/themes/' . $select_theme . '/blocks/block_style.css'; 
    5252                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'; 
    5454                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'; 
    5656        } 
    5757 
Note: See TracChangeset for help on using the changeset viewer.