Ignore:
Timestamp:
Apr 8, 2010, 10:26:34 AM (14 years ago)
Author:
plg
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/menubar.inc.php

    r5293 r5703  
    113113  if ( $block!=null and 'tags'==@$page['section'] and !empty($page['items']) )
    114114  {
    115     $tags = get_common_tags($page['items'],
    116           $conf['menubar_tag_cloud_items_number'], $page['tag_ids']);
     115    $tags = get_common_tags(
     116      $page['items'],
     117      $conf['menubar_tag_cloud_items_number'],
     118      $page['tag_ids']
     119      );
    117120    $tags = add_level_to_tags($tags);
    118121
    119122    foreach ($tags as $tag)
    120123    {
    121       $block->data[] =
    122         array_merge( $tag,
    123           array(
    124             'URL' => make_index_url(
    125               array(
    126                 'tags' => array($tag)
     124      $block->data[] = array_merge(
     125        $tag,
     126        array(
     127          'U_ADD' => make_index_url(
     128            array(
     129              'tags' => array_merge(
     130                $page['tags'],
     131                array($tag)
    127132                )
    128               ),
    129             'U_ADD' => make_index_url(
    130                   array(
    131                     'tags' => array_merge(
    132                       $page['tags'],
    133                       array($tag)
    134                       )
    135                     )
    136                   ),
    137             )
     133              )
     134            ),
     135          )
    138136        );
    139137    }
Note: See TracChangeset for help on using the changeset viewer.