From c4904f2b5a3b134d35592e08b12d788f97faa690 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 14 Jun 2011 14:03:21 +0400 Subject: [PATCH] mobile: show originating feed in article view when necessary (closes #347) --- mobile/functions.php | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/mobile/functions.php b/mobile/functions.php index d99a4754..eb523d71 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -469,9 +469,18 @@ selected=\"true\" myBackLabel='$feed_title' myBackHref='feed.php?id=$feed_id&cat=$cat_id&is_cat=$is_cat'>"; - print "

$title

"; + if ($line['feed_id'] != $feed_id) { + $real_feed_title = getFeedTitle($link, $line['feed_id']); + $real_feed_id = $line['feed_id']; + $feed_link = "($real_feed_title)"; + } +// print "
"; - print "
"; + print "
($updated_fmt)
"; + + print "

$title $feed_link

"; + + print "
"; /* print "
"; print ""; @@ -480,12 +489,12 @@ $is_starred = (sql_bool_to_bool($line["marked"])) ? "true" : "false"; $is_published = (sql_bool_to_bool($line["published"])) ? "true" : "false"; - print "
"; - print ""; - print ""; - print "
"; + //print "
"; + //print ""; + //print ""; + //print "
"; - print "
"; +// print "
"; $content = sanitize_rss($link, $line["content"]); $content = preg_replace("/href=/i", "target=\"_blank\" href=", $content); -- 2.39.5