From e78758a25cb0cd34350ae5aa681323f20fce600a Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 19 Jul 2007 23:39:43 +0000 Subject: added 2 events: get_categories_menu_sql_where and get_html_menu_category in order to allow personalisation of the category menu git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2069 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_html.inc.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'include/functions_html.inc.php') diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 1acdb15ad..cae82be2e 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -394,7 +394,13 @@ function get_html_menu_category($categories, $selected_category) $ref_level = 0; $level = 0; - $menu = ''; + + $menu = trigger_event('get_html_menu_category', '', + $categories, $selected_category); + if (strlen($menu)) + { + return $menu; + } foreach ($categories as $category) { @@ -437,13 +443,13 @@ function get_html_menu_category($categories, $selected_category) ' / ' ); - $menu.= "\n".''.$category['name'].''; + $menu.= ' title="'.$title.'">'.$category['name'].''; if ( $category['count_images']>0 ) {// at least one direct or indirect image -- cgit v1.2.3