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-04-26 12:37:54 +02:00
|
|
|
<?php
|
|
|
|
// set header images
|
2021-05-17 22:05:10 +02:00
|
|
|
$img_src = $this->getHelperPluginManager()->get('headerImage')->getImage($page);
|
|
|
|
|
2021-04-26 12:37:54 +02:00
|
|
|
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 } ?>
|
|
|
|
|
2021-05-22 15:29:53 +02:00
|
|
|
<script>
|
|
|
|
$("#archive_page_title").html('<?= $site->title(); ?>');
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<?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>
|
|
|
|
|
|
|
|
|
|
|
|
<?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; ?>
|