aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2012-10-16 19:58:12 +0000
committerrvelices <rv-github@modusoptimus.com>2012-10-16 19:58:12 +0000
commitaace3770aec92cb2b9102c4af9ce003936bc356d (patch)
treeaf44d267539015d01bb7b6680104595c0f8ece74 /include/functions_html.inc.php
parentd283bd51289b852eaa96c4ff94bc1cd92e8bd6c8 (diff)
- improved page title when viewing tags, fix canonical url on index page if the webmaster changes the default number of thumbnails per page
git-svn-id: http://piwigo.org/svn/trunk@18667 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_html.inc.php')
-rw-r--r--include/functions_html.inc.php28
1 files changed, 12 insertions, 16 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index 765021dd0..531df5287 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -434,8 +434,9 @@ $btrace_msg
function get_tags_content_title()
{
global $page;
- $title = count($page['tags']) > 1 ? l10n('Tag') : l10n('Tag');
- $title.= ' ';
+ $title = '<a href="'.get_root_url().'tags.php" title="'.l10n('display available tags').'">'
+ . l10n( count($page['tags']) > 1 ? 'Tags' : 'Tag' )
+ . '</a> ';
for ($i=0; $i<count($page['tags']); $i++)
{
@@ -454,12 +455,7 @@ function get_tags_content_title()
.trigger_event('render_tag_name', $page['tags'][$i]['name'])
.'</a>';
- $remove_url = null;
- if (count($page['tags']) == 1)
- {
- $remove_url = get_root_url().'tags.php';
- }
- else
+ if (count($page['tags']) > 2)
{
$other_tags = $page['tags'];
unset($other_tags[$i]);
@@ -468,15 +464,15 @@ function get_tags_content_title()
'tags' => $other_tags
)
);
- }
- $title.=
- '<a href="'.$remove_url.'" style="border:none;" title="'
- .l10n('remove this tag from the list')
- .'"><img src="'
- .get_root_url().get_themeconf('icon_dir').'/remove_s.png'
- .'" alt="x" style="vertical-align:bottom;">'
- .'</a>';
+ $title.=
+ '<a href="'.$remove_url.'" style="border:none;" title="'
+ .l10n('remove this tag from the list')
+ .'"><img src="'
+ .get_root_url().get_themeconf('icon_dir').'/remove_s.png'
+ .'" alt="x" style="vertical-align:bottom;">'
+ .'</a>';
+ }
}
return $title;
}