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
880f8273
Commit
880f8273
authored
Jan 10, 2008
by
Clare Lenihan
Committed by
Clare Lenihan
Jan 10, 2008
Browse files
added escaping for group and view names
added logout link
parent
002ecd87
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lang/en.utf8/mahara.php
View file @
880f8273
...
...
@@ -87,6 +87,7 @@ $string['strftimenotspecified'] = 'Not specified';
// profile sideblock strings
$string
[
'invitedgroup'
]
=
'1 group invited to'
;
$string
[
'invitedgroups'
]
=
'%s groups invited to'
;
$string
[
'logout'
]
=
'Logout'
;
$string
[
'pendingfriend'
]
=
'1 pending friend'
;
$string
[
'pendingfriends'
]
=
'%s pending friends'
;
...
...
htdocs/theme/default/templates/sideblocks/profile.tpl
View file @
880f8273
<h3><a
href=
"
{
$WWWROOT
}
user/view.php?id=
{
$data.id
}
"
>
{
$data.id
|
display_name
|
escape
}
</a></h3>
<img
src=
"
{
$WWWROOT
}
thumb.php?type=profileicon&maxsize=50&id=
{
$data.id
}
"
alt=
""
>
<h3><a
style=
"color:white"
href=
"
{
$WWWROOT
}
user/view.php?id=
{
$data.id
}
"
>
{
$data.id
|
display_name
|
escape
}
</a></h3>
<a
href=
"
{
$WWWROOT
}
user/view.php?id=
{
$data.id
}
"
><img
src=
"
{
$WWWROOT
}
thumb.php?type=profileicon&maxsize=50&id=
{
$data.id
}
"
alt=
""
></a>
<a
href=
"
{
$WWWROOT
}
?logout"
>
{
str
tag
=
"logout"
}
</a>
<ul
style=
"color:black"
>
{
if
$data.unreadnotifications
}
<li><a
href=
"
{
$WWWROOT
}
account/activity/"
>
{
$data.unreadnotifications
}
</a></li>
{/
if
}
{
if
$data.invitedgroups
}
<li><a
href=
"
{
$WWWROOT
}
group/mygroups.php?filter=invited"
>
{
$data.invitedgroups
}
</a></li>
{/
if
}
{
if
$data.pendingfriends
}
<li><a
href=
"
{
$WWWROOT
}
user/?filter=2"
>
{
$data.pendingfriends
}
</a></li>
{/
if
}
{
if
$data.groups
}
<li>
<a
href=
"
{
$WWWROOT
}
/
group/mygroups.php?filter=owned"
>
{
str
tag
=
"groupsiown"
}
:
</a>
<a
href=
"
{
$WWWROOT
}
group/mygroups.php?filter=owned"
>
{
str
tag
=
"groupsiown"
}
:
</a>
<ul>
{
foreach
from
=
$data.groups
item
=
group
}
<li><a
href=
"
{
$WWWROOT
}
group/view.php?id=
{
$group
->
id
}
"
>
{
$group
->
name
}
</a></li>
<li><a
href=
"
{
$WWWROOT
}
group/view.php?id=
{
$group
->
id
}
"
>
{
$group
->
name
|
escape
}
</a></li>
{/
foreach
}
</ul>
</li>
...
...
@@ -19,7 +20,7 @@
<a
href=
"
{
$WWWROOT
}
view/"
>
{
str
tag
=
"myviews"
}
:
</a>
<ul>
{
foreach
from
=
$data.views
item
=
view
}
<li><a
href=
"
{
$WWWROOT
}
view/view.php?id=
{
$view
->
id
}
"
>
{
$view
->
title
}
</a></li>
<li><a
href=
"
{
$WWWROOT
}
view/view.php?id=
{
$view
->
id
}
"
>
{
$view
->
title
|
escape
}
</a></li>
{/
foreach
}
</ul>
</li>
...
...
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