diff options
author | patdenice <patdenice@piwigo.org> | 2007-11-29 13:03:15 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2007-11-29 13:03:15 +0000 |
commit | 58b1c34aa15759112f7434c65ed74109802622f8 (patch) | |
tree | d4aad578ea9aaa4dd22ff1638f543d9ccbcab576 | |
parent | 6f66e183a09cdcaa156020c8d95650398903c4bc (diff) |
Add second parameter for render_category_description to differentiate both triggers in category_cats.inc.php and section_init.inc.php.
Add render_page_banner trigger.
git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2174 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | include/category_cats.inc.php | 3 | ||||
-rw-r--r-- | include/page_header.php | 5 | ||||
-rw-r--r-- | include/section_init.inc.php | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/include/category_cats.inc.php b/include/category_cats.inc.php index 716377c29..a389a1595 100644 --- a/include/category_cats.inc.php +++ b/include/category_cats.inc.php @@ -220,7 +220,8 @@ if (count($categories) > 0) 'DESCRIPTION' => trigger_event('render_category_literal_description', trigger_event('render_category_description', - @$category['comment'])), + @$category['comment'], + 'subcatify_category_description')), 'NAME' => $name, ) ); diff --git a/include/page_header.php b/include/page_header.php index c4d570eb6..2d9141c71 100644 --- a/include/page_header.php +++ b/include/page_header.php @@ -39,8 +39,9 @@ $template->assign_vars( $page['gallery_title'] : $conf['gallery_title'], 'PAGE_BANNER' => - isset($page['page_banner']) ? - $page['page_banner'] : $conf['page_banner'], + trigger_event('render_page_banner', + isset($page['page_banner']) ? + $page['page_banner'] : $conf['page_banner']), 'BODY_ID' => isset($page['body_id']) ? diff --git a/include/section_init.inc.php b/include/section_init.inc.php index f80b321a1..86c1c35c0 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -207,7 +207,8 @@ if ('categories' == $page['section']) 'comment' => trigger_event( 'render_category_description', - $page['category']['comment'] + $page['category']['comment'], + 'main_page_category_description' ), 'title' => get_cat_display_name($page['category']['upper_names'], '', false), |