| 1 |
|
<?php |
| 2 |
|
global $base_url; |
| 3 |
|
$extra = $item['extra']; |
| 4 |
|
?> |
| 5 |
|
|
| 6 |
|
<div style="line-height: 20px;"> |
| 7 |
|
<?php if (file_exists(getcwd() .'/'. drupal_get_path('module', 'swish') .'/images/'. strtolower($extra['file_type']). '.png')) : ?> |
| 8 |
|
<img src="<?php print $base_url .'/'. drupal_get_path('module', 'swish'); ?>/images/<?php print strtolower($extra['file_type']); ?>.png" width="15" height="15" style="display: inline"> |
| 9 |
|
<?php endif; ?> |
| 10 |
|
<?php print l($item['title'], $item['link']); ?><br/> |
| 11 |
|
|
| 12 |
|
<?php |
| 13 |
|
if ($item['snippet']) { |
| 14 |
|
print $item['snippet'].'<br />'; |
| 15 |
|
} |
| 16 |
|
?> |
| 17 |
|
|
| 18 |
|
<div> |
| 19 |
|
<small> |
| 20 |
|
Rank: <strong><?php print $extra['rank']; ?></strong> |
| 21 |
|
File Size: <strong><?php print $extra['file_size']; ?></strong> |
| 22 |
|
Containing Node: <strong><?php print l($item['node']->title, 'node/'.$item['node']->nid); ?></strong> |
| 23 |
|
</small> |
| 24 |
|
</div> |
| 25 |
|
</div> |
| 26 |
|
|