diff solr-search-results.tpl.php @ 0:a2b4f67e73dc default tip

initial
author Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
date Mon, 08 Jun 2015 10:21:54 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/solr-search-results.tpl.php	Mon Jun 08 10:21:54 2015 +0200
@@ -0,0 +1,48 @@
+<?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
+ */
+?>
+<div class="search-output">
+    <?php if ($search_results): ?>
+        <?php print $description; ?>
+        <h2><?php print t('search results for:');  ?></h2>
+        <?php if (isset($digitalobjects_items_select)):?>
+            <form method="GET" action="<?php print $digitalobjects_items_select ?>">
+        <?php endif;?>
+        <div id="toppager"><?php print $pager; ?></div>
+
+        <div class="items search-results <?php print $module; ?>-results">
+            <?php print $search_results; ?>
+        </div>
+
+        <div id="bottompager"><?php print $pager; ?></div>
+
+        <?php if (isset($digitalobjects_items_select)):?>
+            </form>
+        <?php endif;?>
+    <?php else : ?>
+        <h2><?php print t('Your search yielded no results');?></h2>
+        <?php print search_help('search#noresults', drupal_help_arg()); ?>
+    <?php endif; ?>
+</div>