summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-06-06 07:51:00 +0100
committerAndrew Dolgov <[email protected]>2006-06-06 07:51:00 +0100
commit78d5212c0a3225b6fae106fee13e22c5b3e8fb46 (patch)
tree895116fee84243db513acbbc92fe0842e2170af9 /functions.php
parentcea51014f7e938dc9688d3370e5f2cdc3115a3ef (diff)
optionally show last update time in feedlist (EXTENDED_FEEDLIST) (closes #55)
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 6bcebe598..6de5c9eda 100644
--- a/functions.php
+++ b/functions.php
@@ -737,8 +737,11 @@
$rtl_tag = "dir=\"ltr\"";
}
+ $error_notify_msg = "";
+
if ($last_error) {
$link_title = "Error: $last_error ($last_updated)";
+ $error_notify_msg = "(Error)";
} else if ($last_updated) {
$link_title = "Updated: $last_updated";
}
@@ -760,7 +763,12 @@
print " <span $rtl_tag $fctr_class id=\"FEEDCTR-$feed_id\">
(<span id=\"FEEDU-$feed_id\">$unread</span>)</span>";
-
+
+ if (get_pref($link, "EXTENDED_FEEDLIST")) {
+ print "<div class=\"feedExtInfo\">
+ <span id=\"FLUPD-$feed_id\">$last_updated $error_notify_msg</span></div>";
+ }
+
print "</li>";
}