]> git.mxchange.org Git - friendica.git/blob - include/event.php
put oembed settings into a .settings-block div for consistency
[friendica.git] / include / event.php
1 <?php
2
3
4 function format_event_html($ev) {
5
6         if(! ((is_array($ev)) && count($ev)))
7                 return '';
8
9         $o = '<div class="vevent">';
10
11         $o .= '<p class="description">' . $ev['desc'] .  '</p>';
12
13         $o .= '<p>' . t('Starts: ') . '<abbr class="dtstart" title="'
14                 . datetime_convert('UTC','UTC',$ev['start'], ATOM_TIME)
15                 . '" >' 
16                 . datetime_convert('UTC', date_default_timezone_get(), 
17                         $ev['start'] /*, format */ ) 
18                 . '</abbr></p>';
19
20         $o .= '<p>' . t('Ends: ') . '<abbr class="dtend" title="'
21                 . datetime_convert('UTC','UTC',$ev['finish'], ATOM_TIME)
22                 . '" >' 
23                 . datetime_convert('UTC', date_default_timezone_get(), 
24                         $ev['finish'] /*, format */ ) 
25                 . '</abbr></p>';
26
27         $o .= '<p> ' . t('Location:') . '<span class="location">' 
28                 . $ev['location'] 
29                 . '</span></p>';
30
31         $o .= '</div>';
32
33 return $o;
34 }