diff --git a/themes/fid_bbi/templates/search/advanced-search-info.phtml b/themes/fid_bbi/templates/search/advanced-search-info.phtml index a021b153178d9e06958d2d8a6483c68501ec58cf..bdfe5acbb9894feba62810db83b46ec8c05bae42 100644 --- a/themes/fid_bbi/templates/search/advanced-search-info.phtml +++ b/themes/fid_bbi/templates/search/advanced-search-info.phtml @@ -1,7 +1,7 @@ <!-- fid_bbi - templates - search - advanced-search-info --> <?php // Following section adaption from themes/finc/templates/search/results.phtml -$searchType = $this->params->getSearchType(); + $searchId = $this->results->getSearchId(); $searchClassId = $this->params->getSearchClassId(); $lookfor = $this->results->getUrlQuery()->isQuerySuppressed() ? '' : $this->params->getDisplayQuery(); @@ -18,7 +18,6 @@ $options = $this->searchOptions($this->searchClassId); $advSearch = $options->getAdvancedSearchAction(); ?> -<?php if ($searchType == 'advanced'): ?> <div class="results_advanced-search-info"> <?=$this->icon('small/magnifier')?> @@ -35,5 +34,5 @@ $advSearch = $options->getAdvancedSearchAction(); </a> </p> </div> -<?php endif; ?> + <!-- fid_bbi - templates - search - advanced-search-info - END --> diff --git a/themes/fid_bbi/templates/search/results.phtml b/themes/fid_bbi/templates/search/results.phtml index 17aa1814e7800a3cc2146d04cc4e8bedb2a765e1..d765ab96a224caa32616a50ca2bfa3c5baa03111 100644 --- a/themes/fid_bbi/templates/search/results.phtml +++ b/themes/fid_bbi/templates/search/results.phtml @@ -64,8 +64,9 @@ $this->headScript()->appendFile("check_save_statuses.js"); <?=$this->flashmessages()?> <div class="results_header"> - <?=$this->render('search/advanced-search-info.phtml');?> - + <?php if ($this->params->getSearchType() === 'advanced'):?> + <?=$this->render('search/advanced-search-info.phtml');?> + <?php endif; ?> <div class="results_count"> <?=$this->translate('%%count%% results', ['%%count%%' => $this->localizedNumber($recordTotal)])?> </div>