Changeset 2337 for trunk/system/views
- Timestamp:
- 03/24/2008 02:17:38 PM (8 months ago)
- Files:
-
- 1 modified
-
trunk/system/views/kohana_calendar.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/views/kohana_calendar.php
r2331 r2337 1 1 <?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;5 2 6 3 /** … … 11 8 ?> 12 9 <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> 14 11 <tr> 15 12 <?php … … 48 45 } 49 46 50 if ($current === FALSE)51 {52 $classes[] = 'prev-next';53 }54 elseif ($today > 0 AND $day[0] === $today)55 {56 $classes[] = 'today';;57 }58 59 47 ?> 60 48 <td class="<?php echo implode(' ', $classes) ?>"><span class="day"><?php echo $day[0] ?></span><?php echo $output ?></td>
