annotate sites/all/modules/custom/solrsearch/solr-search-results.tpl.php @ 0:015d06b10d37 default tip

initial
author dwinter
date Wed, 31 Jul 2013 13:49:13 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
015d06b10d37 initial
dwinter
parents:
diff changeset
1 <?php
015d06b10d37 initial
dwinter
parents:
diff changeset
2
015d06b10d37 initial
dwinter
parents:
diff changeset
3 /**
015d06b10d37 initial
dwinter
parents:
diff changeset
4 * @file
015d06b10d37 initial
dwinter
parents:
diff changeset
5 * Default theme implementation for displaying search results.
015d06b10d37 initial
dwinter
parents:
diff changeset
6 *
015d06b10d37 initial
dwinter
parents:
diff changeset
7 * This template collects each invocation of theme_search_result(). This and
015d06b10d37 initial
dwinter
parents:
diff changeset
8 * the child template are dependent to one another sharing the markup for
015d06b10d37 initial
dwinter
parents:
diff changeset
9 * definition lists.
015d06b10d37 initial
dwinter
parents:
diff changeset
10 *
015d06b10d37 initial
dwinter
parents:
diff changeset
11 * Note that modules may implement their own search type and theme function
015d06b10d37 initial
dwinter
parents:
diff changeset
12 * completely bypassing this template.
015d06b10d37 initial
dwinter
parents:
diff changeset
13 *
015d06b10d37 initial
dwinter
parents:
diff changeset
14 * Available variables:
015d06b10d37 initial
dwinter
parents:
diff changeset
15 * - $search_results: All results as it is rendered through
015d06b10d37 initial
dwinter
parents:
diff changeset
16 * search-result.tpl.php
015d06b10d37 initial
dwinter
parents:
diff changeset
17 * - $module: The machine-readable name of the module (tab) being searched, such
015d06b10d37 initial
dwinter
parents:
diff changeset
18 * as "node" or "user".
015d06b10d37 initial
dwinter
parents:
diff changeset
19 *
015d06b10d37 initial
dwinter
parents:
diff changeset
20 *
015d06b10d37 initial
dwinter
parents:
diff changeset
21 * @see template_preprocess_search_results()
015d06b10d37 initial
dwinter
parents:
diff changeset
22 *
015d06b10d37 initial
dwinter
parents:
diff changeset
23 * @ingroup themeable
015d06b10d37 initial
dwinter
parents:
diff changeset
24 */
015d06b10d37 initial
dwinter
parents:
diff changeset
25 ?>
015d06b10d37 initial
dwinter
parents:
diff changeset
26 <div class="box">
015d06b10d37 initial
dwinter
parents:
diff changeset
27
015d06b10d37 initial
dwinter
parents:
diff changeset
28 <?php if ($search_results): ?>
015d06b10d37 initial
dwinter
parents:
diff changeset
29 <?php print $description; ?>
015d06b10d37 initial
dwinter
parents:
diff changeset
30 <?php print $pager; ?>
015d06b10d37 initial
dwinter
parents:
diff changeset
31 <h2><?php print t('Search results');?></h2>
015d06b10d37 initial
dwinter
parents:
diff changeset
32
015d06b10d37 initial
dwinter
parents:
diff changeset
33 <?php if (isset($digitalobjects_items_select)):?>
015d06b10d37 initial
dwinter
parents:
diff changeset
34
015d06b10d37 initial
dwinter
parents:
diff changeset
35 <form method="GET" action="<?php print $digitalobjects_items_select ?>">
015d06b10d37 initial
dwinter
parents:
diff changeset
36 <?php endif;?>
015d06b10d37 initial
dwinter
parents:
diff changeset
37 <table class="items search-results <?php print $module; ?>-results">
015d06b10d37 initial
dwinter
parents:
diff changeset
38
015d06b10d37 initial
dwinter
parents:
diff changeset
39 <?php print $search_results; ?>
015d06b10d37 initial
dwinter
parents:
diff changeset
40
015d06b10d37 initial
dwinter
parents:
diff changeset
41
015d06b10d37 initial
dwinter
parents:
diff changeset
42 </table>
015d06b10d37 initial
dwinter
parents:
diff changeset
43 <?php print $pager; ?>
015d06b10d37 initial
dwinter
parents:
diff changeset
44
015d06b10d37 initial
dwinter
parents:
diff changeset
45 <?php if (isset($digitalobjects_items_select)):?>
015d06b10d37 initial
dwinter
parents:
diff changeset
46 </form>
015d06b10d37 initial
dwinter
parents:
diff changeset
47 <?php endif;?>
015d06b10d37 initial
dwinter
parents:
diff changeset
48 <?php else : ?>
015d06b10d37 initial
dwinter
parents:
diff changeset
49 <h2><?php print t('Your search yielded no results');?></h2>
015d06b10d37 initial
dwinter
parents:
diff changeset
50 <?php print search_help('search#noresults', drupal_help_arg()); ?>
015d06b10d37 initial
dwinter
parents:
diff changeset
51 <?php endif; ?>
015d06b10d37 initial
dwinter
parents:
diff changeset
52 </div>