Changeset 1537 for trunk/index.php


Ignore:
Timestamp:
Aug 15, 2006, 4:06:06 AM (18 years ago)
Author:
rvelices
Message:

feature 519: quick search (first version)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r1511 r1537  
    199199  }
    200200
     201if ( $page['section']=='search' and $page['start']==0 )
     202{
     203  $tags = get_common_tags($page['items'],
     204      $conf['content_tag_cloud_items_number'], null);
     205  if ( count($tags)>1 )
     206  {
     207    $template->assign_block_vars('related_tags', array() );
     208
     209    $tags = add_level_to_tags($tags);
     210    foreach ($tags as $tag)
     211    {
     212      $template->assign_block_vars(
     213      'related_tags.tag', array(
     214        'URL' => make_index_url(
     215          array(
     216            'tags' => array(
     217              array(
     218                'id' => $tag['tag_id'],
     219                'url_name' => $tag['url_name'],
     220                ),
     221              )
     222            )
     223          ),
     224        'NAME' => $tag['name'],
     225        'TITLE' => sprintf(
     226          l10n('%d pictures are also linked to current tags'),
     227          $tag['counter']
     228          ),
     229        'CLASS' => 'tagLevel'.$tag['level']
     230        )
     231      );
     232    }
     233  }
     234}
     235
    201236//------------------------------------------------------ main part : thumbnails
    202237if (isset($page['thumbnails_include']))
Note: See TracChangeset for help on using the changeset viewer.