]> git.mxchange.org Git - friendica.git/blobdiff - mod/notifications.php
cleanup untracked files
[friendica.git] / mod / notifications.php
index 49157c4442dd4bf16fb891a274481159d1b28a93..ed0831aabd058f5454efc60c42a39557f1d5cf38 100644 (file)
@@ -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 .= '<h1>' . t('Pending Friend/Connect Notifications') . '</h1>' . "\r\n";
+       
+       $o .= '<div id="notification-show-hide-wrapper" >';
+       $o .= '<a href="' . ((strlen($sql_extra)) ? 'notifications/all' : 'notifications' ) . '" id="notifications-show-hide-link" >'
+               . ((strlen($sql_extra)) ? t('Show Ignored Requests') : t('Hide Ignored Requests')) . '</a></div>' . "\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 .= '<h1>' . t('User registrations waiting for confirm') . '</h1>' . "\r\n";
                
                $r = q("SELECT `register`.*, `contact`.`name`, `user`.`email`
                                 FROM `register`