From d4b4b9dece1ce4bb7d1bc56004c0dde318b8008f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 1 Dec 2006 07:42:08 +0100 Subject: [PATCH] show entry author in CDM header, tweak actions a little bit --- backend.php | 10 +++++++++- functions.php | 3 ++- tt-rss.php | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/backend.php b/backend.php index 65d1187a..0cee573e 100644 --- a/backend.php +++ b/backend.php @@ -469,6 +469,12 @@ 100); } + $entry_author = $line["author"]; + + if ($entry_author) { + $entry_author = " - by $entry_author"; + } + if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { print ""; @@ -481,7 +487,7 @@ "; print "$marked_pic"; - + if ($line["feed_title"]) { print "$content_link"; print " @@ -528,6 +534,8 @@ onclick=\"javascript:toggleUnread($id, 0)\" target=\"new\" href=\"".$line["link"]."\">".$line["title"].""; + print $entry_author; + if ($line["feed_title"]) { print " (".$line["feed_title"].")"; } diff --git a/functions.php b/functions.php index 3c131b07..c07f95b2 100644 --- a/functions.php +++ b/functions.php @@ -2317,7 +2317,8 @@ SUBSTRING(last_read,1,19) as last_read_noms, $vfeed_query_part $content_query_part - SUBSTRING(updated,1,19) as updated_noms + SUBSTRING(updated,1,19) as updated_noms, + author FROM ttrss_entries,ttrss_user_entries,ttrss_feeds WHERE diff --git a/tt-rss.php b/tt-rss.php index 5ad9c004..5fea8aa4 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -129,8 +129,8 @@ window.onload = init;