/[drupal]/contributions/modules/swish/swish.theme.inc
ViewVC logotype

Diff of /contributions/modules/swish/swish.theme.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.1, Fri Mar 7 17:10:23 2008 UTC revision 1.1.2.2, Fri Mar 7 19:03:36 2008 UTC
# Line 9  function theme_swish_search_item($item){ Line 9  function theme_swish_search_item($item){
9    $extra = $item['extra'];    $extra = $item['extra'];
10    
11    $output = '<div style="line-height: 20px;"><img src="'.$base_url.'/modules/swish/images/'. strtolower($extra['file_type'])    $output = '<div style="line-height: 20px;"><img src="'.$base_url.'/modules/swish/images/'. strtolower($extra['file_type'])
12      .'.png" width="15" height="15" style="display: inline">&nbsp;<a title="View this '      .'.png" width="15" height="15" style="display: inline">&nbsp;' . l($item['title'], $item['link']) . '<br/>';
     . strtoupper($extra['file_type']) .' file." href="'. $item['link'] .'">'. $item['title'] .' </a><br/>';  
13    
14    if ($item['snippet']) {    if ($item['snippet']) {
15      $output .= $item['snippet'].'<br />';      $output .= $item['snippet'].'<br />';
16    }    }
17    
18    $output .= '<small>Rank: <strong>'. $extra['rank'] .'</strong>&nbsp;&nbsp;&nbsp;File Size: <strong>'    $output .= '<small>Rank: <strong>'. $extra['rank'] .'</strong>&nbsp;&nbsp;&nbsp;File Size: <strong>'
19      .$extra['file_size'] .'</strong></small><br/></div>';      .$extra['file_size'] .'</strong>&nbsp;&nbsp;&nbsp;Containing Node: <strong>' . l($item['node']->title, 'node/'.$item['node']->nid) . '</strong></small><br/></div>';
20    
21    return $output;    return $output;
22  }  }

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

  ViewVC Help
Powered by ViewVC 1.1.2