X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fevents.php;h=5da8f17fc2f5dea40da16f1608892632d2e2fed3;hb=84805501449aa03e86d985f3e2d9734184cea0db;hp=5bc9807ed7b60e9f33c69f8ab351f8c9a0dcf697;hpb=273594af62c960b5a52da5ec1cf6d6bd450415ba;p=friendica.git diff --git a/mod/events.php b/mod/events.php old mode 100644 new mode 100755 index 5bc9807ed7..5da8f17fc2 --- a/mod/events.php +++ b/mod/events.php @@ -112,17 +112,7 @@ function events_content(&$a) { $o =""; // tabs - $tpl = get_markup_template('profile_tabs.tpl'); - $o .= replace_macros($tpl,array( - '$url' => $a->get_baseurl() . '/profile/' . $a->user['nickname'], - '$phototab' => $a->get_baseurl() . '/photos/' . $a->user['nickname'], - '$status' => t('Status'), - '$profile' => t('Profile'), - '$photos' => t('Photos'), - '$events' => t('Events') , - '$notes' => t('Personal Notes'), - '$activetab' => "events", - )); + $o .= profile_tabs($a, True); $o .= '

' . t('Events') . '

'; @@ -238,6 +228,9 @@ function events_content(&$a) { if($d !== $last_date) $o .= '
' . $d . '
'; $last_date = $d; + if($rr['author-name']) { + $o .= '' . $rr['author-name'] . ''; + } $o .= format_event_html($rr); $o .= ((! $rr['cid']) ? '' : ''); if($rr['plink']) @@ -286,9 +279,9 @@ function events_content(&$a) { $sdt = ((x($orig_event)) ? $orig_event['start'] : 'now'); $fdt = ((x($orig_event)) ? $orig_event['finish'] : 'now'); - $tz = ((x($orig_event) && $orig_event['adjust']) ? date_default_timezone_get() : 'UTC'); - - + $tz = date_default_timezone_get(); + if(x($orig_event)) + $tz = (($orig_event['adjust']) ? date_default_timezone_get() : 'UTC'); $syear = datetime_convert('UTC', $tz, $sdt, 'Y'); $smonth = datetime_convert('UTC', $tz, $sdt, 'm');