Rev | Line | |
---|
[125] | 1 | <?php
|
---|
| 2 | if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ;
|
---|
| 3 | $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
|
---|
| 4 |
|
---|
| 5 | eval( '
|
---|
| 6 | function b_'.$mydirname.'_sidebar_show($options){
|
---|
| 7 | return _b_sidebar_show($options) ;
|
---|
| 8 | }
|
---|
| 9 | function b_'.$mydirname.'_sidebar_edit($options){
|
---|
| 10 | return _b_sidebar_edit($options) ;
|
---|
| 11 | }
|
---|
| 12 | ' ) ;
|
---|
| 13 |
|
---|
| 14 | if( ! 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.