aboutsummaryrefslogtreecommitdiff
path: root/views/default/event_calendar/paged_item_view.php
blob: f2092bafc3b042cc7fa1abf64e2156e6da9fa244 (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
27
<?php
$event = $vars['event'];
$time_bit = '';
if (is_numeric($event->start_time)) {
	$time_bit = event_calendar_convert_time($event->start_time);
}

$date_bit = event_calendar_get_formatted_date($event->start_date);

if (event_calendar_has_personal_event($event->guid,elgg_get_logged_in_user_guid())) {
	$calendar_bit = 'checked = "checked"';
} else {
	$calendar_bit = '';
}

$info = '<tr>';
$info .= '<td class="event_calendar_paged_date">'.$date_bit.'</td>';
$info .= '<td class="event_calendar_paged_time">'.$time_bit.'</td>';
$info .= '<td class="event_calendar_paged_title"><a href="'.$event->getUrl().'">'.$event->title.'</a></td>';
$info .= '<td class="event_calendar_paged_venue">'.$event->venue.'</td>';
if ($vars['personal_manage'] != 'no') {
	$info .= '<td class="event_calendar_paged_calendar"><input class="event_calendar_paged_checkbox" id="event_calendar_paged_checkbox_'.$event->guid.'" '.$calendar_bit.' type="checkbox" /></td>';
}
$info .= '</tr>';

echo $info;
?>