Projet

Général

Profil

Paste
Télécharger (1,03 ko) Statistiques
| Branche: | Révision:

root / drupal7 / modules / search / search-results.tpl.php @ bd0d4c5c

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