Projet

Général

Profil

Paste
Télécharger (694 octets) Statistiques
| Branche: | Révision:

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

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