From abd8a516390d219e8326e78867479e86b0157bf0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 23 Aug 2007 15:21:12 +0100 Subject: [PATCH] present png star images for non-IE browsers --- functions.php | 24 ++++++++++++++++++++---- images/mark_set.png | Bin 0 -> 524 bytes images/mark_unset.png | Bin 0 -> 496 bytes 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 images/mark_set.png create mode 100644 images/mark_unset.png 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 0000000000000000000000000000000000000000..b35655c85e566494dbda268f798a63f308f1ba64 GIT binary patch literal 524 zcmV+n0`vWeP)L zl0i!wQ51#0cgGn9D-ET^T3ocyg+UxGNm9grE#2zaiHt4 zl|R?-JV6kdMFp!0R)fea-dVtPs4UFjFU;V(4wX?nb#sY9WTt^R;HBqK35rYt=snKT z9`Awgz)u~@@wLF)k39iCh+@-GaL*&X@8dpuz~pQJ1#onVt+zSroYVc2;`J;T%O~KS zveptr=Fx=k<@rONmS*urjSKMYh%`?4l^IraC@lfdp|mo?a-6WgbI8T0;+;b-;)MOo zu&hIA^(|3{(#{Mk2Pf3yWVkp^;NXOM-no61@4JEyr6Y=l>kJFH4v3DKdNcnR??(d#6m%%RZ?ymv0jV|F z&J0V{vTRh#vXL27Bb*L zlTR-LVGzcDv%8x0uS6P=-H4-uh}0(jv9S1AXYMWqAlX;$bXP%jPMOFEaS-rq8Vm^$R@5OO?fwr)dx@*7gAdHv=ia;^- zfA@eb?0Q*TFNcaSg_YdkXMs|cl`vu(I0eoFpS!OdIk`~_*b~^a z1Tqc{*P(B$pMlYS1fcSa-ak`+Y4X-+l1UU4_JJ)?Rl1jnVK9S)2&^A>qi2sY=ter34|3Vls1U!0K zv|OVB9Hh|t#4wps6#+&9pQnxzfEmCl*Emd+g}lc`-eV(C7RogaQ+`Vq?Gl>6a^B;( mZ8m4XY8bJUaym=+i+uoaii}R7(4bfV0000