From 3ab417c2775b95e5ad4896b0a2c54ef19550f4c4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Apr 2013 15:02:44 +0400 Subject: [PATCH] remove label gradients --- classes/feeds.php | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/classes/feeds.php b/classes/feeds.php index 6427559e..c3b5225a 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -9,18 +9,6 @@ class Feeds extends Handler_Protected { return array_search($method, $csrf_ignored) !== false; } - private function make_gradient($end, $class) { - $start = $class == "even" ? "#f0f0f0" : "#ffffff"; - - return "style='background: linear-gradient(left , $start 6%, $end 100%); - background: -o-linear-gradient(left , $start 6%, $end 100%); - background: -moz-linear-gradient(left , $start 6%, $end 100%); - background: -webkit-linear-gradient(left , $start 6%, $end 100%); - background: -ms-linear-gradient(left , $start 6%, $end 100%); - background: -webkit-gradient(linear, left top, right top, - color-stop(0.06, $start), color-stop(1, $end));'"; - } - private function format_headline_subtoolbar($feed_site_url, $feed_title, $feed_id, $is_cat, $search, $search_mode, $view_mode, $error) { @@ -304,7 +292,6 @@ class Feeds extends Handler_Protected { $feed_id = $line["feed_id"]; $label_cache = $line["label_cache"]; $labels = false; - $label_row_style = ""; if ($label_cache) { $label_cache = json_decode($label_cache, true); @@ -319,22 +306,6 @@ class Feeds extends Handler_Protected { if (!is_array($labels)) $labels = get_article_labels($this->link, $id); - if (count($labels) > 0) { - for ($i = 0; $i < min(4, count($labels)); $i++) { - $bg = rgb2hsl(_color_unpack($labels[$i][3])); - - if ($bg && $bg[1] > 0) { - $bg[1] = 0.1; - $bg[2] = 1; - - $bg = _color_pack(hsl2rgb($bg)); - $label_row_style = $this->make_gradient($bg, $class);; - - break; - } - } - } - $labels_str = ""; $labels_str .= format_article_labels($labels, $id); $labels_str .= ""; @@ -450,7 +421,7 @@ class Feeds extends Handler_Protected { $mouseover_attrs = "onmouseover='postMouseIn(event, $id)' onmouseout='postMouseOut($id)'"; - $reply['content'] .= "
"; + $reply['content'] .= "
"; $reply['content'] .= "
"; -- 2.39.5