changes header image height on Collections search results page

This commit is contained in:
buttle 2021-06-01 12:01:07 +02:00
parent 4db72f48cb
commit eb90b545f9
3 changed files with 11 additions and 13 deletions

View File

@ -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
```

View File

@ -2,6 +2,7 @@
$(document).ready(function() {
$('._expand_site_item').click(function() {
$(this).next('tr').toggle();
return false;
});
});
})(jQuery)

View File

@ -9,30 +9,26 @@ $hasResults = false;
<!-- arc-hive insert begins -->
<?php
$img_src = $this->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";
}
?>
<style>
#archive_header_img {
background:url("<?= $img_src ?>") no-repeat;
width:100%;
height:100px;
background: url("<?= $img_src ?>") no-repeat;
width: 100%;
height: <?= $image_height ?>;
}
</style>
<script>
<?php
$_html = '<a href="'.$this->site->url().'">'.$this->site->title().'</a>';
/*
if ($this->site->title() != "Collections") {
$_html = '<a href="'.$this->site->url().'">'.$this->site->title().'</a>';
} else {
$_html = $this->site->title();
}
*/
?>
$("#archive_page_title").html('<?php echo $_html ?>');
</script>