1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-07 12:52:04 +00:00

new option: OPEN_LINKS_IN_NEW_WINDOW (closes #47)

This commit is contained in:
Andrew Dolgov
2006-03-06 05:45:54 +01:00
parent e8ef3b9715
commit 68511f86ac
6 changed files with 13 additions and 1 deletions

View File

@@ -1040,6 +1040,10 @@
print "<div id=\"allEntryTags\">Tags: $f_tags_str</div>";
}
if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) {
$line["content"] = preg_replace("/href=/i", "target=\"_new\" href=", $line["content"]);
}
print $line["content"] . "</div>";
print "</div>";