makes Collection's pages header image bigger
This commit is contained in:
parent
3bb4f476d1
commit
4db72f48cb
|
@ -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;
|
||||
background: url("<?= $img_src ?>") no-repeat;
|
||||
width: 100%;
|
||||
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();
|
||||
}
|
||||
$_html = '<a href="'.$this->site->url().'">'.$this->site->title().'</a>';
|
||||
?>
|
||||
$("#archive_page_title").html('<?php echo $_html ?>');
|
||||
</script>
|
||||
|
|
|
@ -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;
|
||||
background: url("<?= $img_src ?>") no-repeat;
|
||||
width: 100%;
|
||||
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();
|
||||
}
|
||||
$_html = '<a href="'.$this->site->url().'">'.$this->site->title().'</a>';
|
||||
?>
|
||||
$("#archive_page_title").html('<?php echo $_html ?>');
|
||||
</script>
|
||||
|
|
|
@ -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;
|
||||
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>
|
||||
|
|
Loading…
Reference in New Issue