arteleku_skin/templates/search-results.tpl.php

43 lines
1.3 KiB
PHP
Raw Normal View History

2017-12-15 01:06:00 +01:00
<?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
*/
?>
<?php if ($page['sidebar_right']): ?>
<div id="sidebar-right" class="column sidebar">
<div class="section">
<?php print render($page['sidebar_right']); ?>
</div>
</div> <!-- /.section, /#sidebar -->
<?php endif; ?>
<?php if ($search_results): ?>
<div class="search-results <?php print $module; ?>-results">
<?php print $search_results; ?>
</div>
<?php print $pager; ?>
<?php else : ?>
<h2><?php print t('Your search yielded no results');?></h2>
<?php print search_help('search#noresults', drupal_help_arg()); ?>
<?php endif; ?>