Project

General

Profile

Paste
Download (703 Bytes) Statistics
| Branch: | Revision:

root / drupal7 / sites / all / modules / calendar / theme / calendar-month-col.tpl.php @ 62e0cc08

1
<?php
2

    
3
/**
4
 * @file
5
 * Template to display a column.
6
 *
7
 * - $item: The item to render within a td element.
8
 */
9
$id = (isset($item['id'])) ? 'id="' . $item['id'] . '" ' : '';
10
$date = (isset($item['date'])) ? ' data-date="' . $item['date'] . '" ' : '';
11
$day = (isset($item['day_of_month'])) ? ' data-day-of-month="' . $item['day_of_month'] . '" ' : '';
12
$headers = (isset($item['header_id'])) ? ' headers="' . $item['header_id'] . '" ' : '';
13
?>
14
<td <?php print $id; ?>class="<?php print $item['class']; ?>" colspan="<?php print $item['colspan']; ?>" rowspan="<?php print $item['rowspan']; ?>"<?php print $date . $headers . $day; ?>>
15
  <div class="inner">
16
    <?php print $item['entry']; ?>
17
  </div>
18
</td>