summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-09-30 07:12:53 +0100
committerAndrew Dolgov <[email protected]>2006-09-30 07:12:53 +0100
commit08aef78132e9cc50ea88ccfc87afcac80b182eac (patch)
treeb61751b51b26faee14b8e29f464cb3de9521ece9 /backend.php
parent8736c2d227e02e3a49c1b517e715a0268adb4eb7 (diff)
tweak feed display layout for tags
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php22
1 files changed, 15 insertions, 7 deletions
diff --git a/backend.php b/backend.php
index 6e3fdcece..bbc62e132 100644
--- a/backend.php
+++ b/backend.php
@@ -347,6 +347,10 @@
++$lnum;
}
+ if (db_num_rows($result) == 0) {
+ print "<li>No feeds to display.</li>";
+ }
+
} else {
// tags
@@ -360,6 +364,11 @@
select tag_name,0 as count FROM ttrss_tags WHERE owner_uid = '$owner_uid'
ORDER BY tag_name"); */
+ if (get_pref($link, 'ENABLE_FEED_CATS')) {
+ print "<li class=\"feedCat\">Tags</li>";
+ print "<li id=\"feedCatHolder\"><ul class=\"feedCatList\">";
+ }
+
$result = db_query($link, "SELECT tag_name,SUM((SELECT COUNT(int_id)
FROM ttrss_user_entries WHERE int_id = post_int_id
AND unread = true)) AS count FROM ttrss_tags
@@ -385,15 +394,14 @@
}
- }
+ if (db_num_rows($result) == 0) {
+ print "<li>No tags to display.</li>";
+ }
- if (db_num_rows($result) == 0) {
- if ($tags) {
- $what = "tags";
- } else {
- $what = "feeds";
+ if (get_pref($link, 'ENABLE_FEED_CATS')) {
+ print "</ul>\n";
}
- print "<li>No $what to display.</li>";
+
}
print "</ul>";