properly handle OPEN_LINKS_IN_NEW_WINDOW in CDM

master
Andrew Dolgov 18 years ago
parent bc976a8cde
commit 3fc2eed58a

@ -3182,7 +3182,7 @@
if ($feed_site_url) { if ($feed_site_url) {
if (!$bottom) { if (!$bottom) {
$target = "target=\"_blank\""; $target = "target=\"_new\"";
} }
print "<a $target href=\"$feed_site_url\">$feed_title</a>"; print "<a $target href=\"$feed_site_url\">$feed_title</a>";
} else { } else {
@ -4021,7 +4021,7 @@
print "<a class=\"title\" print "<a class=\"title\"
onclick=\"javascript:toggleUnread($id, 0)\" onclick=\"javascript:toggleUnread($id, 0)\"
target=\"new\" href=\"".$line["link"]."\">".$line["title"]."</a>"; target=\"_new\" href=\"".$line["link"]."\">".$line["title"]."</a>";
print $entry_author; print $entry_author;
@ -4031,6 +4031,11 @@
print "</div>"; 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=\"cdmContent\">" . $line["content_preview"] . "</div><br clear=\"all\">";
print "<div class=\"cdmFooter\"><span class='s0'>"; print "<div class=\"cdmFooter\"><span class='s0'>";

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

Loading…
Cancel
Save