aboutsummaryrefslogtreecommitdiffstats
path: root/include/event.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-27 21:01:30 -0700
committerFriendika <info@friendika.com>2011-05-27 21:01:30 -0700
commitb0c383a6d0464c997203aa4da9bfc3c0417e54cf (patch)
tree229a1902bf3317c2ff66b18d14aa48804844e314 /include/event.php
parent94af6fb06485faa25918c45f5196a1094dcae384 (diff)
downloadvolse-hubzilla-b0c383a6d0464c997203aa4da9bfc3c0417e54cf.tar.gz
volse-hubzilla-b0c383a6d0464c997203aa4da9bfc3c0417e54cf.tar.bz2
volse-hubzilla-b0c383a6d0464c997203aa4da9bfc3c0417e54cf.zip
begin event module
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..d7071bd1f
--- /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