123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- ?>
- <?php if (!empty($result_count)) : ?>
- <div class="search-api-page <?php print 'search-api-page-' . $page_machine_name . ' view-mode-' . $variables['view_mode'];?>">
- <?php if ($result_count) : ?>
- <?php print render($spellcheck); ?>
- <?php if ($variables['view_mode'] == 'search_api_page_result') : // Uses child template. ?>
- <?php print render($search_results); ?>
- <?php else : // All other view modes (Teaser, Full content, RSS and so forth). ?>
- <div class="search-results">
- <?php print render(entity_view($index->item_type, $items, $variables['view_mode'])); ?>
- </div>
- <?php endif; ?>
- <?php print $pager; ?>
- <?php else : ?>
- <h2><?php print t('Your search yielded no results.');?></h2>
- <?php endif; ?>
- </div>
- <?php endif; ?>
|