diff options
author | friendica <info@friendica.com> | 2013-07-21 17:45:36 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-21 17:45:36 -0700 |
commit | 19f674c29d181565f8a5ef30ce6ae288976f6964 (patch) | |
tree | 460ef1f1cfeb006f7d11b270b2e9a9e49eec1803 | |
parent | 2455b0c92f029bcf2a6ff7f8b557f6292a599dbc (diff) | |
download | volse-hubzilla-19f674c29d181565f8a5ef30ce6ae288976f6964.tar.gz volse-hubzilla-19f674c29d181565f8a5ef30ce6ae288976f6964.tar.bz2 volse-hubzilla-19f674c29d181565f8a5ef30ce6ae288976f6964.zip |
remove obsolete notifications
-rw-r--r-- | mod/notifications.php | 34 | ||||
-rwxr-xr-x | view/tpl/notifications.tpl | 2 |
2 files changed, 17 insertions, 19 deletions
diff --git a/mod/notifications.php b/mod/notifications.php index 7d861037c..397ed272b 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -70,30 +70,31 @@ function notifications_content(&$a) { nav_set_selected('notifications'); $o = ''; + $tabs = array( array( 'label' => t('System'), 'url'=>$a->get_baseurl(true) . '/notifications/system', 'sel'=> (($a->argv[1] == 'system') ? 'active' : ''), ), - array( - 'label' => t('Network'), - 'url'=>$a->get_baseurl(true) . '/notifications/network', - 'sel'=> (($a->argv[1] == 'network') ? 'active' : ''), - ), +// array( +// 'label' => t('Network'), +// 'url'=>$a->get_baseurl(true) . '/notifications/network', +// 'sel'=> (($a->argv[1] == 'network') ? 'active' : ''), +// ), array( 'label' => t('Personal'), 'url'=>$a->get_baseurl(true) . '/notifications/personal', 'sel'=> (($a->argv[1] == 'personal') ? 'active' : ''), ), - array( - 'label' => t('Home'), - 'url' => $a->get_baseurl(true) . '/notifications/home', - 'sel'=> (($a->argv[1] == 'home') ? 'active' : ''), - ), +// array( +// 'label' => t('Home'), +// 'url' => $a->get_baseurl(true) . '/notifications/home', +// 'sel'=> (($a->argv[1] == 'home') ? 'active' : ''), +// ), array( 'label' => t('Introductions'), - 'url' => $a->get_baseurl(true) . '/notifications/intros', + 'url' => $a->get_baseurl(true) . '/connections/pending', 'sel'=> (($a->argv[1] == 'intros') ? 'active' : ''), ), array( @@ -105,6 +106,7 @@ function notifications_content(&$a) { $o = ""; +//Disabled if( (($a->argc > 1) && ($a->argv[1] == 'intros')) || (($a->argc == 1))) { nav_set_selected('introductions'); @@ -221,7 +223,9 @@ function notifications_content(&$a) { $o .= paginate($a); return $o; - } else if (($a->argc > 1) && ($a->argv[1] == 'network')) { + } + + elseif (($a->argc > 1) && ($a->argv[1] == 'network')) { $notif_tpl = get_markup_template('notifications.tpl'); @@ -428,11 +432,7 @@ function notifications_content(&$a) { '$tabs' => $tabs, '$notif_content' => $notif_content, )); - - - - - + } else if (($a->argc > 1) && ($a->argv[1] == 'home')) { diff --git a/view/tpl/notifications.tpl b/view/tpl/notifications.tpl index 6e6015414..3015de504 100755 --- a/view/tpl/notifications.tpl +++ b/view/tpl/notifications.tpl @@ -1,7 +1,5 @@ <h1>{{$notif_header}}</h1> -{{include file="common_tabs.tpl"}} - <div class="notif-network-wrapper"> {{$notif_content}} </div> |