mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user