From abd8a516390d219e8326e78867479e86b0157bf0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 23 Aug 2007 15:21:12 +0100 Subject: present png star images for non-IE browsers --- functions.php | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 56b4a3c9a..3a7b4bf14 100644 --- a/functions.php +++ b/functions.php @@ -3545,8 +3545,16 @@ 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, - "images/mark_set.gif", $link); + "images/mark_set.$mark_img_ext", $link); $class = "virt"; @@ -4251,13 +4259,21 @@ } else { $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") { - $marked_pic = "\"Unstar"; } else { - $marked_pic = "\"Star"; } -- cgit v1.2.3