Commit e1639487 authored by Peter Hough's avatar Peter Hough
Browse files

Setting RSS Feeds to open in New Window/Tab Bug792670

Change-Id: Iba8140a1a5a642bf1821be7e74219642f25fa881
parent 6750fd37
......@@ -505,7 +505,7 @@ class PluginBlocktypeExternalfeed extends SystemBlocktype {
if (!empty($image['link'])) {
$link = sanitize_url($image['link']);
if ($link) {
$result = "<a href=\"{$link}\">{$result}</a>";
$result = "<a href=\"{$link}\" target=\"_blank\">{$result}</a>";
}
}
......
<div id="blocktype_externalfeed_feed">
{if $feedimage}<div class="feedlogoimage">{$feedimage|safe}</div>{/if}
<div id="blocktype_externalfeed_title">
<a href="{$url}"><img src="{theme_url filename="images/feed.png"}"></a>
{if $link}<a href="{$link}">{/if}
<a href="{$url}" target="_blank"><img src="{theme_url filename="images/feed.png"}"></a>
{if $link}<a href="{$link}" target="_blank">{/if}
{$title}
{if $link}</a>{/if}
</div>
......@@ -11,7 +11,7 @@
{if $full}
{foreach from=$entries item=entry}
<h3 class="title">
{if $entry->link}<a href="{$entry->link}">{/if}
{if $entry->link}<a href="{$entry->link}" target="_blank">{/if}
{$entry->title}
{if $entry->link}</a>{/if}
</h3>
......@@ -24,7 +24,7 @@
<ol>
{foreach from=$entries item=entry}
<li>
{if $entry->link}<a href="{$entry->link}">{/if}
{if $entry->link}<a href="{$entry->link}" target="_blank">{/if}
{$entry->title}
{if $entry->link}</a>{/if}<br />
<span class="postdetails">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment