Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
7d7aaae0
Commit
7d7aaae0
authored
Feb 11, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
Feb 11, 2015
Browse files
Merge "Setting RSS Feeds to open in New Window/Tab Bug792670"
parents
0fab8251
e1639487
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/blocktype/externalfeed/lib.php
View file @
7d7aaae0
...
...
@@ -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>"
;
}
}
...
...
htdocs/theme/raw/blocktype/externalfeed/templates/feed.tpl
View file @
7d7aaae0
<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"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment