feature 2548 multisize

- added define_derivative template functiion for themes and plugins
- code cleanup, new events ...

git-svn-id: http://piwigo.org/svn/trunk@12954 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices 2012-01-24 19:24:47 +00:00
commit 4372d7aa11
6 changed files with 139 additions and 88 deletions

View file

@ -778,14 +778,7 @@ function get_thumbnail_path($element_info)
*/
function get_thumbnail_url($element_info)
{
$loc = $url = get_thumbnail_location($element_info);
if ( !url_is_remote($loc) )
{
$url = (get_root_url().$loc);
}
// plugins want another url ?
$url = trigger_event('get_thumbnail_url', $url, $element_info, $loc);
return embellish_url($url);
return DerivativeImage::thumb_url($element_info);
}
/* returns the relative path of the thumnail with regards to to the root