mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
feature 1583: replace add_tag.png icon by a simple "+" character in the
"related tags" block. Only keep one link for each tag in the "related tags" block. git-svn-id: http://piwigo.org/svn/trunk@5703 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+16
-18
@@ -112,29 +112,27 @@ function initialize_menu()
|
||||
$block = $menu->get_block('mbTags');
|
||||
if ( $block!=null and 'tags'==@$page['section'] and !empty($page['items']) )
|
||||
{
|
||||
$tags = get_common_tags($page['items'],
|
||||
$conf['menubar_tag_cloud_items_number'], $page['tag_ids']);
|
||||
$tags = get_common_tags(
|
||||
$page['items'],
|
||||
$conf['menubar_tag_cloud_items_number'],
|
||||
$page['tag_ids']
|
||||
);
|
||||
$tags = add_level_to_tags($tags);
|
||||
|
||||
foreach ($tags as $tag)
|
||||
{
|
||||
$block->data[] =
|
||||
array_merge( $tag,
|
||||
array(
|
||||
'URL' => make_index_url(
|
||||
array(
|
||||
'tags' => array($tag)
|
||||
$block->data[] = array_merge(
|
||||
$tag,
|
||||
array(
|
||||
'U_ADD' => make_index_url(
|
||||
array(
|
||||
'tags' => array_merge(
|
||||
$page['tags'],
|
||||
array($tag)
|
||||
)
|
||||
),
|
||||
'U_ADD' => make_index_url(
|
||||
array(
|
||||
'tags' => array_merge(
|
||||
$page['tags'],
|
||||
array($tag)
|
||||
)
|
||||
)
|
||||
),
|
||||
)
|
||||
)
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
$block->template = 'menubar_tags.tpl';
|
||||
|
||||
Reference in New Issue
Block a user