| 1 |
<?php
|
| 2 |
// $Id: event-nodeapi.tpl.php,v 1.3 2008/12/01 16:08:02 killes Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file event-nodeapi.tpl.php
|
| 6 |
* Display an event in the node view.
|
| 7 |
*
|
| 8 |
* Available variables:
|
| 9 |
* - $node_type: Node type
|
| 10 |
* - $show_end: If the end date should be shown
|
| 11 |
* - $start_date: The unformatted start date
|
| 12 |
* - $end_date: The unformatted end date
|
| 13 |
* - $start_date_utc: The unformatted start date (UTC)
|
| 14 |
* - $end_date_utc: The unformatted end date (UTC)
|
| 15 |
* - $start_date_formatted: The formatted start date (Y-m-d), according to the chosen settings
|
| 16 |
* - $end_date_formatted: The formatted end date (Y-m-d), according to the chosen settings
|
| 17 |
* - $start_time_formatted: The formatted start time, according to the chosen settings
|
| 18 |
* - $end_time_formatted: The formatted end time, according to the chosen settings
|
| 19 |
*
|
| 20 |
* @see template_preprocess_event_nodeapi()
|
| 21 |
*/
|
| 22 |
?>
|
| 23 |
<div class="event-nodeapi">
|
| 24 |
<div class="<?php print $node_type ?>-start dtstart" title="<?php print $start_date_utc ?>"><label><?php print t('Start: ') ?> </label> <?php print "$start_date_formatted $start_time_formatted" ?> </div>
|
| 25 |
</div>
|
| 26 |
<?php if ($show_end) { ?>
|
| 27 |
<div class="event-nodeapi">
|
| 28 |
<div class="<?php print $node_type ?>-end dtend" title="<?php print $end_date_utc ?>"><label><?php print t('End: ') ?></label> <?php print "$end_date_formatted $end_time_formatted" ?> </div>
|
| 29 |
</div>
|
| 30 |
<?php } ?>
|
| 31 |
<?php if (variable_get('configurable_timezones', 1)) {
|
| 32 |
$zone = event_zonelist_by_id($node->event['timezone']); ?>
|
| 33 |
<div class="event-nodeapi">
|
| 34 |
<div class="<?php print $node_type ?>-tz"><label><?php print t('Timezone: ') ?></label><?php print t($zone['name']) ?> </div>
|
| 35 |
</div>
|
| 36 |
<?php } ?>
|