XPressME Integration Kit

Trac

source: trunk/xpressme_integration_kit/blocks/sidebar_block.php @ 325

Last change on this file since 325 was 125, checked in by toemon, 16 years ago

サイドバーの追加 と アーカイブブロックの修正 #74 bump Ver0.11

File size: 788 bytes
Line 
1<?php
2if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ;
3$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
4
5eval( '
6function b_'.$mydirname.'_sidebar_show($options){
7        return _b_sidebar_show($options) ;
8}
9function b_'.$mydirname.'_sidebar_edit($options){
10        return _b_sidebar_edit($options) ;
11}
12' ) ;           
13       
14if( ! defined( 'XPRESS_SIDEBAR_BLOCK_INCLUDED' ) ) {
15        define( 'XPRESS_SIDEBAR_BLOCK_INCLUDED' , 1 ) ;
16       
17        function _b_sidebar_show($options)
18        {
19                $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
20
21                $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
22                $block_function_name = basename( __FILE__ );
23               
24                require_once $mydirpath.'/include/xpress_block_render.php';
25                return xpress_block_render($mydirname,$block_function_name,$options);
26        }
27
28}
29
30?>
Note: See TracBrowser for help on using the repository browser.