From: Andrew Dolgov Date: Thu, 17 Dec 2009 19:14:54 +0000 (+0300) Subject: mobile: label-related fixes; show article icons X-Git-Tag: 1.4.0~169 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3e94601e57f69231887fe6cb32c837bcfb6d1545;p=tt-rss.git mobile: label-related fixes; show article icons --- diff --git a/mobile/functions.php b/mobile/functions.php index 71baa08d..91ca397f 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -43,7 +43,7 @@ while ($line = db_fetch_assoc($result)) { $id = $line["id"]; $unread = $line["unread"]; - + // $unread = rand(0, 100); if ($unread > 0) { @@ -115,7 +115,7 @@ } print "
  • - $title
  • "; + $title"; } print ""; @@ -230,6 +230,7 @@ while ($line = db_fetch_assoc($result)) { $id = $line["id"]; + $real_feed_id = $line["feed_id"]; if (sql_bool_to_bool($line["unread"])) { $class = ''; @@ -237,8 +238,14 @@ $class = 'oldItem'; } - print "
  • - "; + if (mobile_feed_has_icon($real_feed_id)) { + $icon_url = "../".ICONS_URL."/$real_feed_id.ico"; + } else { + $icon_url = "../images/blank_icon.gif"; + } + + print "
  • + "; print $line["title"]; print "
  • ";