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
1aaea2d5
Commit
1aaea2d5
authored
Sep 07, 2009
by
Richard Mansfield
Browse files
Rename 'My Tags' sideblock to 'Tags' to avoid confusion with 'My Tags' page
parent
1debfc9b
Changes
5
Show whitespace changes
Inline
Side-by-side
htdocs/lib/mahara.php
View file @
1aaea2d5
...
...
@@ -2086,7 +2086,7 @@ function get_my_tags($limit=null, $cloud=true, $sort='freq') {
return
$tagrecords
;
}
function
my
tags_sideblock
()
{
function
tags_sideblock
()
{
$maxtags
=
20
;
if
(
$tagrecords
=
get_my_tags
(
$maxtags
))
{
return
array
(
'tags'
=>
$tagrecords
);
...
...
htdocs/lib/web.php
View file @
1aaea2d5
...
...
@@ -436,10 +436,10 @@ EOF;
'data'
=>
array
(),
);
$SIDEBLOCKS
[]
=
array
(
'name'
=>
'
my
tags'
,
'id'
=>
'sb-
my
tags'
,
'name'
=>
'tags'
,
'id'
=>
'sb-tags'
,
'weight'
=>
0
,
'data'
=>
my
tags_sideblock
(),
'data'
=>
tags_sideblock
(),
);
}
...
...
htdocs/tags.php
View file @
1aaea2d5
...
...
@@ -185,7 +185,7 @@ addLoadEvent(function() {
mytags_container = getFirstElementByTagAndClassName(null, 'mytags', 'main-column-container');
p = {$data->pagination_js}
forEach(getElementsByTagAndClassName('a', 'tag', mytags_container), function (elem) {rewriteTagLink(elem, [], 'tag')});
forEach(getElementsByTagAndClassName('a', 'tag', 'sb-
my
tags'), function (elem) {rewriteTagLink(elem, [], 'tag')});
forEach(getElementsByTagAndClassName('a', 'tag', 'sb-tags'), function (elem) {rewriteTagLink(elem, [], 'tag')});
forEach(getElementsByTagAndClassName('a', 'tag', 'results'), function (elem) {rewriteTagLink(elem, [], 'tag')});
forEach(getElementsByTagAndClassName('a', null, 'results_sort'), function (elem) {rewriteTagLink(elem, ['tag', 'type'], 'sort')});
forEach(getElementsByTagAndClassName('a', null, 'results_filter'), function (elem) {rewriteTagLink(elem, ['tag', 'sort'], 'type')});
...
...
htdocs/theme/raw/static/style/style.css
View file @
1aaea2d5
...
...
@@ -828,13 +828,14 @@ div.sideblock #friendscontrol label {
font-size
:
1em
;
}
.sidebar-content.
my
tags
{
.sidebar-content.tags
{
text-align
:
center
;
padding
:
0
;
}
.mytags
{
padding
:
.5em
0
;
}
.sidebar-content.tags
.tag
,
.mytags
.tag
{
padding
:
0
5px
;
vertical-align
:
middle
;
...
...
htdocs/theme/raw/templates/sideblocks/
my
tags.tpl
→
htdocs/theme/raw/templates/sideblocks/tags.tpl
View file @
1aaea2d5
<h3>
{
str
tag
=
"
my
tags"
}
</h3>
<div
class=
"sidebar-content
my
tags"
>
<h3>
{
str
tag
=
"tags"
}
</h3>
<div
class=
"sidebar-content tags"
>
{
if
$data.tags
}
{
foreach
from
=
$data.tags
item
=
tag
}
<a
class=
"tag"
style=
"font-size:
{
$tag
->
size
}
em;"
href=
"
{
$WWWROOT
}
tags.php?tag=
{
$tag
->
tag
|
urlencode
}
"
title=
"
{
str
tag
=
numitems
arg1
=
$tag
->
count
}
"
>
{
$tag
->
tag
|
escape
}
</a>
...
...
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