XPressME Integration Kit

Trac

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

Last change on this file since 272 was 272, checked in by toemon, 15 years ago

#130 カスタムテンプレートタグでwp_parse_argsを利用
get_xpress_excerpt_contents()
xpress_the_content()
を除き修正

File size: 565 bytes
Line 
1<?php
2function 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=' . $sun_color . '&sat_color=' .$sat_color);
12        return $block ;
13}
14?>
Note: See TracBrowser for help on using the repository browser.