aboutsummaryrefslogtreecommitdiff
path: root/views/default/event_calendar/agenda_item_view.php
blob: 807982665b7bc566fd2c1f2c35a5fcd080ba4982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
$event = $vars['event'];
$times = $vars['times'];
$time_bit = '';
if ($times != 'no') {
	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">&nbsp;</td>';
	$info .= '<td colspan="2">'.$event->description.'</td></tr>';
}

echo $info;
?>