2021-04-25 09:49:47 +02:00
|
|
|
<?php
|
|
|
|
$this->htmlElement('body')->appendAttribute('class', 'page ' . $page->slug());
|
|
|
|
$this->pageTitle($page->title(), 2);
|
|
|
|
$showPagePagination = $this->siteSetting('show_page_pagination', true);
|
|
|
|
?>
|
|
|
|
|
2021-04-25 22:12:03 +02:00
|
|
|
|
2021-05-31 15:17:12 +02:00
|
|
|
<!-- arc-hive insert begins -->
|
2021-04-26 12:37:54 +02:00
|
|
|
<?php
|
2021-05-31 15:26:34 +02:00
|
|
|
//$site->pages();
|
2021-05-17 22:05:10 +02:00
|
|
|
$img_src = $this->getHelperPluginManager()->get('headerImage')->getImage($page);
|
2021-05-31 15:26:34 +02:00
|
|
|
if (!$img_src) {
|
|
|
|
$img_src = '/themes/archive/asset/img/default-header-image.jpg';
|
|
|
|
}
|
2021-05-31 18:10:36 +02:00
|
|
|
if ($this->site->title() == "Collections") {
|
|
|
|
$image_height = "300px";
|
|
|
|
} else {
|
|
|
|
$image_height = "200px";
|
|
|
|
}
|
2021-04-26 12:37:54 +02:00
|
|
|
?>
|
2021-05-31 15:26:34 +02:00
|
|
|
<style>
|
|
|
|
#archive_header_img {
|
2021-05-31 18:10:36 +02:00
|
|
|
background: url("<?= $img_src ?>") no-repeat;
|
|
|
|
width: 100%;
|
|
|
|
height: <?= $image_height ?>;
|
2021-05-31 15:26:34 +02:00
|
|
|
}
|
|
|
|
</style>
|
2021-05-22 15:29:53 +02:00
|
|
|
<script>
|
2021-05-24 19:47:24 +02:00
|
|
|
<?php
|
2021-05-31 16:58:51 +02:00
|
|
|
$_html = '<a href="'.$this->site->url().'">'.$this->site->title().'</a>';
|
2021-05-24 19:47:24 +02:00
|
|
|
?>
|
|
|
|
$("#archive_page_title").html('<?php echo $_html ?>');
|
2021-05-22 15:29:53 +02:00
|
|
|
</script>
|
2021-05-31 15:17:12 +02:00
|
|
|
<!-- arc-hive insert ends -->
|
2021-05-22 15:29:53 +02:00
|
|
|
|
|
|
|
<?php /*
|
|
|
|
echo $page->id();
|
|
|
|
$this->pageTitle($page->title());
|
|
|
|
*/
|
|
|
|
?>
|
2021-04-26 12:37:54 +02:00
|
|
|
|
2021-04-25 09:49:47 +02:00
|
|
|
<?php
|
|
|
|
$nav = $site->publicNav();
|
|
|
|
$container = $nav->getContainer();
|
|
|
|
$activePage = $nav->findActive($container);
|
|
|
|
if ($activePage):
|
|
|
|
?>
|
|
|
|
<?php if ($activePage['depth'] !== 0): ?>
|
2021-04-26 12:37:54 +02:00
|
|
|
<nav class="breadcrumbs">
|
|
|
|
<?php echo $nav->breadcrumbs()->setPartial('common/foundation-breadcrumbs'); ?>
|
|
|
|
</nav>
|
2021-04-25 09:49:47 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2021-04-25 22:12:03 +02:00
|
|
|
|
2021-05-24 18:13:23 +02:00
|
|
|
<!--
|
2021-04-25 22:12:03 +02:00
|
|
|
<?php
|
2021-05-08 11:44:47 +02:00
|
|
|
$pages = $this->getHelperPluginManager()->get('archiveSiteMeta')->getPages('exhibit');
|
2021-04-26 12:37:54 +02:00
|
|
|
foreach ($pages as $key => $value) {
|
|
|
|
print($key);
|
|
|
|
print('<br />');
|
|
|
|
print("--".$value."--");
|
|
|
|
print('<br />');
|
|
|
|
}
|
|
|
|
?>
|
2021-05-24 18:13:23 +02:00
|
|
|
-->
|
2021-04-25 22:12:03 +02:00
|
|
|
|
2021-04-26 12:37:54 +02:00
|
|
|
<!-- archive menu -->
|
|
|
|
<?php
|
2021-04-25 22:12:03 +02:00
|
|
|
/*
|
2021-04-26 12:37:54 +02:00
|
|
|
echo $this->partial('common/search-form');
|
|
|
|
echo $nav->menu()->renderSubMenu();
|
2021-04-25 22:12:03 +02:00
|
|
|
*/
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
2021-04-25 09:49:47 +02:00
|
|
|
<?php if ($activePage): ?>
|
|
|
|
<?php if ($this->displayNavigation && $activePage['page']->hasPages()): ?>
|
|
|
|
<nav class="sub-menu wide" data-sticky-container>
|
|
|
|
<div class="sticky" data-sticky data-anchor="blocks">
|
|
|
|
<?php echo $nav->menu()->setUlClass('vertical menu')->renderSubMenu(); ?>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2021-04-25 22:12:03 +02:00
|
|
|
|
2021-04-25 09:49:47 +02:00
|
|
|
<?php $this->trigger('view.show.before'); ?>
|
|
|
|
<div id="blocks" class="blocks">
|
|
|
|
<?php echo $this->content; ?>
|
|
|
|
</div>
|
|
|
|
|
2021-05-31 18:00:30 +02:00
|
|
|
<?php if ($this->site->title() != "Collections") { ?>
|
|
|
|
<button class="end_of_page_button" onclick="window.location.href = '/'">
|
|
|
|
Collection index
|
|
|
|
</button>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-25 09:49:47 +02:00
|
|
|
<?php $this->trigger('view.show.after'); ?>
|
2021-05-17 16:34:35 +02:00
|
|
|
<?php /* if ($showPagePagination): */ ?>
|
|
|
|
<?php if (1 == 0): ?>
|
2021-04-25 09:49:47 +02:00
|
|
|
<?php echo $this->sitePagePagination(); ?>
|
|
|
|
<?php endif; ?>
|