| 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"> <a title="View this ' |
.'.png" width="15" height="15" style="display: inline"> ' . 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> File Size: <strong>' |
$output .= '<small>Rank: <strong>'. $extra['rank'] .'</strong> File Size: <strong>' |
| 19 |
.$extra['file_size'] .'</strong></small><br/></div>'; |
.$extra['file_size'] .'</strong> Containing Node: <strong>' . l($item['node']->title, 'node/'.$item['node']->nid) . '</strong></small><br/></div>'; |
| 20 |
|
|
| 21 |
return $output; |
return $output; |
| 22 |
} |
} |