From c17aed359c5b3db5792b5c06bd6e933571f1dedc Mon Sep 17 00:00:00 2001 From: buttle Date: Mon, 17 May 2021 20:01:12 +0200 Subject: [PATCH] adds site image to search results --- view/common/cross-site-search/results.phtml | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/view/common/cross-site-search/results.phtml b/view/common/cross-site-search/results.phtml index 7fc2261..24375bf 100644 --- a/view/common/cross-site-search/results.phtml +++ b/view/common/cross-site-search/results.phtml @@ -3,6 +3,28 @@ $fulltextSearch = $this->params()->fromQuery('fulltext_search'); $hasResults = false; ?> +pages(); +// set header images +//$img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getPageImage($page); +$img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage($site); +if ($img_src) { +?> + + + + +

translate('Search results for ā€œ%sā€'), $fulltextSearch); ?>