2021-04-25 09:49:47 +02:00
|
|
|
<?php
|
|
|
|
$translate = $this->plugin('translate');
|
|
|
|
?>
|
|
|
|
<?php $this->htmlElement('body')->appendAttribute('class', 'media resource show'); ?>
|
|
|
|
|
2021-05-22 21:56:48 +02:00
|
|
|
<?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 } ?>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$("#archive_page_title").html('<?= $site->title(); ?>');
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
2021-04-25 09:49:47 +02:00
|
|
|
<div class="resource-title">
|
|
|
|
<?php echo $this->pageTitle($media->displayTitle(), 2); ?>
|
2021-05-24 18:13:23 +02:00
|
|
|
<!-- <h3 class="label"><?php echo $translate('Media'); ?></h3> -->
|
2021-04-25 09:49:47 +02:00
|
|
|
</div>
|
|
|
|
<?php $this->trigger('view.show.before'); ?>
|
|
|
|
<?php echo $media->render(); ?>
|
|
|
|
<?php echo $media->displayValues(); ?>
|
|
|
|
<?php $this->trigger('view.show.after'); ?>
|