summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-10 04:18:32 +0100
committerAndrew Dolgov <[email protected]>2007-08-10 04:18:32 +0100
commit3fc2eed58aae30c2478e9314fbae398e8ceb8883 (patch)
treed6e815e6d0917baed51c20cc2db4bb9379e5f6ec /functions.php
parentbc976a8cde7a18a2997e36ecfc6e0b046923e446 (diff)
properly handle OPEN_LINKS_IN_NEW_WINDOW in CDM
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index 5515781a8..da48affaa 100644
--- a/functions.php
+++ b/functions.php
@@ -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'>";