Rev | Line | |
---|
[109] | 1 | <?php
|
---|
[451] | 2 | // Block Version: 1.0
|
---|
[109] | 3 | function calender_block($options)
|
---|
| 4 | {
|
---|
| 5 | $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
|
---|
[120] | 6 | $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_calender_block.html' : trim( $options[1] );
|
---|
| 7 | $sun_color = empty( $options[2] ) ? '#DB0000' : $options[2] ;
|
---|
| 8 | $sat_color = empty( $options[3] ) ? '#004D99' : $options[3] ;
|
---|
[109] | 9 | // $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
|
---|
| 10 | $mydirpath = get_xpress_dir_path();
|
---|
| 11 |
|
---|
[272] | 12 | $block['calender'] = xpress_get_calendar('sun_color=' . $sun_color . '&sat_color=' .$sat_color);
|
---|
[109] | 13 | return $block ;
|
---|
| 14 | }
|
---|
| 15 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.