diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-03-08 01:55:49 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-03-08 01:55:49 +0000 |
commit | eab3d5e20e3c823b32aa320f6816f3edb6993d95 (patch) | |
tree | e9760449aa651c9381f337e69f7644ea39cf6369 /include/category_cats.inc.php | |
parent | 246106e83ff6a639e8c04cfd52ec6e5e19697d85 (diff) |
- plugin administration: small fix during activation phase
- plugins: added 3 actions in category_cats.inc.php and 1 event that allow a plugin to decide if insertion to #history occurs
- added a warning in section_init if script_basename() is not index or picture (I think we'll have issues on some servers with this function)
- web service methods categories.getImages, tags.getImages and images.search return now the image comment
git-svn-id: http://piwigo.org/svn/trunk@1880 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/category_cats.inc.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/category_cats.inc.php b/include/category_cats.inc.php index 6e6304b94..8e967bdc9 100644 --- a/include/category_cats.inc.php +++ b/include/category_cats.inc.php @@ -177,7 +177,7 @@ if (count($categories) > 0) { update_cats_with_filtered_data($categories); } - trigger_action('loc_begin_index_categories'); + trigger_action('loc_begin_index_category_thumbnails', $categories); if ($conf['subcatify']) { $template->set_filename('mainpage_categories', 'mainpage_categories.tpl'); @@ -221,6 +221,10 @@ if (count($categories) > 0) 'NAME' => $name, ) ); + + //plugins need to add/modify sth in this loop ? + trigger_action('loc_index_category_thumbnail', + $category, 'categories.category' ); } $template->assign_var_from_handle('CATEGORIES', 'mainpage_categories'); @@ -252,7 +256,7 @@ if (count($categories) > 0) $category['count_images'], $category['count_categories'], true, - '<BR>' + '; ' ), 'U_IMG_LINK' => make_index_url( @@ -284,6 +288,10 @@ if (count($categories) > 0) ) ); + //plugins need to add/modify sth in this loop ? + trigger_action('loc_index_category_thumbnail', + $category, 'thumbnails.line.thumbnail' ); + // create a new line ? if (++$row_number == $user['nb_image_line']) { @@ -300,5 +308,6 @@ if (count($categories) > 0) $template->assign_var_from_handle('CATEGORIES', 'thumbnails'); unset( $template->_tpldata['thumbnails.'] );//maybe write a func for that } + trigger_action('loc_end_index_category_thumbnails', $categories); } ?> |