diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index d4395587f..e2ce845cf 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -409,27 +409,6 @@ function get_tags_content_title() . l10n( count($page['tags']) > 1 ? 'Tags' : 'Tag' ) . ' '; - for ($i=0; $i' - .trigger_change('render_tag_name', $page['tags'][$i]['name'], $page['tags'][$i]) - .''; - } - } - - return $title; } diff --git a/include/selected_tags.inc.php b/include/selected_tags.inc.php index 2b81853aa..f3fb6dbcd 100644 --- a/include/selected_tags.inc.php +++ b/include/selected_tags.inc.php @@ -9,29 +9,26 @@ global $page; $selected_related_tags_info = array(); -if (count($page['tags']) > 1) +foreach ($page['tags'] as $key=>$tag) { - foreach ($page['tags'] as $key=>$tag) - { - $other_tags = $page['tags']; - unset($other_tags[$key]); + $other_tags = $page['tags']; + unset($other_tags[$key]); - $selected_related_tags_info[$key] = - array( - 'tag_name' => trigger_change('render_tag_name', $page['tags'][$key]['name'], $page['tags'][$key]), - 'item_count' => '', - 'index_url' => make_index_url( - array( - 'tags' => array( $page['tags'][$key] ) - ) - ), - 'remove_url' => make_index_url( - array( - 'tags' => $other_tags - ) + $selected_related_tags_info[$key] = + array( + 'tag_name' => trigger_change('render_tag_name', $page['tags'][$key]['name'], $page['tags'][$key]), + 'item_count' => '', + 'index_url' => make_index_url( + array( + 'tags' => array( $page['tags'][$key] ) ) - ); - } + ), + 'remove_url' => make_index_url( + array( + 'tags' => $other_tags + ) + ) + ); } $template->assign( diff --git a/themes/default/template/include/selected_tags.inc.tpl b/themes/default/template/include/selected_tags.inc.tpl index d6708b135..624c8e77b 100644 --- a/themes/default/template/include/selected_tags.inc.tpl +++ b/themes/default/template/include/selected_tags.inc.tpl @@ -1,15 +1,16 @@ {foreach $SELECT_RELATED_TAGS as $TAG} - + {$TAG.tag_name} + {if count($SELECT_RELATED_TAGS) > 1} + {/if} -{* {if !$TAG@last}+{/if} *} {/foreach} diff --git a/themes/default/theme.css b/themes/default/theme.css index 204b0e26f..bbe68d8ac 100644 --- a/themes/default/theme.css +++ b/themes/default/theme.css @@ -968,6 +968,10 @@ span.related-tags .tag-counter{ margin-right:15px; } +#selected-tags-container .selected-related-tag.unique-tag{ + padding:2px 10px; +} + #selected-tags-container .selected-related-tag a{ font-weight: 700; font-style: Bold;