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

67 lines
1.6 KiB
PHTML
Raw 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
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): ?>
<nav class="breadcrumbs"><?php echo $nav->breadcrumbs()->setPartial('common/foundation-breadcrumbs'); ?></nav>
<?php endif; ?>
<?php endif; ?>
2021-04-25 22:12:03 +02:00
<?php
$pages = $this->getHelperPluginManager()->get('pageMeta')->getPages('exhibit');
foreach ($pages as $key => $value) {
print($key);
print('<br />');
print("--".$value."--");
print('<br />');
}
/*
$pagesMetadata = $plugins->has('pagesMetadata') ? $plugins->get('pagesMetadata') : null;
if ($pagesMetadata):
$data = $pagesMetadata('exhibit_page');
endif;
*/
?>
<!-- archive menu -->
<?php echo $this->partial('common/search-form'); ?>
<?php echo $nav->menu()->renderSubMenu(); ?>
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'); ?>
<?php if ($showPagePagination): ?>
<?php echo $this->sitePagePagination(); ?>
<?php endif; ?>