fixes #428, ability to hide "sizes" icon on index.php or picture.php

This commit is contained in:
plegall
2017-04-06 15:52:47 +02:00
parent 1d5279e4a8
commit b0ae23e34d
6 changed files with 82 additions and 19 deletions

View File

@@ -186,7 +186,10 @@ function default_picture_content($content, $element_info)
continue;
$added[$url] = 1;
$show_original &= !($derivative->same_as_source());
$unique_derivatives[$type]= $derivative;
// in case we do not display the sizes icon, we only add the selected size to unique_derivatives
if ($conf['picture_sizes_icon'] or $type == $deriv_type)
$unique_derivatives[$type]= $derivative;
}
global $page, $template;