From def88719e84445cfea91539bc96072c31fd65189 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 11 Jun 2011 14:35:38 +0000 Subject: feature:2322 Add two new trigger events for tag name display and tag url git-svn-id: http://piwigo.org/svn/trunk@11317 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions.php | 2 +- admin/tags.php | 4 ++-- admin/themes/default/template/tags.tpl | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'admin') diff --git a/admin/include/functions.php b/admin/include/functions.php index 510ef767a..487327fd4 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -2107,7 +2107,7 @@ function get_taglist($query) array_push( $taglist, array( - 'name' => $row['tag_name'], + 'name' => trigger_event('render_tag_name', $row['tag_name']), 'id' => '~~'.$row['tag_id'].'~~', ) ); diff --git a/admin/tags.php b/admin/tags.php index 16dea3661..8cc997f60 100644 --- a/admin/tags.php +++ b/admin/tags.php @@ -84,7 +84,7 @@ SELECT id, name array( 'id' => $tag_id, 'name' => addslashes($tag_name), - 'url_name' => str2url($tag_name), + 'url_name' => str2url(trigger_event('render_tag_url', $tag_name)), ) ); } @@ -174,7 +174,7 @@ SELECT id array( array( 'name' => $tag_name, - 'url_name' => str2url($tag_name), + 'url_name' => str2url(trigger_event('render_tag_url', $tag_name)), ) ) ); diff --git a/admin/themes/default/template/tags.tpl b/admin/themes/default/template/tags.tpl index aeca6fe5b..10a4f8b84 100644 --- a/admin/themes/default/template/tags.tpl +++ b/admin/themes/default/template/tags.tpl @@ -17,7 +17,7 @@ {foreach from=$tags item=tag} {$tag.NAME} - + {/foreach} @@ -35,7 +35,7 @@

-- cgit v1.2.3