view 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
line wrap: on
line source

<?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; ?>
 <?php print $pager; ?>
  <h2><?php print t('Search results');?></h2>

  <?php if (isset($digitalobjects_items_select)):?>

  <form method="GET" action="<?php print $digitalobjects_items_select ?>">
  <?php endif;?>
  <table class="items search-results <?php print $module; ?>-results">

    <?php print $search_results; ?>


  </table>
  <?php print $pager; ?>

   <?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>