- Gmail-like labels for feed categories (needs UI thinking)
- support for "starred" posts (+ maybe Starred label)
- global search
-
+- optional three column layout
$result = pg_query("UPDATE ttrss_entries SET unread = false,last_read = NOW() WHERE id = '$id'");
+ $addheader = $_GET["addheader"];
+
$result = pg_query("SELECT title,link,content,feed_id,comments,
(SELECT icon_url FROM ttrss_feeds WHERE id = feed_id) as icon_url
FROM ttrss_entries
WHERE id = '$id'");
+ if ($addheader) {
+
+ print "<html>
+ <head>
+ <title>Tiny Tiny RSS : Article $id</title>
+ <link rel=\"stylesheet\" href=\"tt-rss.css\" type=\"text/css\">
+ <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
+ </head><body>";
+ }
+
if ($result) {
$line = pg_fetch_assoc($result);
print "</table>";
}
+
+ if ($addheader) {
+ print "</body></html>";
+ }
}
if ($op == "viewfeed") {
define(ENABLE_PREFS_CATCHUP_UNCATCHUP, false);
// enable "Mark as read/unread" buttons in preferences dialog
-
+
+ define(ENABLE_CONTENT_IFRAME, true);
+ // show article in an iframe to mitigate scrolling UI issues
+
?>
margin : 15px;
}
-
+iframe.contentFrame {
+ width : 100%;
+ border-width : 0px;
+ padding : 0px;
+ margin : 0px;
+ height : 100%;
+}
active_post_id = id;
- xmlhttp_view.open("GET", "backend.php?op=view&id=" + param_escape(id), true);
- xmlhttp_view.onreadystatechange=view_callback;
- xmlhttp_view.send(null);
-
+ var content = document.getElementById("content-frame");
+ if (content) {
+ content.src = "backend.php?op=view&addheader=true&id=" + param_escape(id);
+ markHeadline(active_post_id);
+ } else {
+ xmlhttp_view.open("GET", "backend.php?op=view&id=" + param_escape(id), true);
+ xmlhttp_view.onreadystatechange=view_callback;
+ xmlhttp_view.send(null);
+ }
}
function timeout() {
updateFeedList(false, false);
document.onkeydown = hotkey_handler;
setTimeout("timeout()", 1800*1000);
+
+ var content = document.getElementById("content");
}
</td>
</tr>
<td class="content" id="content" valign="top">
-
+ <? if (ENABLE_CONTENT_IFRAME) { ?>
+ <iframe id="content-frame" class="contentFrame">
+ <? } ?>
</td>
</tr>
<tr>