show bookmarks menu only if we have any bookmarks already
This commit is contained in:
@@ -110,9 +110,14 @@ EOT;
|
||||
$nav['usermenu'][] = Array('chat/' . $channel['channel_address'],t('Chat'),"",t('Your chatrooms'));
|
||||
}
|
||||
|
||||
$nav['usermenu'][] = Array('bookmarks', t('Bookmarks'), "", t('Your bookmarks'));
|
||||
require_once('include/menu.php');
|
||||
$has_bookmarks = menu_list_count(local_user(),'',MENU_BOOKMARK) + menu_list_count(local_user(),'',MENU_SYSTEM|MENU_BOOKMARK);
|
||||
if($has_bookmarks) {
|
||||
$nav['usermenu'][] = Array('bookmarks', t('Bookmarks'), "", t('Your bookmarks'));
|
||||
}
|
||||
|
||||
if(feature_enabled($channel['channel_id'],'webpages'))
|
||||
$nav['usermenu'][] = Array('webpages/' . $channel['channel_address'],t('Webpages'),"",t('Your webpages'));
|
||||
$nav['usermenu'][] = Array('webpages/' . $channel['channel_address'],t('Webpages'),"",t('Your webpages'));
|
||||
}
|
||||
else {
|
||||
if(! get_account_id())
|
||||
|
Reference in New Issue
Block a user