/[drupal]/contributions/modules/swish/swish_search_item.tpl.php
ViewVC logotype

Diff of /contributions/modules/swish/swish_search_item.tpl.php

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

revision 1.1, Fri Mar 7 22:31:52 2008 UTC revision 1.1.2.1, Fri Mar 7 22:31:52 2008 UTC
# Line 0  Line 1 
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">&nbsp;
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    &nbsp;&nbsp;&nbsp;File Size: <strong><?php print $extra['file_size']; ?></strong>
22    &nbsp;&nbsp;&nbsp;Containing Node: <strong><?php print l($item['node']->title, 'node/'.$item['node']->nid); ?></strong>
23    </small>
24    </div>
25    </div>
26    

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

  ViewVC Help
Powered by ViewVC 1.1.2