Changeset 2337 for trunk/system/views

Show
Ignore:
Timestamp:
03/24/2008 02:17:38 PM (8 months ago)
Author:
Shadowhand
Message:

Updated Calendar:

  • Added Easter as a supported holiday
  • Optimized Calendar_Event->notify() a bit

Also, minor tweaks to Event_Subject and Event_Observer

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/views/kohana_calendar.php

    r2331 r2337  
    11<?php 
    2  
    3 $first_day = mktime(1, 0, 0, $month, 1, $year); 
    4 $today = (date('Y/m') === date('Y/m', $first_day)) ? (int) date('j') : FALSE; 
    52 
    63/** 
     
    118?> 
    129<table class="calendar"> 
    13 <caption><?php echo strftime('%B %Y', $first_day) ?></caption> 
     10<caption><?php echo strftime('%B %Y', mktime(0, 0, 0, $month, 1, $year)) ?></caption> 
    1411<tr> 
    1512<?php 
     
    4845} 
    4946 
    50 if ($current === FALSE) 
    51 { 
    52         $classes[] = 'prev-next'; 
    53 } 
    54 elseif ($today > 0 AND $day[0] === $today) 
    55 { 
    56         $classes[] = 'today';; 
    57 } 
    58  
    5947?> 
    6048<td class="<?php echo implode(' ', $classes) ?>"><span class="day"><?php echo $day[0] ?></span><?php echo $output ?></td>