X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fevent.php;h=fedbe24468ab67a4085422375974013e279bd77e;hb=4c04a78d1b6f14ce90e4ca0b23e356d234c4a296;hp=31df86e2c595599641ddca6bf9525a59203cf120;hpb=5105b3febc5619541a7a97032def5922690e9c02;p=friendica.git diff --git a/include/event.php b/include/event.php index 31df86e2c5..73e61f25cf 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['desc']) . '
'; + $o .= '' . bbcode($ev['summary']) . '
' . "\r\n"; + + $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']) + . '
' . "\r\n"; - if(strlen($ev['location'])) - $o .= '' . t('Location:') . ' ' - . bbcode($ev['location']) - . '
'; + if (strpos($ev['location'], "[map") !== False) { + $map = generate_named_map($ev['location']); + if ($map!==$ev['location']) $o.=$map; + } + + } - $o .= '