root / drupal7 / sites / all / modules / calendar / theme / calendar-mini.tpl.php @ 62e0cc08
1 | 85ad3d82 | Assos Assos | <?php
|
---|---|---|---|
2 | 62e0cc08 | Assos Assos | |
3 | 85ad3d82 | Assos Assos | /**
|
4 | * @file
|
||
5 | * Template to display a view as a mini calendar month.
|
||
6 | 62e0cc08 | Assos Assos | *
|
7 | 85ad3d82 | Assos Assos | * @see template_preprocess_calendar_mini.
|
8 | *
|
||
9 | * $day_names: An array of the day of week names for the table header.
|
||
10 | * $rows: An array of data for each day of the week.
|
||
11 | * $view: The view.
|
||
12 | * $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
|
||
13 | * $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
|
||
14 | 62e0cc08 | Assos Assos | *
|
15 | 85ad3d82 | Assos Assos | * $show_title: If the title should be displayed. Normally false since the title is incorporated
|
16 | * into the navigation, but sometimes needed, like in the year view of mini calendars.
|
||
17 | */
|
||
18 | 62e0cc08 | Assos Assos | |
19 | 85ad3d82 | Assos Assos | $params = array( |
20 | 'view' => $view, |
||
21 | 'granularity' => 'month', |
||
22 | 'link' => FALSE, |
||
23 | ); |
||
24 | ?>
|
||
25 | <div class="calendar-calendar"><div class="month-view"> |
||
26 | <?php if ($show_title): ?> |
||
27 | <div class="date-nav-wrapper clear-block"> |
||
28 | <div class="date-nav"> |
||
29 | <div class="date-heading"> |
||
30 | 62e0cc08 | Assos Assos | <?php print theme('date_nav_title', $params); ?> |
31 | 85ad3d82 | Assos Assos | </div>
|
32 | </div>
|
||
33 | 62e0cc08 | Assos Assos | </div>
|
34 | <?php endif; ?> |
||
35 | 85ad3d82 | Assos Assos | <table class="mini"> |
36 | <thead>
|
||
37 | <tr>
|
||
38 | <?php foreach ($day_names as $cell): ?> |
||
39 | <th class="<?php print $cell['class']; ?>"> |
||
40 | <?php print $cell['data']; ?> |
||
41 | </th>
|
||
42 | <?php endforeach; ?> |
||
43 | </tr>
|
||
44 | </thead>
|
||
45 | <tbody>
|
||
46 | <?php foreach ((array) $rows as $row): ?> |
||
47 | <tr>
|
||
48 | <?php foreach ($row as $cell): ?> |
||
49 | <td id="<?php print $cell['id']; ?>" class="<?php print $cell['class']; ?>"> |
||
50 | <?php print $cell['data']; ?> |
||
51 | </td>
|
||
52 | <?php endforeach; ?> |
||
53 | </tr>
|
||
54 | <?php endforeach; ?> |
||
55 | </tbody>
|
||
56 | </table>
|
||
57 | 62e0cc08 | Assos Assos | </div></div> |