From 3ea84d7eab20947ac52dc7e6c205252f0a76c047 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 25 Nov 2015 22:55:07 +0100 Subject: some basic event styling --- include/event.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/event.php b/include/event.php index e303ad232..9d111ca25 100644 --- a/include/event.php +++ b/include/event.php @@ -21,35 +21,37 @@ function format_event_html($ev) { $bd_format = t('l F d, Y \@ g:i A') ; // Friday January 18, 2011 @ 8:01 AM - $o = '
' . "\r\n"; + //todo: move this to template - $o .= '

' . bbcode($ev['summary']) . '

' . "\r\n"; + $o = '
' . "\r\n"; - $o .= '

' . bbcode($ev['description']) . '

' . "\r\n"; + $o .= '

 ' . bbcode($ev['summary']) . '

' . "\r\n"; - $o .= '

' . t('Starts:') . ' ' . t('Starts:') . ' ' . (($ev['adjust']) ? day_translate(datetime_convert('UTC', date_default_timezone_get(), $ev['start'] , $bd_format )) : day_translate(datetime_convert('UTC', 'UTC', $ev['start'] , $bd_format))) - . '

' . "\r\n"; + . '
' . "\r\n"; if(! $ev['nofinish']) - $o .= '

' . t('Finishes:') . ' ' . t('Finishes:') . ' ' . (($ev['adjust']) ? day_translate(datetime_convert('UTC', date_default_timezone_get(), $ev['finish'] , $bd_format )) : day_translate(datetime_convert('UTC', 'UTC', $ev['finish'] , $bd_format ))) - . '

' . "\r\n"; + . '
' . "\r\n"; + + $o .= '
' . bbcode($ev['description']) . '
' . "\r\n"; if(strlen($ev['location'])) - $o .= '

' . t('Location:') . ' ' + $o .= '

' . t('Location:') . ' ' . bbcode($ev['location']) - . '

' . "\r\n"; + . '
' . "\r\n"; $o .= '' . "\r\n"; @@ -887,7 +889,7 @@ function event_store_item($arr, $event) { $item_arr['verb'] = ACTIVITY_POST; $item_arr['item_wall'] = $item_wall; $item_arr['item_origin'] = $item_origin; - $item_arr['item_thread_top'] = $item_thread_top;; + $item_arr['item_thread_top'] = $item_thread_top; $attach = array(array( 'href' => z_root() . '/events/ical/' . urlencode($event['event_hash']), -- cgit v1.2.3