XPressME Integration Kit

Trac

source: trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/calender_block_theme.php @ 448

Last change on this file since 448 was 448, checked in by toemon, 14 years ago

ブロックのバージョン管理実装 Fixes #246

File size: 588 bytes
Line 
1<?php
2// Block Version: 1.0
3function calender_block($options)
4{
5        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
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] ;
9//      $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
10        $mydirpath = get_xpress_dir_path();
11
12        $block['calender'] = xpress_get_calendar('sun_color=' . $sun_color . '&sat_color=' .$sat_color);
13        return $block ;
14}
15?>
Note: See TracBrowser for help on using the repository browser.