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) {
|
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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue