aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2008-07-12 14:57:24 +0000
committerpatdenice <patdenice@piwigo.org>2008-07-12 14:57:24 +0000
commitb7709eae0dcb81df9eb668407b64f2cde38ba1f0 (patch)
treebdc03294c902c50e0c1e19414f400e1bdb5f4137 /include/functions_html.inc.php
parent2c08827ea0017b06d47323c98b2e1c28d7a3ebb8 (diff)
Merge from branch-1_7 (r2432).
Add triggers for category name (render_category_name). Add strip_tags for ALT attribute on category thumbnail. git-svn-id: http://piwigo.org/svn/trunk@2433 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_html.inc.php')
-rw-r--r--include/functions_html.inc.php21
1 files changed, 20 insertions, 1 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index 6f9e1fc5a..2578fc8c3 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -246,6 +246,13 @@ function get_cat_display_name($cat_informations,
is_array($cat) or trigger_error(
'get_cat_display_name wrong type for category ', E_USER_WARNING
);
+
+ $cat['name'] = trigger_event(
+ 'render_category_name',
+ $cat['name'],
+ 'get_cat_display_name'
+ );
+
if ($is_first)
{
$is_first = false;
@@ -320,6 +327,12 @@ SELECT id, name, permalink
{
$cat = $cache['cat_names'][$category_id];
+ $cat['name'] = trigger_event(
+ 'render_category_name',
+ $cat['name'],
+ 'get_cat_display_name_cache'
+ );
+
if ($is_first)
{
$is_first = false;
@@ -430,7 +443,13 @@ function get_html_menu_category($categories, $selected_category)
{
$menu.= ' rel="up"';
}
- $menu.= ' title="'.$title.'">'.$category['name'].'</a>';
+ $menu.= ' title="'.$title.'">';
+ $menu.= trigger_event(
+ 'render_category_name',
+ $category['name'],
+ 'get_html_menu_category'
+ );
+ $menu.= '</a>';
if ( $category['count_images']>0 )
{// at least one direct or indirect image