diff options
author | Andrew Dolgov <[email protected]> | 2009-12-17 22:14:54 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-12-17 22:14:54 +0300 |
commit | 3e94601e57f69231887fe6cb32c837bcfb6d1545 (patch) | |
tree | 1292c589ae2f6f9b570a8e4b708a803a1b243e34 | |
parent | 17fd15be7a9efb1da829fe1325b7aed74425f913 (diff) |
mobile: label-related fixes; show article icons
-rw-r--r-- | mobile/functions.php | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/mobile/functions.php b/mobile/functions.php index 71baa08d1..91ca397f9 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 "<li class='$class'> - <a href='feed.php?id=$id&cat=-1'>$title</a></li>"; + <a href='feed.php?id=$id&cat=-2'>$title</a></li>"; } print "</ul>"; @@ -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 "<li class='$class'> - <a href='article.php?id=$id&feed=$feed_id&cat=$cat_id'>"; + if (mobile_feed_has_icon($real_feed_id)) { + $icon_url = "../".ICONS_URL."/$real_feed_id.ico"; + } else { + $icon_url = "../images/blank_icon.gif"; + } + + print "<li class='$class'><a href='article.php?id=$id&feed=$feed_id&cat=$cat_id'> + <img class='tinyIcon' src='$icon_url'>"; print $line["title"]; print "</a></li>"; |