event listings

This commit is contained in:
Friendika 2011-06-06 20:17:36 -07:00
parent 452245d988
commit 9f51233451
4 changed files with 27 additions and 5 deletions

View file

@ -3,12 +3,14 @@
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">' . $ev['desc'] . '</p>';
$o .= '<p class="description">' . bbcode($ev['desc']) . '</p>';
$o .= '<p>' . t('Starts: ') . '<abbr class="dtstart" title="'
. datetime_convert('UTC','UTC',$ev['start'], ATOM_TIME)
@ -25,7 +27,7 @@ function format_event_html($ev) {
. '</abbr></p>';
$o .= '<p> ' . t('Location:') . '<span class="location">'
. $ev['location']
. bbcode($ev['location'])
. '</span></p>';
$o .= '</div>';