aboutsummaryrefslogtreecommitdiffstats
path: root/mod/notifications.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-11 21:30:23 -0700
committerFriendika <info@friendika.com>2011-10-11 21:30:23 -0700
commitdf7702709b07560af1d469f0835586af317f39b0 (patch)
treef53784dc3be1e60ff201c2debe4ab76e7bb0d6da /mod/notifications.php
parent3ef7dcac4b84f6f78dcba5cd768fc08f9cfc1067 (diff)
downloadvolse-hubzilla-df7702709b07560af1d469f0835586af317f39b0.tar.gz
volse-hubzilla-df7702709b07560af1d469f0835586af317f39b0.tar.bz2
volse-hubzilla-df7702709b07560af1d469f0835586af317f39b0.zip
common tabs to notifications and mail
Diffstat (limited to 'mod/notifications.php')
-rw-r--r--mod/notifications.php40
1 files changed, 37 insertions, 3 deletions
diff --git a/mod/notifications.php b/mod/notifications.php
index 6d78ea024..6c3e67cb4 100644
--- a/mod/notifications.php
+++ b/mod/notifications.php
@@ -63,10 +63,39 @@ function notifications_content(&$a) {
return;
}
+ nav_set_selected('notifications');
+
$o = '';
-
+ $tabs = array(
+ array(
+ 'label' => t('Network'),
+ 'url'=>$a->get_baseurl() . '/notifications/network',
+ 'sel'=> (($a->argv[1] == 'network') ? 'active' : ''),
+ ),
+ array(
+ 'label' => t('Home'),
+ 'url' => $a->get_baseurl() . '/notifications/home',
+ 'sel'=> (($a->argv[1] == 'home') ? 'active' : ''),
+ ),
+ array(
+ 'label' => t('Introductions'),
+ 'url' => $a->get_baseurl() . '/notifications/intros',
+ 'sel'=> (($a->argv[1] == 'intros') ? 'active' : ''),
+ ),
+ array(
+ 'label' => t('Messages'),
+ 'url' => $a->get_baseurl() . '/message',
+ 'sel'=> '',
+ ),
+ );
+ $tpl = get_markup_template('common_tabs.tpl');
+ $tab_content = replace_macros($tpl, array('$tabs'=>$tabs));
+
+
+
+
if( (($a->argc > 1) && ($a->argv[1] == 'intros')) || (($a->argc == 1))) {
-
+ nav_set_selected('introductions');
if(($a->argc > 2) && ($a->argv[2] == 'all'))
$sql_extra = '';
else
@@ -167,6 +196,8 @@ function notifications_content(&$a) {
info( t('No notifications.') . EOL);
$o .= replace_macros($notif_tpl,array(
+ '$notif_header' => t('Notifications'),
+ '$tabs' => $tab_content,
'$notif_content' => $notif_content,
'$activetab' => 'intros'
));
@@ -175,7 +206,6 @@ function notifications_content(&$a) {
return $o;
} else if (($a->argc > 1) && ($a->argv[1] == 'network')) {
-
$notif_tpl = get_markup_template('notifications.tpl');
$r = q("SELECT `item`.`id`,`item`.`parent`, `item`.`verb`, `item`.`author-name`,
@@ -252,6 +282,8 @@ function notifications_content(&$a) {
}
$o .= replace_macros($notif_tpl,array(
+ '$notif_header' => t('Notifications'),
+ '$tabs' => $tab_content,
'$notif_content' => $notif_content,
'$activetab' => 'network'
));
@@ -327,6 +359,8 @@ function notifications_content(&$a) {
}
$o .= replace_macros($notif_tpl,array(
+ '$notif_header' => t('Notifications'),
+ '$tabs' => $tab_content,
'$notif_content' => $notif_content,
'$activetab' => 'home'
));