first commit
[step2_drupal.git] / event / event-node-month.tpl.php
blob1864928c9dd06bb9f63f37665261fb80fa062dc3
1 <?php
2 // $Id: event-node-month.tpl.php,v 1.6 2008/12/01 14:40:10 killes Exp $
4 /**
5 * @file event-node-month.tpl.php
6 * Display an event in the month view.
8 * Available variables:
9 * - $stripe: An index, incremented per node
10 * - $links: Links added at the bottom of the event.
11 * - $teaser: Teaser of the event, sanitized.
12 * - $node_type: Node type
13 * - $show_calendar_link: If a link to all the events of this type should be shown.
14 * - $calendar_link: Link to the calendar for all events of this type
15 * - $node_title_unsafe: Unfiltered event title, use only in l() functions
16 * - $node_title_safe: Sanitized version of the title
17 * - $node_link: URL to the event's detail page
18 * - $show_start: If the start date should be shown
19 * - $show_end: If the end date should be shown
20 * - $ongoing: If this is an ongoing event
21 * - $start_date: The unformatted start date
22 * - $end_date: The unformatted end date
23 * - $start_date_utc: The unformatted start date (UTC)
24 * - $end_date_utc: The unformatted end date (UTC)
25 * - $start_date_formatted: The formatted start date, according to the chosen settings
26 * - $end_date_formatted: The formatted end date, according to the chosen settings
27 * - $start_time_formatted: The formatted start time, according to the chosen settings
28 * - $end_time_formatted: The formatted end time, according to the chosen settings
30 * @see template_preprocess_event_node_month()
33 <div class="event monthview vevent">
34 <div class="stripe-<?php print $stripe ?>"></div>
35 <?php if ($show_calendar_link) { ?>
36 <div class="type"> <?php print l("($node_type)", $calendar_link, array('attributes' => array('title' => t('limit view to events of this type')))) ?> </div>
37 <?php } ?>
38 <div class="title summary"><?php print l($node_title_unsafe, $node_link, array('attributes' => array('title' => t('view this event'))))?></div>
39 <?php if ($show_start) { ?>
40 <div class="start dtstart" title="<?php print event_format_date($start_date_utc, 'custom', "Y-m-d\TH:i:s\Z") ?>"><?php print t('Start: ') . $start_date_formatted .' '. $start_time_formatted ?></div>
41 <?php } ?>
42 <?php if ($show_end) { ?>
43 <div class="end dtend" title="<?php print event_format_date($end_date_utc, 'custom', "Y-m-d\TH:i:s\Z") ?>"><?php print t('End: ') . $end_date_formatted .' '. $end_time_formatted ?></div>
44 <?php } ?>
45 <?php if ($ongoing) { ?>
46 <div class="ongoing" ><?php print t('all day'); ?></div>
47 <?php } ?>
48 <div class="links"><?php print $links ?></div>
49 </div>