From ea10c19ac5a1f6e89627497e5a6bfdefa37b5053 Mon Sep 17 00:00:00 2001 From: rvelices Date: Sun, 24 Mar 2013 06:46:35 +0000 Subject: feature 2836: display the number of comments/tags in the menubar git-svn-id: http://piwigo.org/svn/trunk@21817 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/menubar.inc.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'include/menubar.inc.php') diff --git a/include/menubar.inc.php b/include/menubar.inc.php index bd75a0b44..b624111ca 100644 --- a/include/menubar.inc.php +++ b/include/menubar.inc.php @@ -191,14 +191,6 @@ function initialize_menu() ); } - $block->data['random'] = - array( - 'URL' => get_root_url().'random.php', - 'TITLE' => l10n('display a set of random photos'), - 'NAME' => l10n('Random photos'), - 'REL'=> 'rel="nofollow"' - ); - $block->data['recent_pics'] = array( 'URL' => make_index_url(array('section' => 'recent_pics')), @@ -213,6 +205,13 @@ function initialize_menu() 'NAME' => l10n('Recent albums'), ); + $block->data['random'] = + array( + 'URL' => get_root_url().'random.php', + 'TITLE' => l10n('display a set of random photos'), + 'NAME' => l10n('Random photos'), + 'REL'=> 'rel="nofollow"' + ); $block->data['calendar'] = array( @@ -246,6 +245,7 @@ function initialize_menu() 'TITLE' => l10n('display available tags'), 'NAME' => l10n('Tags'), 'URL'=> get_root_url().'tags.php', + 'COUNTER' => get_nb_available_tags(), ); // search link @@ -265,6 +265,7 @@ function initialize_menu() 'TITLE'=>l10n('display last user comments'), 'NAME'=>l10n('Comments'), 'URL'=> get_root_url().'comments.php', + 'COUNTER' => get_nb_available_comments(), ); } -- cgit v1.2.3