| 
                Last change
                  on this file since 205 was
                  198,
                  checked in by toemon, 17 years ago
           | 
        
        
          | 
               
#117 カスタムテンプレートタグget_xpress_calender()の追加 
recent_posts_content_block_theme.phpインデント修正 
 
           | 
        
        | 
            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'] = get_xpress_calendar($sun_color,$sat_color);
 | 
|---|
| 12 |         return $block ; 
 | 
|---|
| 13 | }
 | 
|---|
| 14 | ?> | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.