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
7641bda7
Commit
7641bda7
authored
May 20, 2009
by
Nigel McNie
Browse files
Escape ampersands in links in the wall
parent
78db3909
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/blocktype/wall/theme/raw/inlineposts.tpl
View file @
7641bda7
...
...
@@ -5,16 +5,16 @@
{
if
$wallposts
}
{
foreach
from
=
$wallposts
item
=
wallpost
}
<div
class=
"wallpost
{
if
$wallpost
->
private
}
private
{/
if
}
"
>
<div
class=
"userinfo"
><img
src=
"
{
$WWWROOT
}
thumb.php?type=profileicon&maxwidth=25&maxheight=25&id=
{
$wallpost
->
from
}
"
alt=
"Profile Icon"
>
<div
class=
"userinfo"
><img
src=
"
{
$WWWROOT
}
thumb.php?type=profileicon&
amp;
maxwidth=25&
amp;
maxheight=25&
amp;
id=
{
$wallpost
->
from
}
"
alt=
"Profile Icon"
>
<div
class=
"userinforight"
><strong><a
href=
"
{
$WWWROOT
}
user/view.php?id=
{
$wallpost
->
userid
|
escape
}
"
>
{
$wallpost
->
displayname
|
escape
}
</a></strong><span
class=
"postedon"
>
-
{
$wallpost
->
postdate
|
format_date
}
</span></div>
</div>
<div
class=
"text"
>
{
$wallpost
->
text
|
parse_bbcode
}
</div>
{*<div class="controls">
{if $ownwall}
[ <a href="{$WWWROOT}blocktype/wall/wall.php?instance={$instanceid}&replyto={$wallpost->id}">{str tag='reply' section='blocktype.wall'}</a> ]
[ <a href="{$WWWROOT}blocktype/wall/wall.php?instance={$instanceid}&
amp;
replyto={$wallpost->id}">{str tag='reply' section='blocktype.wall'}</a> ]
{/if}
{if $ownwall || $wallpost->from == $userid}
[ <a href="{$WWWROOT}blocktype/wall/deletepost.php?instance={$instanceid}&return={if $wholewall}wall{else}profile{/if}">
[ <a href="{$WWWROOT}blocktype/wall/deletepost.php?instance={$instanceid}&
amp;
return={if $wholewall}wall{else}profile{/if}">
{str tag='delete' section='blocktype.wall'}
</a> ]
{/if}
...
...
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