From fe1087fbb72959a2da5c71ef405e96c84c94381e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Nov 2010 19:11:54 +0300 Subject: implement a simple pseudo-dashboard feed; display feeds having update errors there instead of client-based 'no feed selected' whiteBox plug (closes #189) --- functions.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 259aaf556..c691039d8 100644 --- a/functions.php +++ b/functions.php @@ -6828,4 +6828,31 @@ return $headlines; } + function generate_dashboard_feed($link) { + print ""; + + print ''; + + print "
".__('No feed selected.'); + + $result = db_query($link, "SELECT COUNT(id) AS num_errors + FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]); + + $num_errors = db_fetch_result($result, 0, "num_errors"); + + if ($num_errors > 0) { + + print "

". + __('Some feeds have update errors (click for details)').""; + } + + print "

]]>"; + print "
"; + + print ""; + print ""; + print ""; + print ""; + + } ?> -- cgit v1.2.3