From 2eb9c95c970644f8408da9d22b60a66caadd36fb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 26 Jan 2009 11:07:53 +0100 Subject: support colored labels --- modules/backend-rpc.php | 10 ++-------- modules/pref-labels.php | 14 +++++++++++--- 2 files changed, 13 insertions(+), 11 deletions(-) (limited to 'modules') diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 855d54aa7..04e2858ca 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -444,10 +444,7 @@ print "".$l[1].""; - } + print format_article_labels($labels, $id); print "]]>"; @@ -483,10 +480,7 @@ print "".$l[1].""; - } + print format_article_labels($labels, $id); print "]]>"; diff --git a/modules/pref-labels.php b/modules/pref-labels.php index b09a16cf5..059079a71 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -110,7 +110,7 @@ } $result = db_query($link, "SELECT - id,caption + * FROM ttrss_labels2 WHERE @@ -149,12 +149,20 @@ print ""; $line["caption"] = htmlspecialchars($line["caption"]); - + + $fg_color = $line["fg_color"]; + $bg_color = $line["bg_color"]; + + if (!$fg_color) $fg_color = "black"; + if (!$bg_color) $bg_color = "transparent"; + print ""; - print "" . $line["caption"] . + print "" . $line["caption"] . ""; print ""; -- cgit v1.2.3