XPressME Integration Kit

Trac


Ignore:
Timestamp:
Feb 5, 2009, 5:48:55 PM (15 years ago)
Author:
toemon
Message:

モジュール複製対応のブロック構成にしておく

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/xpress_block_render.php

    r49 r89  
    104104                $inc_theme_file_name = $call_theme_function_name . '_theme.php'; 
    105105                $cache_title = str_replace(".php", "", $block_function_name); 
    106                 $blockID =get_block_id($mydirname,$func_file,$options);                  
    107                                          
     106                $blockID =get_block_id($mydirname,$func_file,$options);          
     107 
    108108                if (!is_null($wpdb)){ 
    109109                        xpress_block_css_set($mydirname); 
     
    119119                        $block = $xml['block']; 
    120120                } 
    121                 return  $block; 
     121 
     122                $templates_file = 'db:'.$mydirname. '_' . str_replace(".php", ".html", $block_function_name); 
     123                $tpl =& new XoopsTpl() ; 
     124                $tpl->assign( 'block' , $block ) ; 
     125                $ret['content'] = $tpl->fetch( $templates_file ) ; 
     126                return $ret ; 
    122127        } 
    123128         
Note: See TracChangeset for help on using the changeset viewer.