makes Collection's pages header image bigger

This commit is contained in:
buttle 2021-05-31 18:10:36 +02:00
parent 3bb4f476d1
commit 4db72f48cb
3 changed files with 27 additions and 27 deletions

View File

@ -15,21 +15,22 @@ $img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage
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
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>

View File

@ -10,21 +10,22 @@ $img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage
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
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>

View File

@ -12,24 +12,22 @@ $img_src = $this->getHelperPluginManager()->get('headerImage')->getImage($page);
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>