From: Andrew Dolgov Date: Fri, 10 Aug 2007 03:18:32 +0000 (+0100) Subject: properly handle OPEN_LINKS_IN_NEW_WINDOW in CDM X-Git-Tag: 1.2.14~104 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3fc2eed58aae30c2478e9314fbae398e8ceb8883;p=tt-rss.git properly handle OPEN_LINKS_IN_NEW_WINDOW in CDM --- diff --git a/functions.php b/functions.php index 5515781a..da48affa 100644 --- a/functions.php +++ b/functions.php @@ -3182,7 +3182,7 @@ if ($feed_site_url) { if (!$bottom) { - $target = "target=\"_blank\""; + $target = "target=\"_new\""; } print "$feed_title"; } else { @@ -4021,7 +4021,7 @@ print "".$line["title"].""; + target=\"_new\" href=\"".$line["link"]."\">".$line["title"].""; print $entry_author; @@ -4031,6 +4031,11 @@ print ""; + if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) { + $line["content_preview"] = preg_replace("/href=/i", + "target=\"_new\" href=", $line["content_preview"]); + } + print "
" . $line["content_preview"] . "

"; print "
"; diff --git a/tt-rss.css b/tt-rss.css index 2f56d8d2..1a8d1654 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -871,7 +871,7 @@ div.cdmArticle { border-color : #a0a0a0; border-width : 0px 0px 1px 0px; border-style : solid; - background-color : #fafafa; + /* background-color : #fafafa; */ margin : 0px; color : #505050; /* padding : 10px; */ @@ -1638,3 +1638,9 @@ li.feedCatHolder { table.prefFeedCatList { background-color : white; } + +a[target="_new"], a[target="_blank"] { + border-width : 0px 0px 1px 0px; + border-color : #778899; + border-style : dotted; +}