mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:35:55 +00:00
rework scoring display, JS processing and icons
This commit is contained in:
@@ -1963,19 +1963,33 @@
|
||||
}
|
||||
|
||||
function get_score_pic($score) {
|
||||
if ($score > 100) {
|
||||
return "score_high.png";
|
||||
if ($score > 500) {
|
||||
return "trending_up";
|
||||
} else if ($score > 0) {
|
||||
return "score_half_high.png";
|
||||
} else if ($score < -100) {
|
||||
return "score_low.png";
|
||||
return "trending_up";
|
||||
} else if ($score < 0) {
|
||||
return "score_half_low.png";
|
||||
return "trending_down";
|
||||
} else {
|
||||
return "score_neutral.png";
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user