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) { 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
if ($this->site->title() != "Collections") { $_html = '<a href="'.$this->site->url().'">'.$this->site->title().'</a>';
$_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>
@ -96,7 +97,7 @@ $("#archive_page_title").html('<?php echo $_html ?>');
<?php endif; ?> <?php endif; ?>
<?php $this->trigger('view.show.after'); ?> <?php $this->trigger('view.show.after'); ?>
<button class="end_of_page_button" onclick="window.history.back()"> <button class="end_of_page_button" onclick="window.history.back()">
Back Back
</button> </button>

View File

@ -10,21 +10,22 @@ $img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage
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
if ($this->site->title() != "Collections") { $_html = '<a href="'.$this->site->url().'">'.$this->site->title().'</a>';
$_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>

View File

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