comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:a3750d724105
1 <?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 <div class="box">
27
28 <?php if ($search_results): ?>
29 <?php print $description; ?>
30
31 <h2><?php print t('Search results');?></h2>
32
33 <?php if (isset($digitalobjects_items_select)):?>
34
35 <form method="GET" action="<?php print $digitalobjects_items_select ?>">
36 <?php endif;?>
37 <div id="toppager"><?php print $pager; ?></div>
38
39 <table class="items search-results <?php print $module; ?>-results">
40 <?php print $search_results; ?>
41 </table>
42 <div id="bottompager"><?php print $pager; ?></div>
43
44 <?php if (isset($digitalobjects_items_select)):?>
45 </form>
46 <?php endif;?>
47 <?php else : ?>
48 <h2><?php print t('Your search yielded no results');?></h2>
49 <?php print search_help('search#noresults', drupal_help_arg()); ?>
50 <?php endif; ?>
51 </div>