From 25ca144bb775f29dfc152a87c975f1fcdb367174 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 11 Dec 2018 10:00:54 +0300 Subject: score: get correct classes for rows/score icons on the client --- include/functions.php | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 20c1919a8..f44d91a15 100755 --- a/include/functions.php +++ b/include/functions.php @@ -1977,34 +1977,6 @@ return $filters; } - function get_score_pic($score) { - if ($score > 500) { - return "trending_up"; - } else if ($score > 0) { - return "trending_up"; - } else if ($score < 0) { - return "trending_down"; - } else { - return "trending_neutral"; - } - } - - function get_score_class($score) { - if ($score > 500) { - $score_class = "score-high"; - } else if ($score > 0) { - $score_class = "score-half-high"; - } else if ($score < -100) { - $score_class = "score-low"; - } else if ($score < 0) { - $score_class = "score-half-low"; - } else { - $score_class = "score-neutral"; - } - - return $score_class; - } - function init_plugins() { PluginHost::getInstance()->load(PLUGINS, PluginHost::KIND_ALL); -- cgit v1.2.3