Compare commits
No commits in common. "81dff27d00b96fee292467a146b78fb69e78c467" and "364d45d7fe13b992c128fd48258a502579e69e9b" have entirely different histories.
81dff27d00
...
364d45d7fe
|
@ -93,7 +93,7 @@ endif;
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
</content>
|
</content>
|
||||||
<script>
|
<script>
|
||||||
//$(document).foundation();
|
$(document).foundation();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -7,29 +7,34 @@ $itemMedia = $item->media();
|
||||||
$showLayout = $this->themeSetting('show_layout');
|
$showLayout = $this->themeSetting('show_layout');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- arc-hive page header-image insert begins -->
|
<!-- arc-hive insert begins -->
|
||||||
<?php
|
<?php
|
||||||
$img_src = null;
|
//$site->pages();
|
||||||
|
// set header image
|
||||||
$img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage($site);
|
$img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage($site);
|
||||||
if (!$img_src) {
|
if (!$img_src) {
|
||||||
$img_src = $this->assetUrl('img/ARC-HIVE-logo.svg');
|
$img_src = '/themes/archive/asset/img/default-header-image.jpg';
|
||||||
|
}
|
||||||
|
if ($this->site->title() == "Collections") {
|
||||||
|
$image_height = "300px";
|
||||||
|
} else {
|
||||||
|
$image_height = "200px";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
.arc-page-header-img {
|
#archive_header_img {
|
||||||
content: url("<?= $img_src ?>");
|
background: url("<?= $img_src ?>") no-repeat;
|
||||||
|
width: 100%;
|
||||||
|
height: <?= $image_height ?>;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<?php
|
|
||||||
?>
|
|
||||||
<script>
|
<script>
|
||||||
<?php
|
<?php
|
||||||
$_html = '<a href="'.$this->site->url().'">'.$this->site->title().'</a>';
|
$_html = '<a href="'.$this->site->url().'">'.$this->site->title().'</a>';
|
||||||
?>
|
?>
|
||||||
$("#archive_page_title").html('<?php echo $_html ?>');
|
$("#archive_page_title").html('<?php echo $_html ?>');
|
||||||
</script>
|
</script>
|
||||||
<!-- arc-hive page header-image insert ends -->
|
<!-- arc-hive insert ends -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="resource-title">
|
<div class="resource-title">
|
||||||
|
|
|
@ -3,28 +3,33 @@ $translate = $this->plugin('translate');
|
||||||
?>
|
?>
|
||||||
<?php $this->htmlElement('body')->appendAttribute('class', 'media resource show'); ?>
|
<?php $this->htmlElement('body')->appendAttribute('class', 'media resource show'); ?>
|
||||||
|
|
||||||
<!-- arc-hive page header-image insert begins -->
|
<!-- arc-hive insert begins -->
|
||||||
<?php
|
<?php
|
||||||
$img_src = null;
|
//$site->pages();
|
||||||
$img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage($site);
|
$img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage($site);
|
||||||
if (!$img_src) {
|
if (!$img_src) {
|
||||||
$img_src = $this->assetUrl('img/ARC-HIVE-logo.svg');
|
$img_src = '/themes/archive/asset/img/default-header-image.jpg';
|
||||||
|
}
|
||||||
|
if ($this->site->title() == "Collections") {
|
||||||
|
$image_height = "300px";
|
||||||
|
} else {
|
||||||
|
$image_height = "200px";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
.arc-page-header-img {
|
#archive_header_img {
|
||||||
content: url("<?= $img_src ?>");
|
background: url("<?= $img_src ?>") no-repeat;
|
||||||
|
width: 100%;
|
||||||
|
height: <?= $image_height ?>;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<?php
|
|
||||||
?>
|
|
||||||
<script>
|
<script>
|
||||||
<?php
|
<?php
|
||||||
$_html = '<a href="'.$this->site->url().'">'.$this->site->title().'</a>';
|
$_html = '<a href="'.$this->site->url().'">'.$this->site->title().'</a>';
|
||||||
?>
|
?>
|
||||||
$("#archive_page_title").html('<?php echo $_html ?>');
|
$("#archive_page_title").html('<?php echo $_html ?>');
|
||||||
</script>
|
</script>
|
||||||
<!-- arc-hive page header-image insert ends -->
|
<!-- arc-hive insert ends -->
|
||||||
|
|
||||||
|
|
||||||
<div class="resource-title">
|
<div class="resource-title">
|
||||||
|
|
Loading…
Reference in New Issue