mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 01:25:55 +00:00
properly handle OPEN_LINKS_IN_NEW_WINDOW in CDM
This commit is contained in:
@@ -3182,7 +3182,7 @@
|
||||
|
||||
if ($feed_site_url) {
|
||||
if (!$bottom) {
|
||||
$target = "target=\"_blank\"";
|
||||
$target = "target=\"_new\"";
|
||||
}
|
||||
print "<a $target href=\"$feed_site_url\">$feed_title</a>";
|
||||
} else {
|
||||
@@ -4021,7 +4021,7 @@
|
||||
|
||||
print "<a class=\"title\"
|
||||
onclick=\"javascript:toggleUnread($id, 0)\"
|
||||
target=\"new\" href=\"".$line["link"]."\">".$line["title"]."</a>";
|
||||
target=\"_new\" href=\"".$line["link"]."\">".$line["title"]."</a>";
|
||||
|
||||
print $entry_author;
|
||||
|
||||
@@ -4031,6 +4031,11 @@
|
||||
|
||||
print "</div>";
|
||||
|
||||
if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) {
|
||||
$line["content_preview"] = preg_replace("/href=/i",
|
||||
"target=\"_new\" href=", $line["content_preview"]);
|
||||
}
|
||||
|
||||
print "<div class=\"cdmContent\">" . $line["content_preview"] . "</div><br clear=\"all\">";
|
||||
|
||||
print "<div class=\"cdmFooter\"><span class='s0'>";
|
||||
|
||||
Reference in New Issue
Block a user