aboutsummaryrefslogtreecommitdiffstats
path: root/mod/notifications.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-03-30 16:05:43 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-03-30 16:05:43 +0200
commit9acccb2b90ff5276c0cc84b3b006c7a393c53786 (patch)
tree073576560eaa6e00266c3e85a5e76df6e1dca032 /mod/notifications.php
parent05d9035aaa55c3b38fcb15d799644e3c5eda5f11 (diff)
parent18da7efa27fcff8fb2b3b679938954e712427de9 (diff)
downloadvolse-hubzilla-9acccb2b90ff5276c0cc84b3b006c7a393c53786.tar.gz
volse-hubzilla-9acccb2b90ff5276c0cc84b3b006c7a393c53786.tar.bz2
volse-hubzilla-9acccb2b90ff5276c0cc84b3b006c7a393c53786.zip
Merge remote-tracking branch 'friendika-master/master'
Diffstat (limited to 'mod/notifications.php')
-rw-r--r--mod/notifications.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/mod/notifications.php b/mod/notifications.php
index 93ca82bb0..ed0831aab 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 .= '<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`
@@ -141,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`