adds image header to item page
This commit is contained in:
parent
136e495aee
commit
18e68ce308
|
@ -7,6 +7,28 @@ $itemMedia = $item->media();
|
|||
$showLayout = $this->themeSetting('show_layout');
|
||||
?>
|
||||
|
||||
<?php
|
||||
$site->pages();
|
||||
// set header image
|
||||
$img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage($site);
|
||||
if ($img_src) {
|
||||
?>
|
||||
<style>
|
||||
#archive_header_img {
|
||||
background:url("<?= $img_src ?>") no-repeat;
|
||||
width:100%;
|
||||
height:100px;
|
||||
}
|
||||
</style>
|
||||
<?php } else { ?>
|
||||
<style>
|
||||
#archive_header_img {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div class="resource-title">
|
||||
<?php echo $this->pageTitle($item->displayTitle(), 2); ?>
|
||||
<h3 class="label"><?php echo $translate('Item'); ?></h3>
|
||||
|
|
Loading…
Reference in New Issue