/[drupal]/contributions/modules/event/event-node-week.tpl.php
ViewVC logotype

Contents of /contributions/modules/event/event-node-week.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8 - (show annotations) (download) (as text)
Thu Jan 1 23:25:39 2009 UTC (10 months, 3 weeks ago) by killes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -1 lines
File MIME type: text/x-php
add teaser to week view
1 <?php
2 // $Id: event-node-week.tpl.php,v 1.7 2008/12/01 14:40:10 killes Exp $
3
4 /**
5 * @file event-node-week.tpl.php
6 * Display an event in the week 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_week()
31 */
32 ?>
33 <div class="event weekview 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"><?php print l($node_title_unsafe, $node_link, array('attributes' => array('title' => t('view this event'))))?></div>
39
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 class="links"><?php print $links ?></div>
52 <div class="links"><?php print $calendarsignup ?></div>
53 </div>

  ViewVC Help
Powered by ViewVC 1.1.2