aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-07-19 23:45:57 +0000
committerrvelices <rv-github@modusoptimus.com>2007-07-19 23:45:57 +0000
commit7f480b6ec63af411953063ca29c43bc428193fe6 (patch)
tree68a5eeb43b2856f110ae09e7469722be5b89fb49 /include/functions_html.inc.php
parent26d643fbe861115fef0ae0974387a3b11b5840dc (diff)
merge -r2069 from branch-1_7 to trunk
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/trunk@2070 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_html.inc.php')
-rw-r--r--include/functions_html.inc.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index e62adc65d..bdda81d4a 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".'<a href="'.$url.'"';
+ $menu.= '<a href="'.$url.'"';
if ($selected_category!=null
and $category['id'] == $selected_category['id_uppercat'])
{
$menu.= ' rel="up"';
}
- $menu.= ' title=" '.$title.'">'.$category['name'].'</a>';
+ $menu.= ' title="'.$title.'">'.$category['name'].'</a>';
if ( $category['count_images']>0 )
{// at least one direct or indirect image