From c5a5bbc07930652473148ecdae90c299934acf20 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 8 Apr 2010 08:49:40 +0000 Subject: feature 1583: (tag navigation ergonomy) in the page title, always display the "remove tag" icon, whatever the number of tags. git-svn-id: http://piwigo.org/svn/trunk@5706 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_html.inc.php | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 5aa512685..3cd429cea 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -411,25 +411,29 @@ function get_tags_content_title() .$page['tags'][$i]['name'] .''; - if ( count($page['tags'])>2 ) + $remove_url = null; + if (count($page['tags']) == 1) + { + $remove_url = get_root_url().'tags.php'; + } + else { $other_tags = $page['tags']; - unset ( $other_tags[$i] ); - $title.= - 'x' - .''; + ); } - + + $title.= + 'x' + .''; } return $title; } -- cgit v1.2.3