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
|
https://git.hangar.org/arcHIVE-tech/Arc-hive-omeka-theme/archive/main.zip
|
||||||
unzip main.zip
|
unzip main.zip
|
||||||
mv arc-hive-omeka-theme archive
|
mv arc-hive-omeka-theme archive
|
||||||
|
rm main.zip
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('._expand_site_item').click(function() {
|
$('._expand_site_item').click(function() {
|
||||||
$(this).next('tr').toggle();
|
$(this).next('tr').toggle();
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})(jQuery)
|
})(jQuery)
|
||||||
|
|
|
@ -9,30 +9,26 @@ $hasResults = false;
|
||||||
|
|
||||||
<!-- arc-hive insert begins -->
|
<!-- arc-hive insert begins -->
|
||||||
<?php
|
<?php
|
||||||
$img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage($site);
|
$img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage($this->site);
|
||||||
if (!$img_src) {
|
if (!$img_src) {
|
||||||
$img_src = '/themes/archive/asset/img/default-header-image.jpg';
|
$img_src = '/themes/archive/asset/img/default-header-image.jpg';
|
||||||
}
|
}
|
||||||
|
if ($this->site->title() == "Collections") {
|
||||||
|
$image_height = "300px";
|
||||||
|
} else {
|
||||||
|
$image_height = "200px";
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
#archive_header_img {
|
#archive_header_img {
|
||||||
background: url("<?= $img_src ?>") no-repeat;
|
background: url("<?= $img_src ?>") no-repeat;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height:100px;
|
height: <?= $image_height ?>;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
<?php
|
<?php
|
||||||
$_html = '<a href="'.$this->site->url().'">'.$this->site->title().'</a>';
|
$_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 ?>');
|
$("#archive_page_title").html('<?php echo $_html ?>');
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue