search-results.tpl.php 982 Bytes
Newer Older
1
2
3
4
<?php
// $Id$

/**
5
 * @file
6
7
8
 * Default theme implementation for displaying search results.
 *
 * This template collects each invocation of theme_search_result(). This and
9
 * the child template are dependent to one another sharing the markup for
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 * definition lists.
 *
 * Note that modules may implement their own search type and theme function
 * completely bypassing this template.
 *
 * Available variables:
 * - $search_results: All results as it is rendered through
 *   search-result.tpl.php
 * - $type: The type of search, e.g., "node" or "user".
 *
 *
 * @see template_preprocess_search_results()
 */
?>
24
25
<?php if ($search_results) : ?>
  <h2><?php print t('Search results');?></h2>
26
  <ol class="search-results <?php print $type; ?>-results">
27
    <?php print $search_results; ?>
28
  </ol>
29
30
31
32
33
  <?php print $pager; ?>
<?php else : ?>
  <h2><?php print t('Your search yielded no results');?></h2>
  <?php print search_help('search#noresults', drupal_help_arg()); ?>
<?php endif; ?>