X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotifications.php;h=3fee2b140acfac3e5e7c985869885e0f595a4c11;hb=85c644a8282ac043fd9245820dcd761865ca34ff;hp=6c3e67cb42a717b95a9f9267db5844fd7b90edcd;hpb=df7702709b07560af1d469f0835586af317f39b0;p=friendica.git diff --git a/mod/notifications.php b/mod/notifications.php index 6c3e67cb42..3fee2b140a 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' )); }