diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2011-06-27 12:49:05 +0200 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2011-06-27 12:49:05 +0200 |
commit | c07218b9c7b256e998f0a31c0226b3bd6d8011d7 (patch) | |
tree | b13c83d01bf4cb488a783a4b65cdfc9837bdc514 /trunk/views/default/event_calendar/agenda_item_view.php | |
parent | 446a0679509f2206cbf26f4a795fe0468b715f64 (diff) | |
download | elgg-c07218b9c7b256e998f0a31c0226b3bd6d8011d7.tar.gz elgg-c07218b9c7b256e998f0a31c0226b3bd6d8011d7.tar.bz2 |
added main code
Diffstat (limited to 'trunk/views/default/event_calendar/agenda_item_view.php')
-rw-r--r-- | trunk/views/default/event_calendar/agenda_item_view.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/trunk/views/default/event_calendar/agenda_item_view.php b/trunk/views/default/event_calendar/agenda_item_view.php new file mode 100644 index 000000000..727b559ec --- /dev/null +++ b/trunk/views/default/event_calendar/agenda_item_view.php @@ -0,0 +1,26 @@ +<?php +$event = $vars['event']; +$times = $vars['times']; +$time_bit = ''; +if ($times) { + if (is_numeric($event->start_time)) { + $time_bit = event_calendar_convert_time($event->start_time); + } + if (is_numeric($event->end_time)) { + $time_bit .= " - ".event_calendar_convert_time($event->end_time); + } + $time_bit .= ' '; +} +$info = '<tr>'; +$info .= '<td class="event_calendar_agenda_time">'.$time_bit.'</td>'; +$info .= '<td class="event_calendar_agenda_title"><a href="'.$event->getUrl().'">'.$event->title.'</a></td>'; +$info .= '<td class="event_calendar_agenda_venue">'.$event->venue.'</td>'; +$info .= '</tr>'; +if (trim($event->description)) { + $info .= '<tr class="event_calendar_agenda_description">'; + $info .= '<td class="event_calendar_agenda_time"> </td>'; + $info .= '<td colspan="2">'.$event->description.'</td></tr>'; +} + +echo $info; +?>
\ No newline at end of file |