From: Andrew Dolgov Date: Fri, 7 Jul 2006 03:56:47 +0000 (+0100) Subject: make OPEN_LINKS_IN_NEW_WINDOW behaviour more universel (closes #79) X-Git-Tag: 1.2.1~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c1826240cd3952a57dda927444eacefed659873f;p=tt-rss.git make OPEN_LINKS_IN_NEW_WINDOW behaviour more universel (closes #79) --- diff --git a/backend.php b/backend.php index d78d5cd2..da317cc4 100644 --- a/backend.php +++ b/backend.php @@ -565,6 +565,12 @@ if ($result) { + $link_target = ""; + + if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) { + $link_target = "target=\"_new\""; + } + $line = db_fetch_assoc($result); if ($line["icon_url"]) { @@ -588,10 +594,10 @@ } else { $comments_url = $line["link"]; } - $entry_comments = "$num_comments comments"; + $entry_comments = "$num_comments comments"; } else { if ($line["comments"] && $line["link"] != $line["comments"]) { - $entry_comments = "comments"; + $entry_comments = "comments"; } } @@ -604,8 +610,8 @@ if ($entry_author) { $entry_author = " - by $entry_author"; } - - print "" . $line["title"] . + + print "" . $line["title"] . "$entry_author"; $parsed_updated = date(get_pref($link, 'LONG_DATE_FORMAT'),