mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
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
This commit is contained in:
@@ -224,6 +224,12 @@ if (count($categories) > 0)
|
||||
|
||||
foreach ($categories as $category)
|
||||
{
|
||||
$category['name'] = trigger_event(
|
||||
'render_category_name',
|
||||
$category['name'],
|
||||
'subcatify_category_name'
|
||||
);
|
||||
|
||||
if ($page['section']=='recent_cats')
|
||||
{
|
||||
$name = get_cat_display_name_cache($category['uppercats'], null, false);
|
||||
@@ -239,7 +245,7 @@ if (count($categories) > 0)
|
||||
array(
|
||||
'ID' => $category['id'],
|
||||
'TN_SRC' => $thumbnail_src_of[$category['representative_picture_id']],
|
||||
'ALT' => $category['name'],
|
||||
'ALT' => strip_tags($category['name']),
|
||||
'ICON' => $icon_ts,
|
||||
|
||||
'URL' => make_index_url(
|
||||
|
||||
Reference in New Issue
Block a user