aboutsummaryrefslogtreecommitdiffstats
path: root/include/event.php
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2011-05-28 10:37:33 +0200
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2011-05-28 10:37:33 +0200
commit770d1bb7a368cdaba8e7340b54fd4b13ffea66b8 (patch)
treee47786d170dacd9ca59569a8ff8e558e5d8b610c /include/event.php
parent5e01432c6f15714370f3fd4f07eaf35615052955 (diff)
parent69f014d02b0d53ac2b42cbebe3d30418a2d0f612 (diff)
downloadvolse-hubzilla-770d1bb7a368cdaba8e7340b54fd4b13ffea66b8.tar.gz
volse-hubzilla-770d1bb7a368cdaba8e7340b54fd4b13ffea66b8.tar.bz2
volse-hubzilla-770d1bb7a368cdaba8e7340b54fd4b13ffea66b8.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'include/event.php')
-rw-r--r--include/event.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/event.php b/include/event.php
new file mode 100644
index 000000000..06239b2ab
--- /dev/null
+++ b/include/event.php
@@ -0,0 +1,34 @@
+<?php
+
+
+function format_event_html($ev) {
+
+ if(! ((is_array($ev)) && count($ev)))
+ return '';
+
+ $o = '<div class="vevent">';
+
+ $o .= '<p class="description">' . $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">'
+ . $ev['location']
+ . '</span></p>';
+
+ $o .= '</div>';
+
+return $o;
+} \ No newline at end of file