diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-02-02 11:19:06 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-02-02 11:19:06 +0100 |
commit | 8220a6584ca78e8db01d1bd1ea8720cec6952d12 (patch) | |
tree | b98f90376f80341dabb5db9df8e2bda49025db0d | |
parent | d4b51c491fd11352bf0763d46e859587a6afeb26 (diff) | |
download | volse-hubzilla-8220a6584ca78e8db01d1bd1ea8720cec6952d12.tar.gz volse-hubzilla-8220a6584ca78e8db01d1bd1ea8720cec6952d12.tar.bz2 volse-hubzilla-8220a6584ca78e8db01d1bd1ea8720cec6952d12.zip |
remove apps from usermenu
-rw-r--r-- | include/nav.php | 28 | ||||
-rw-r--r-- | view/theme/redbasic/css/style.css | 3 | ||||
-rwxr-xr-x | view/tpl/nav.tpl | 12 |
3 files changed, 23 insertions, 20 deletions
diff --git a/include/nav.php b/include/nav.php index 894b30b45..98b6ebe3f 100644 --- a/include/nav.php +++ b/include/nav.php @@ -85,30 +85,30 @@ EOT; $nav['logout'] = Array('logout',t('Logout'), "", t('End this session'),'logout_nav_btn'); // user menu - $nav['usermenu'][] = Array('channel/' . $channel['channel_address'], t('Home'), "", t('Your posts and conversations'),'channel_nav_btn'); + //$nav['usermenu'][] = Array('channel/' . $channel['channel_address'], t('Home'), "", t('Your posts and conversations'),'channel_nav_btn'); $nav['usermenu'][] = Array('profile/' . $channel['channel_address'], t('View Profile'), "", t('Your profile page'),'profile_nav_btn'); if(feature_enabled(local_channel(),'multi_profiles') && (! $basic)) $nav['usermenu'][] = Array('profiles', t('Edit Profiles'),"", t('Manage/Edit profiles'),'profiles_nav_btn'); else $nav['usermenu'][] = Array('profiles/' . $prof[0]['id'], t('Edit Profile'),"", t('Edit your profile'),'profiles_nav_btn'); - $nav['usermenu'][] = Array('photos/' . $channel['channel_address'], t('Photos'), "", t('Your photos'),'photos_nav_btn'); - $nav['usermenu'][] = Array('cloud/' . $channel['channel_address'],t('Files'),"",t('Your files'),'cloud_nav_btn'); + //$nav['usermenu'][] = Array('photos/' . $channel['channel_address'], t('Photos'), "", t('Your photos'),'photos_nav_btn'); + //$nav['usermenu'][] = Array('cloud/' . $channel['channel_address'],t('Files'),"",t('Your files'),'cloud_nav_btn'); - if((! $basic) && feature_enabled(local_channel(),'ajaxchat')) - $nav['usermenu'][] = Array('chat/' . $channel['channel_address'], t('Chat'),"",t('Your chatrooms'),'chat_nav_btn'); + //if((! $basic) && feature_enabled(local_channel(),'ajaxchat')) + // $nav['usermenu'][] = Array('chat/' . $channel['channel_address'], t('Chat'),"",t('Your chatrooms'),'chat_nav_btn'); - require_once('include/menu.php'); - $has_bookmarks = menu_list_count(local_channel(),'',MENU_BOOKMARK) + menu_list_count(local_channel(),'',MENU_SYSTEM|MENU_BOOKMARK); - if(($has_bookmarks) && (! $basic)) { - $nav['usermenu'][] = Array('bookmarks', t('Bookmarks'), "", t('Your bookmarks'),'bookmarks_nav_btn'); - } + //require_once('include/menu.php'); + //$has_bookmarks = menu_list_count(local_channel(),'',MENU_BOOKMARK) + menu_list_count(local_channel(),'',MENU_SYSTEM|MENU_BOOKMARK); + //if(($has_bookmarks) && (! $basic)) { + // $nav['usermenu'][] = Array('bookmarks', t('Bookmarks'), "", t('Your bookmarks'),'bookmarks_nav_btn'); + //} - if(feature_enabled($channel['channel_id'],'webpages') && (! $basic)) - $nav['usermenu'][] = Array('webpages/' . $channel['channel_address'],t('Webpages'),"",t('Your webpages'),'webpages_nav_btn'); - if(feature_enabled($channel['channel_id'],'wiki') && (! $basic)) - $nav['usermenu'][] = Array('wiki/' . $channel['channel_address'],t('Wikis'),"",t('Your wikis'),'wiki_nav_btn'); + //if(feature_enabled($channel['channel_id'],'webpages') && (! $basic)) + // $nav['usermenu'][] = Array('webpages/' . $channel['channel_address'],t('Webpages'),"",t('Your webpages'),'webpages_nav_btn'); + //if(feature_enabled($channel['channel_id'],'wiki') && (! $basic)) + // $nav['usermenu'][] = Array('wiki/' . $channel['channel_address'],t('Wikis'),"",t('Your wikis'),'wiki_nav_btn'); } else { if(! get_account_id()) { diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index bf664ad81..e55257479 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1524,6 +1524,9 @@ img.mail-conv-sender-photo { /* nav bootstrap */ +.net-button { + display: none; +} nav img { border-radius: $radiuspx; diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index ac971237d..5fc7e66a7 100755 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -59,7 +59,7 @@ <div class="collapse navbar-collapse" id="navbar-collapse-1"> <ul class="nav navbar-nav navbar-left"> {{if $nav.network}} - <li class="{{$sel.network}} net-button"> + <li class="{{$sel.network}} net-button" style="display: none;"> <a href="#" title="{{$nav.network.3}}" id="{{$nav.network.4}}" data-toggle="dropdown" rel="#nav-network-menu"> <i class="fa fa-fw fa-th"></i> <span class="net-update badge"></span> @@ -73,7 +73,7 @@ {{/if}} {{if $nav.home}} - <li class="{{$sel.home}} home-button"> + <li class="{{$sel.home}} home-button" style="display: none;"> <a class="{{$nav.home.2}}" href="#" title="{{$nav.home.3}}" id="{{$nav.home.4}}" data-toggle="dropdown" rel="#nav-home-menu"> <i class="fa fa-fw fa-home"></i> <span class="home-update badge"></span> @@ -87,7 +87,7 @@ {{/if}} {{if $nav.messages}} - <li class="{{$sel.messages}} mail-button"> + <li class="{{$sel.messages}} mail-button" style="display: none;"> <a class="{{$nav.messages.2}}" href="#" title="{{$nav.messages.3}}" id="{{$nav.messages.4}}" data-toggle="dropdown" rel="#nav-messages-menu"> <i class="fa fa-fw fa-envelope"></i> <span class="mail-update badge"></span> @@ -101,7 +101,7 @@ {{/if}} {{if $nav.all_events}} - <li class="{{$sel.all_events}} all_events-button"> + <li class="{{$sel.all_events}} all_events-button" style="display: none;"> <a class="{{$nav.all_events.2}}" href="#" title="{{$nav.all_events.3}}" id="{{$nav.all_events.4}}" data-toggle="dropdown" rel="#nav-all_events-menu"> <i class="fa fa-fw fa-calendar"></i> <span class="all_events-update badge"></span> @@ -115,7 +115,7 @@ {{/if}} {{if $nav.intros}} - <li class="{{$sel.intros}} intro-button"> + <li class="{{$sel.intros}} intro-button" style="display: none;"> <a class="{{$nav.intros.2}}" href="{{$nav.intros.0}}" title="{{$nav.intros.3}}" id="{{$nav.intros.4}}" data-toggle="dropdown" rel="#nav-intros-menu"> <i class="fa fa-fw fa-user"></i> <span class="intro-update badge"></span> @@ -128,7 +128,7 @@ {{/if}} {{if $nav.notifications}} - <li class="{{$sel.notifications}} notify-button"> + <li class="{{$sel.notifications}} notify-button" style="display: none;"> <a href="{{$nav.notifications.0}}" title="{{$nav.notifications.1}}" id="{{$nav.notifications.4}}" data-toggle="dropdown" rel="#nav-notify-menu"> <i class="fa fa-fw fa-exclamation"></i> <span class="notify-update badge"></span> |