From: Andrew Dolgov Date: Thu, 23 Aug 2007 14:21:12 +0000 (+0100) Subject: present png star images for non-IE browsers X-Git-Tag: 1.2.15~84 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=abd8a516390d219e8326e78867479e86b0157bf0;p=tt-rss.git present png star images for non-IE browsers --- diff --git a/functions.php b/functions.php index 56b4a3c9..3a7b4bf1 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"; } diff --git a/images/mark_set.png b/images/mark_set.png new file mode 100644 index 00000000..b35655c8 Binary files /dev/null and b/images/mark_set.png differ diff --git a/images/mark_unset.png b/images/mark_unset.png new file mode 100644 index 00000000..bf9059a3 Binary files /dev/null and b/images/mark_unset.png differ