present png star images for non-IE browsers
This commit is contained in:
parent
f5e0338d84
commit
abd8a51639
|
@ -3545,8 +3545,16 @@
|
||||||
|
|
||||||
if ($num_starred > 0) $class .= "Unread";
|
if ($num_starred > 0) $class .= "Unread";
|
||||||
|
|
||||||
|
$is_ie = (strpos($_SESSION["client.userAgent"], "MSIE") !== false);
|
||||||
|
|
||||||
|
if ($is_ie) {
|
||||||
|
$mark_img_ext = "gif";
|
||||||
|
} else {
|
||||||
|
$mark_img_ext = "png";
|
||||||
|
}
|
||||||
|
|
||||||
printFeedEntry(-1, $class, __("Starred articles"), $num_starred,
|
printFeedEntry(-1, $class, __("Starred articles"), $num_starred,
|
||||||
"images/mark_set.gif", $link);
|
"images/mark_set.$mark_img_ext", $link);
|
||||||
|
|
||||||
$class = "virt";
|
$class = "virt";
|
||||||
|
|
||||||
|
@ -4251,13 +4259,21 @@
|
||||||
} else {
|
} else {
|
||||||
$is_unread = false;
|
$is_unread = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$is_ie = (strpos($_SESSION["client.userAgent"], "MSIE") !== false);
|
||||||
|
|
||||||
|
if ($is_ie) {
|
||||||
|
$mark_img_ext = "gif";
|
||||||
|
} else {
|
||||||
|
$mark_img_ext = "png";
|
||||||
|
}
|
||||||
|
|
||||||
if ($line["marked"] == "t" || $line["marked"] == "1") {
|
if ($line["marked"] == "t" || $line["marked"] == "1") {
|
||||||
$marked_pic = "<img id=\"FMPIC-$id\" src=\"images/mark_set.gif\"
|
$marked_pic = "<img id=\"FMPIC-$id\" src=\"images/mark_set.$mark_img_ext\"
|
||||||
class=\"markedPic\"
|
class=\"markedPic\"
|
||||||
alt=\"Unstar article\" onclick='javascript:tMark($id)'>";
|
alt=\"Unstar article\" onclick='javascript:tMark($id)'>";
|
||||||
} else {
|
} else {
|
||||||
$marked_pic = "<img id=\"FMPIC-$id\" src=\"images/mark_unset.gif\"
|
$marked_pic = "<img id=\"FMPIC-$id\" src=\"images/mark_unset.$mark_img_ext\"
|
||||||
class=\"markedPic\"
|
class=\"markedPic\"
|
||||||
alt=\"Star article\" onclick='javascript:tMark($id)'>";
|
alt=\"Star article\" onclick='javascript:tMark($id)'>";
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 524 B |
Binary file not shown.
After Width: | Height: | Size: 496 B |
Loading…
Reference in New Issue