aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/test_menu/menubar.inc.php
diff options
context:
space:
mode:
authorgrum <grum@piwigo.org>2008-08-07 21:52:45 +0000
committergrum <grum@piwigo.org>2008-08-07 21:52:45 +0000
commit526d8006a16bd8b666d94aaf152346537045a0a5 (patch)
treebe1a62befe2bdbe3d0d03a8155aa1d1b228093e5 /plugins/test_menu/menubar.inc.php
parent5e3d71c9cab75c7796c566823df96765522c8965 (diff)
updating files for the Menu class (test_menu)
+ add functionnalities updating files for the AMenuManager plugin + fixes some bugs + add functionnalities updating common classes grum_plugins_classes-2 (needed for the AMenuManager plugin) + add functionalities for google_translator use git-svn-id: http://piwigo.org/svn/trunk@2468 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/test_menu/menubar.inc.php')
-rw-r--r--plugins/test_menu/menubar.inc.php42
1 files changed, 37 insertions, 5 deletions
diff --git a/plugins/test_menu/menubar.inc.php b/plugins/test_menu/menubar.inc.php
index 0bcca0a08..5a504ce6d 100644
--- a/plugins/test_menu/menubar.inc.php
+++ b/plugins/test_menu/menubar.inc.php
@@ -110,7 +110,30 @@ if ('tags' == @$page['section'])
//---------------------------------------------------------- special categories
-// favorites categories
+/*
+ ** note for usage with Menu class **
+ items of Special section are defined with a named key rather than a
+ numeric key
+
+ Example :
+ $datas['special']=array(
+ 'favorite_cat' => array( ... ),
+ 'most_visited_cat' => array( ... ),
+ 'best_rated_cat' => array( ... ),
+ [...]
+ );
+
+ This permits to easily find datas and modify content with a callback on the
+ 'loc_begin_menubar' event.
+
+ Example :
+ $section_special=$menu->section('mbSpecial');
+ unset($section['ITEMS']['favorite_cat']);
+ $menu->replace($section_special);
+
+ this code permit to remove the items "favorite_cat" from the
+ section "mbSpecial"
+*/
$datas['special']=array();
if ( !is_a_guest() )
{
@@ -213,16 +236,25 @@ else
//--------------------------------------------------------------- menu summaries
+/*
+ ** note for usage with Menu class **
+ items of menu section are defined with a named key rather than a numeric key
+
+ see notes from "sepcial categories" for more informations
+*/
$datas['menu']=array();
+//qsearch input zone visible y/n ; if set to 'n' the qsearch zone isn't visible
+$datas['menu']['qsearch']='y';
+
// tags link
-$datas['menu']['tags']=array(
+$datas['menu']['Tags']=array(
'TITLE' => l10n('See available tags'),
'NAME' => l10n('Tags'),
'U_SUMMARY'=> get_root_url().'tags.php',
);
// search link
-$datas['menu']['search']=array(
+$datas['menu']['Search']=array(
'TITLE'=>l10n('hint_search'),
'NAME'=>l10n('Search'),
'U_SUMMARY'=> get_root_url().'search.php',
@@ -237,14 +269,14 @@ $datas['menu']['comments']=array(
);
// about link
-$datas['menu']['about']=array(
+$datas['menu']['About']=array(
'TITLE' => l10n('about_page_title'),
'NAME' => l10n('About'),
'U_SUMMARY' => get_root_url().'about.php',
);
// notification
-$datas['menu']['notification']=array(
+$datas['menu']['Notification']=array(
'TITLE'=>l10n('RSS feed'),
'NAME'=>l10n('Notification'),
'U_SUMMARY'=> get_root_url().'notification.php',