| 1 |
<?php
|
| 2 |
// $id:
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file event-node-list.tpl.php
|
| 6 |
* Display an event in the month view.
|
| 7 |
*
|
| 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
|
| 29 |
*
|
| 30 |
* @see template_preprocess_event_node_list()
|
| 31 |
*/
|
| 32 |
?>
|
| 33 |
<div class="event listview">
|
| 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 |
<div id="info_<?php print $link_count ?>" class="info vevent">
|
| 40 |
<?php if ($show_start) { ?>
|
| 41 |
<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>
|
| 42 |
<?php } ?>
|
| 43 |
<?php if ($show_end) { ?>
|
| 44 |
<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>
|
| 45 |
<?php } ?>
|
| 46 |
<?php if ($ongoing) { ?>
|
| 47 |
<div class="ongoing" ><?php print t('all day'); ?></div>
|
| 48 |
<?php } ?>
|
| 49 |
|
| 50 |
<div class="content description"><?php print $teaser ?></div>
|
| 51 |
</div>
|
| 52 |
</div>
|
| 53 |
<div class="links"><?php print $links ?></div>
|