Last change
on this file since 671 was
237,
checked in by toemon, 15 years ago
|
カスタムテンプレート関数名変更
is_xpress_contributor() -> xpress_is_contributor()
get_xpress_calendar() -> xpress_get_calendar()
|
File size:
533 bytes
|
Line | |
---|
1 | <?php
|
---|
2 | function calender_block($options)
|
---|
3 | {
|
---|
4 | $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
|
---|
5 | $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_calender_block.html' : trim( $options[1] );
|
---|
6 | $sun_color = empty( $options[2] ) ? '#DB0000' : $options[2] ;
|
---|
7 | $sat_color = empty( $options[3] ) ? '#004D99' : $options[3] ;
|
---|
8 | // $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
|
---|
9 | $mydirpath = get_xpress_dir_path();
|
---|
10 |
|
---|
11 | $block['calender'] = xpress_get_calendar($sun_color,$sat_color);
|
---|
12 | return $block ;
|
---|
13 | }
|
---|
14 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.