]> git.mxchange.org Git - friendica.git/commitdiff
begin event module
authorFriendika <info@friendika.com>
Sat, 28 May 2011 04:01:30 +0000 (21:01 -0700)
committerFriendika <info@friendika.com>
Sat, 28 May 2011 04:01:30 +0000 (21:01 -0700)
include/event.php [new file with mode: 0644]

diff --git a/include/event.php b/include/event.php
new file mode 100644 (file)
index 0000000..d7071bd
--- /dev/null
@@ -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