X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotifications.php;h=ed0831aabd058f5454efc60c42a39557f1d5cf38;hb=a41b4c6e6726b1158a8d05f37c1630d67e462fe5;hp=49157c4442dd4bf16fb891a274481159d1b28a93;hpb=55598932936196d4a5012f801336c5d850b168ae;p=friendica.git diff --git a/mod/notifications.php b/mod/notifications.php index 49157c4442..ed0831aabd 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -65,12 +65,11 @@ function notifications_content(&$a) { else $sql_extra = " AND `ignore` = 0 "; - - $tpl = load_view_file('view/intros-top.tpl'); - $o .= replace_macros($tpl,array( - '$hide_url' => ((strlen($sql_extra)) ? 'notifications/all' : 'notifications' ), - '$hide_text' => ((strlen($sql_extra)) ? t('Show Ignored Requests') : t('Hide Ignored Requests')) - )); + $o .= '

' . t('Pending Friend/Connect Notifications') . '

' . "\r\n"; + + $o .= '
'; + $o .= '' + . ((strlen($sql_extra)) ? t('Show Ignored Requests') : t('Hide Ignored Requests')) . '
' . "\r\n"; $r = q("SELECT COUNT(*) AS `total` FROM `intro` @@ -108,6 +107,9 @@ function notifications_content(&$a) { '$intro_id' => $rr['intro_id'], '$friend_selected' => $friend_selected, '$fan_selected' => $fan_selected, + '$approve_as' => t('Approve as: '), + '$as_friend' => t('Friend'), + '$as_fan' => t('Fan/Admirer') )); } @@ -138,7 +140,7 @@ function notifications_content(&$a) { if ($a->config['register_policy'] == REGISTER_APPROVE && $a->config['admin_email'] === $a->user['email']){ - $o .= load_view_file('view/registrations-top.tpl'); + $o .= '

' . t('User registrations waiting for confirm') . '

' . "\r\n"; $r = q("SELECT `register`.*, `contact`.`name`, `user`.`email` FROM `register`