changes header image height on Collections search results page
This commit is contained in:
parent
4db72f48cb
commit
eb90b545f9
|
@ -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
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
$(document).ready(function() {
|
||||
$('._expand_site_item').click(function() {
|
||||
$(this).next('tr').toggle();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
})(jQuery)
|
||||
|
|
|
@ -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;
|
||||
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>
|
||||
|
|
Loading…
Reference in New Issue