diff options
author | Friendika <info@friendika.com> | 2011-10-17 14:55:46 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-10-17 14:55:46 -0700 |
commit | f0dc77ab6c102d83e7f98336b522f9c7b4a4a14f (patch) | |
tree | d8622e943809f497f2cf53be65e104ec394f6bc0 /mod | |
parent | 278433eac75639052686f70e98621466d6c44df3 (diff) | |
parent | e15aab9b755e8696d8dd7984e8de4ea5591e0caf (diff) | |
download | volse-hubzilla-f0dc77ab6c102d83e7f98336b522f9c7b4a4a14f.tar.gz volse-hubzilla-f0dc77ab6c102d83e7f98336b522f9c7b4a4a14f.tar.bz2 volse-hubzilla-f0dc77ab6c102d83e7f98336b522f9c7b4a4a14f.zip |
Merge branch 'pull'
Diffstat (limited to 'mod')
-rw-r--r-- | mod/notifications.php | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/mod/notifications.php b/mod/notifications.php index 6c3e67cb4..3fee2b140 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -88,12 +88,10 @@ function notifications_content(&$a) { 'sel'=> '', ), ); - $tpl = get_markup_template('common_tabs.tpl'); - $tab_content = replace_macros($tpl, array('$tabs'=>$tabs)); - - - + + $o = ""; + if( (($a->argc > 1) && ($a->argv[1] == 'intros')) || (($a->argc == 1))) { nav_set_selected('introductions'); if(($a->argc > 2) && ($a->argv[2] == 'all')) @@ -197,15 +195,15 @@ function notifications_content(&$a) { $o .= replace_macros($notif_tpl,array( '$notif_header' => t('Notifications'), - '$tabs' => $tab_content, + '$tabs' => $tabs, '$notif_content' => $notif_content, - '$activetab' => 'intros' )); $o .= paginate($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`, @@ -283,9 +281,8 @@ function notifications_content(&$a) { $o .= replace_macros($notif_tpl,array( '$notif_header' => t('Notifications'), - '$tabs' => $tab_content, + '$tabs' => $tabs, '$notif_content' => $notif_content, - '$activetab' => 'network' )); } else if (($a->argc > 1) && ($a->argv[1] == 'home')) { @@ -360,9 +357,8 @@ function notifications_content(&$a) { $o .= replace_macros($notif_tpl,array( '$notif_header' => t('Notifications'), - '$tabs' => $tab_content, + '$tabs' => $tabs, '$notif_content' => $notif_content, - '$activetab' => 'home' )); } |