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

98 lines
2.3 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-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-31 15:17:12 +02:00
// set header image
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-04-26 12:37:54 +02:00
?>
2021-05-31 15:26:34 +02:00
<style>
#archive_header_img {
background:url("<?= $img_src ?>") no-repeat;
width:100%;
height:100px;
}
</style>
2021-05-22 15:29:53 +02:00
<script>
<?php
if ($this->site->title() != "Collections") {
$_html = '<a href="'.$this->site->url().'">'.$this->site->title().'</a>';
} else {
$_html = $this->site->title();
}
?>
$("#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
$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; ?>