summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/search/search-results.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/search/search-results.tpl.php')
-rw-r--r--kolab.org/www/drupal-7.26/modules/search/search-results.tpl.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/search/search-results.tpl.php b/kolab.org/www/drupal-7.26/modules/search/search-results.tpl.php
new file mode 100644
index 0000000..aa9bf8d
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/search/search-results.tpl.php
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Default theme implementation for displaying search results.
+ *
+ * This template collects each invocation of theme_search_result(). This and
+ * the child template are dependent to one another sharing the markup for
+ * 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
+ * - $module: The machine-readable name of the module (tab) being searched, such
+ * as "node" or "user".
+ *
+ *
+ * @see template_preprocess_search_results()
+ *
+ * @ingroup themeable
+ */
+?>
+<?php if ($search_results): ?>
+ <h2><?php print t('Search results');?></h2>
+ <ol class="search-results <?php print $module; ?>-results">
+ <?php print $search_results; ?>
+ </ol>
+ <?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; ?>