aboutsummaryrefslogtreecommitdiffstats
path: root/include/event.php
blob: ecaa9213a0cc7265f0a14a5ad7ff647847ac33ef (plain) (blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
<?php


function format_event_html($ev) {

	require_once('include/bbcode.php');

	if(! ((is_array($ev)) && count($ev)))
		return '';

	$o = '<div class="vevent">';

	$o .= '<p class="description">' . bbcode($ev['desc']) .  '</p>';

	$o .= '<p>' . t('Starts: ') . '<abbr class="dtstart" title="'
		. datetime_convert('UTC','UTC',$ev['start'], ATOM_TIME)
		. '" >' 
		. datetime_convert('UTC', date_default_timezone_get(), 
			$ev['start'] /*, format */ ) 
		. '</abbr></p>';

	$o .= '<p>' . t('Ends: ') . '<abbr class="dtend" title="'
		. datetime_convert('UTC','UTC',$ev['finish'], ATOM_TIME)
		. '" >' 
		. datetime_convert('UTC', date_default_timezone_get(), 
			$ev['finish'] /*, format */ ) 
		. '</abbr></p>';

	$o .= '<p> ' . t('Location:') . '<span class="location">' 
		. bbcode($ev['location']) 
		. '</span></p>';

	$o .= '</div>';

return $o;
}