mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:50:11 +00:00
event listings
This commit is contained in:
parent
452245d988
commit
9f51233451
4 changed files with 27 additions and 5 deletions
|
@ -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>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue