mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
bug 206 fixed: PNG thumbnails clipped with IE
- added class="icon" to recent.png (functions_html.inc.php) - added class="button" to al png button images (*.tpl) - changed pngfix.js to only fix icon or button images template improvement: category prettier and simpler (a little bit) - got rid of one SPAN level - content.css more readable git-svn-id: http://piwigo.org/svn/branches/branch-1_5@939 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -48,8 +48,8 @@ function get_icon( $date )
|
||||
$title .= $user['recent_period'];
|
||||
$title .= ' '.$lang['days'];
|
||||
$size = getimagesize( $icon_url );
|
||||
$output = '<img title="'.$title.'" src="'.$icon_url.'" style="border:0;';
|
||||
$output.= 'height:'.$size[1].'px;width:'.$size[0].'px" alt="" />';
|
||||
$output = '<img title="'.$title.'" src="'.$icon_url.'" class="icon" style="border:0;';
|
||||
$output.= 'height:'.$size[1].'px;width:'.$size[0].'px" alt="(!)" />';
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
+5
-2
@@ -6,7 +6,9 @@ function correctPNG()
|
||||
{
|
||||
for(var i=0; i<document.images.length; i++)
|
||||
{
|
||||
var img = document.images[i]
|
||||
var img = document.images[i]
|
||||
if (img.className == "button" || img.className == "icon")
|
||||
{
|
||||
var imgName = img.src.toUpperCase()
|
||||
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
|
||||
{
|
||||
@@ -24,6 +26,7 @@ function correctPNG()
|
||||
img.outerHTML = strNewHTML
|
||||
i = i-1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
window.attachEvent("onload", correctPNG);
|
||||
window.attachEvent("onload", correctPNG);
|
||||
|
||||
Reference in New Issue
Block a user