]> git.wh0rd.org Git - tt-rss.git/commitdiff
mobile: show originating feed in article view when necessary (closes #347)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 14 Jun 2011 10:03:21 +0000 (14:03 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 14 Jun 2011 10:03:21 +0000 (14:03 +0400)
mobile/functions.php

index d99a47546a1f68843492c41337aa07f3f7d9cfb1..eb523d710e6d653205e56099ad55f115d001713c 100644 (file)
                                selected=\"true\"
                                myBackLabel='$feed_title' myBackHref='feed.php?id=$feed_id&cat=$cat_id&is_cat=$is_cat'>";
 
-                       print "<h2><a target='_blank' href='$article_link'>$title</a></h2>";
+                       if ($line['feed_id'] != $feed_id) {
+                               $real_feed_title = getFeedTitle($link, $line['feed_id']);
+                               $real_feed_id = $line['feed_id'];
+                               $feed_link = "(<a href=\"feed.php?id=$real_feed_id\">$real_feed_title</a>)";
+                       }
+//                     print "<fieldset>";
 
-                       print "<fieldset>";
+                       print "<div style='float : right'>($updated_fmt)</div>";
+
+                       print "<h2><a target='_blank' href='$article_link'>$title</a> $feed_link</h2>";
+
+                       print "<hr>";
 
 /*                     print "<div class=\"row\">";
                        print "<label id='title'><a target='_blank' href='$article_link'>$title</a></label>";
                        $is_starred = (sql_bool_to_bool($line["marked"])) ? "true" : "false";
                        $is_published = (sql_bool_to_bool($line["published"])) ? "true" : "false";
 
-                       print "<div class=\"row\">";
-                       print "<label id='updated'>Updated:</label>";
-                       print "<input enabled='false' name='updated' disabled value='$updated_fmt'/>";
-                       print "</div>";
+                       //print "<div class=\"row\">";
+                       //print "<label id='updated'>Updated:</label>";
+                       //print "<input enabled='false' name='updated' disabled value='$updated_fmt'/>";
+                       //print "</div>";
 
-                       print "</fieldset>";
+//                     print "</fieldset>";
 
                        $content = sanitize_rss($link, $line["content"]);
                        $content = preg_replace("/href=/i", "target=\"_blank\" href=", $content);