Arc-hive-omeka-theme/view/omeka/site/page/show.phtml

92 lines
2.1 KiB
PHTML
Raw Permalink Normal View History

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
<!-- arc-hive page header-image insert begins -->
<?php
$img_src = null;
$img_src = $this->getHelperPluginManager()->get('headerImage')->getImage($page);
if (!$img_src) {
$img_src = $this->assetUrl('img/default-ARC-HIVE-hero-image.jpg');
}
?>
<style>
.arc-page-header-img {
content: url("<?= $img_src ?>");
}
</style>
<?php
?>
2021-05-22 15:29:53 +02:00
<!-- arc-hive page header-image insert ends -->
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
$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; ?>