diff templates/solr-search-results.tpl.php~ @ 0:a3750d724105 default tip

initital
author Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
date Tue, 02 Jun 2015 09:16:36 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/solr-search-results.tpl.php~	Tue Jun 02 09:16:36 2015 +0200
@@ -0,0 +1,51 @@
+<?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="box">
+
+<?php if ($search_results): ?>
+<?php print $description; ?>
+
+  <h2><?php print t('Search results');?></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>
+
+  <table class="items search-results <?php print $module; ?>-results">
+    <?php print $search_results; ?>
+  </table>
+  <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>