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/pref-labels.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'modules/pref-labels.php') 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-54-g00ecf