From eb90b545f9987aea58a54aa0a0a3d959b9fe17d7 Mon Sep 17 00:00:00 2001 From: buttle Date: Tue, 1 Jun 2021 12:01:07 +0200 Subject: [PATCH] changes header image height on Collections search results page --- README.md | 1 + asset/js/expand-site-list-item.js | 1 + view/common/cross-site-search/results.phtml | 22 +++++++++------------ 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index dbfe3d6..8ebeeda 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ cd themes https://git.hangar.org/arcHIVE-tech/Arc-hive-omeka-theme/archive/main.zip unzip main.zip mv arc-hive-omeka-theme archive +rm main.zip ``` diff --git a/asset/js/expand-site-list-item.js b/asset/js/expand-site-list-item.js index db45326..e88b903 100644 --- a/asset/js/expand-site-list-item.js +++ b/asset/js/expand-site-list-item.js @@ -2,6 +2,7 @@ $(document).ready(function() { $('._expand_site_item').click(function() { $(this).next('tr').toggle(); + return false; }); }); })(jQuery) diff --git a/view/common/cross-site-search/results.phtml b/view/common/cross-site-search/results.phtml index 39330e8..78d42b1 100644 --- a/view/common/cross-site-search/results.phtml +++ b/view/common/cross-site-search/results.phtml @@ -9,30 +9,26 @@ $hasResults = false; getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage($site); +$img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage($this->site); if (!$img_src) { $img_src = '/themes/archive/asset/img/default-header-image.jpg'; } - +if ($this->site->title() == "Collections") { + $image_height = "300px"; +} else { + $image_height = "200px"; +} ?> -