2021-04-25 09:49:47 +02:00
|
|
|
<?php
|
|
|
|
$translate = $this->plugin('translate');
|
|
|
|
?>
|
|
|
|
<?php $this->htmlElement('body')->appendAttribute('class', 'media resource show'); ?>
|
|
|
|
|
2021-05-31 15:26:34 +02:00
|
|
|
<!-- arc-hive insert begins -->
|
2021-05-22 21:56:48 +02:00
|
|
|
<?php
|
2021-05-31 15:26:34 +02:00
|
|
|
//$site->pages();
|
2021-05-22 21:56:48 +02:00
|
|
|
// set header image
|
|
|
|
$img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage($site);
|
2021-05-31 15:26:34 +02:00
|
|
|
if (!$img_src) {
|
|
|
|
$img_src = '/themes/archive/asset/img/default-header-image.jpg';
|
|
|
|
}
|
2021-05-22 21:56:48 +02:00
|
|
|
?>
|
2021-05-31 15:26:34 +02:00
|
|
|
<style>
|
|
|
|
#archive_header_img {
|
|
|
|
background:url("<?= $img_src ?>") no-repeat;
|
|
|
|
width:100%;
|
|
|
|
height:100px;
|
|
|
|
}
|
|
|
|
</style>
|
2021-05-25 14:13:10 +02:00
|
|
|
|
2021-05-22 21:56:48 +02:00
|
|
|
<script>
|
2021-05-25 14:13:10 +02:00
|
|
|
<?php
|
|
|
|
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 ?>');
|
2021-05-22 21:56:48 +02:00
|
|
|
</script>
|
2021-05-31 15:26:34 +02:00
|
|
|
<!-- arc-hive insert ends -->
|
2021-05-22 21:56:48 +02:00
|
|
|
|
2021-05-25 14:13:10 +02:00
|
|
|
|
2021-04-25 09:49:47 +02:00
|
|
|
<div class="resource-title">
|
|
|
|
<?php echo $this->pageTitle($media->displayTitle(), 2); ?>
|
|
|
|
</div>
|
|
|
|
<?php $this->trigger('view.show.before'); ?>
|
|
|
|
<?php echo $media->render(); ?>
|
|
|
|
<?php echo $media->displayValues(); ?>
|
2021-05-24 18:54:53 +02:00
|
|
|
|
|
|
|
<button onclick="window.history.back()">
|
|
|
|
<h3 class="label">Back</h3>
|
|
|
|
</button>
|
|
|
|
|
2021-04-25 09:49:47 +02:00
|
|
|
<?php $this->trigger('view.show.after'); ?>
|