X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fevent.php;h=6c0e2bdec6e68608a5d8267200cb75ea6289f8e6;hb=1aa9b7242d65191fcee2804489d6b0beb4ea550c;hp=31cf536ffd4853f55cffc9b6d5b304bb27ff7342;hpb=67021c132a4cc6de1fe76aa8faab7bfc37e58423;p=friendica.git diff --git a/include/event.php b/include/event.php index 31cf536ffd..6c0e2bdec6 100644 --- a/include/event.php +++ b/include/event.php @@ -1,59 +1,96 @@ ".bbcode($ev['summary']).""; + + $o .= "
".bbcode($ev['desc'])."
"; + + $o .= "".$event_start."
"; + + if(! $ev['nofinish']) + $o .= "".$event_end."
"; + + if(strlen($ev['location'])) + $o .= "".$ev['location']."
"; + + return $o; + } + + $o = '' . bbcode($ev['summary']) . '
' . "\r\n"; - $o .= '' . bbcode($ev['desc']) . '
'; + $o .= '' . bbcode($ev['desc']) . '
' . "\r\n"; $o .= '' . 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))) - . '
'; + . '" >'.$event_start + . '' . "\r\n"; if(! $ev['nofinish']) $o .= '' . 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 ))) - . '
'; + . '" >'.$event_end + . '' . "\r\n"; - if(strlen($ev['location'])) - $o .= '' . t('Location:') . ' ' - . bbcode($ev['location']) - . '
'; + if(strlen($ev['location'])){ + $o .= '' . t('Location:') . ' ' + . bbcode($ev['location']) + . '
' . "\r\n"; - $o .= '