]> git.wh0rd.org Git - tt-rss.git/commitdiff
tweaked score icons
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 11 Aug 2008 07:09:25 +0000 (08:09 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 11 Aug 2008 07:09:25 +0000 (08:09 +0100)
functions.php
images/score_half_high.png [new file with mode: 0644]
images/score_half_low.png [new file with mode: 0644]
images/score_neutral.png

index c70bdcc89eeb7e2383f9cefae8ff00b2ef7938ad..f2800552fc09a37eb9f92bd0592af2a6567832e0 100644 (file)
        }
 
        function get_score_pic($score) {
-               if ($score > 0) { 
+               if ($score > 100) { 
                        return "score_high.png"; 
-               } else if ($score < 0) {
+               } else if ($score > 0) { 
+                       return "score_half_high.png"; 
+               } else if ($score < -100) {
                        return "score_low.png"; 
+               } else if ($score < 0) {
+                       return "score_half_low.png"; 
                } else { 
                        return "score_neutral.png"; 
                }
diff --git a/images/score_half_high.png b/images/score_half_high.png
new file mode 100644 (file)
index 0000000..0bac7b8
Binary files /dev/null and b/images/score_half_high.png differ
diff --git a/images/score_half_low.png b/images/score_half_low.png
new file mode 100644 (file)
index 0000000..c88198d
Binary files /dev/null and b/images/score_half_low.png differ
index b4cd7e2318662c39ce550602009f122bfcad8b12..40e2127363f4a665050a502db7dafe4aeb932547 100644 (file)
Binary files a/images/score_neutral.png and b/images/score_neutral.png differ