mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-08 14:25:02 +02:00
fixes #1179 use standard structure for icons to remove a tag in a combined tags search
use standard structure for icons to remove a tag in a combined tags search The icon displays with 2 tags combined instead of 3 To avoid breaking all themes, we keep the old style by default, but the new style is available. The upgrade to 2.11 documentation will mention it.
This commit is contained in:
@@ -418,7 +418,7 @@ function get_tags_content_title()
|
||||
.trigger_change('render_tag_name', $page['tags'][$i]['name'], $page['tags'][$i])
|
||||
.'</a>';
|
||||
|
||||
if (count($page['tags']) > 2)
|
||||
if (count($page['tags']) > 1)
|
||||
{
|
||||
$other_tags = $page['tags'];
|
||||
unset($other_tags[$i]);
|
||||
@@ -429,11 +429,12 @@ function get_tags_content_title()
|
||||
);
|
||||
|
||||
$title.=
|
||||
'<a href="'.$remove_url.'" style="border:none;" title="'
|
||||
'<a id="TagsGroupRemoveTag" 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;">'
|
||||
.'" alt="x" style="vertical-align:bottom;" >'
|
||||
.'<span class="pwg-icon pwg-icon-close" ></span>'
|
||||
.'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -792,3 +792,8 @@ LEGEND {
|
||||
.selectize-dropdown [data-selectable], .selectize-dropdown .optgroup-header {
|
||||
padding: 0px 5px !important;
|
||||
}
|
||||
|
||||
|
||||
#TagsGroupRemoveTag span{
|
||||
display:none;
|
||||
}
|
||||
Reference in New Issue
Block a user