results->getUrlQuery()->isQuerySuppressed() ? '' : $this->params->getDisplayQuery(); $headTitle = $this->slot('head-title') ->get($this->translate('Search Results') . (empty($lookfor) ? '' : " - {$lookfor}")); $this->headTitle($headTitle); // Set up search box: $this->layout()->searchbox = $this->context($this)->renderInContext( 'search/searchbox.phtml', [ 'lookfor' => $lookfor, 'searchIndex' => $this->params->getSearchHandler(), 'searchType' => $this->params->getSearchType(), 'searchId' => $this->results->getSearchId(), 'searchClassId' => $this->params->getSearchClassId(), 'checkboxFilters' => $this->params->getCheckboxFacets(), 'filterList' => $this->params->getFilterList(true), 'hasDefaultsApplied' => $this->params->hasDefaultsApplied(), 'selectedShards' => $this->params->getSelectedShards(), 'ignoreHiddenFiltersInRequest' => $this->ignoreHiddenFiltersInRequest ?? false, 'ignoreHiddenFilterMemory' => $this->ignoreHiddenFilterMemory ?? false, ] ); // Set up breadcrumbs: $this->layout()->breadcrumbs .= '
  • ' . $this->escapeHtml($headTitle) . '
  • '; // Set up search controls (avoiding unnecessary rendering): if (!$this->slot('search-controls')->isset()) { $this->slot('search-controls')->set( $this->render('search/controls/limit.phtml') . ' ' . $this->render('search/controls/sort.phtml') . ' ' . $this->render('search/controls/view.phtml') ); } // Store search id: $this->layout()->searchId = $this->results->getSearchId(); $options = $this->params->getOptions(); $this->render( 'search/results-scripts.phtml', [ 'displayVersions' => !empty($options->getVersionsAction()), 'listViewOption' => $options->getListViewOption(), 'jsResults' => $options->loadResultsWithJsEnabled(), ] ); $recommendations = $this->results->getRecommendations('side'); ?>

    escapeHtml($headTitle)?>

    results->getResultTotal()) > 0): // only display these at very top if we have results ?> results->getRecommendations('top') as $index => $current): ?> recommend($current, 'top', $index)?> flashmessages()?>
    0): ?> results->getOptions()->getTopPaginatorStyle() === 'simple'): ?> paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination_simple.phtml', ['results' => $this->results])?> context()->renderInContext('search/controls/showing.phtml', ['lookfor' => $lookfor, 'recordTotal' => $recordTotal]) ?> component('show-search-sidebar-button')?>

    transEsc('nohit_heading')?>

    0): ?>
    slot('search-controls')?>

    translate('nohit_lookfor_html', ['%%lookfor%%' => $this->escapeHtml($lookfor)]); $emptyMessage = $this->slot('empty-message')->get($default); $this->layout()->srmessage = $emptyMessage; echo $emptyMessage; ?>

    parseError)): ?>

    transEsc('nohit_parse_error')?>

    results->getRecommendations('top')) as $index => $current): ?> recommend($current, 'top', $index)?> results->getRecommendations('noresults') as $index => $current): ?> recommend($current, 'noresults', $index)?> results->getOptions()->getTopPaginatorStyle() === 'full'): ?> paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination-top.phtml', ['results' => $this->results, 'options' => $this->paginationOptions ?? []])?>
    context($this)->renderInContext('search/bulk-action-buttons.phtml', ['idPrefix' => ''])?>
    render('search/results-list.phtml')?> context($this)->renderInContext('search/bulk-action-buttons.phtml', ['idPrefix' => 'bottom_', 'formAttr' => 'search-cart-form'])?> paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', ['results' => $this->results, 'options' => $this->paginationOptions ?? []])?> context($this)->renderInContext('search/controls/results-tools.phtml', ['results' => $this->results])?>
    $current): ?> recommend($current, 'side', $index)?>