prints pages with gived page_type
This commit is contained in:
parent
019537dcc7
commit
9adf17631d
|
@ -9,16 +9,26 @@ $layoutAttributes = [
|
||||||
'vertical' => 'class="vertical menu accordion-menu" data-accordion-menu data-submenu-toggle="true"',
|
'vertical' => 'class="vertical menu accordion-menu" data-accordion-menu data-submenu-toggle="true"',
|
||||||
]
|
]
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<?php $page_count = 0; ?>
|
||||||
|
|
||||||
<ul <?php echo $layoutAttributes[$layout]; ?>>
|
<ul <?php echo $layoutAttributes[$layout]; ?>>
|
||||||
<?php foreach ($container as $page): ?>
|
<?php foreach ($container as $page): ?>
|
||||||
|
<?php
|
||||||
|
$page_count++;
|
||||||
|
if ($page_count == 1) {
|
||||||
|
echo("First page");
|
||||||
|
}
|
||||||
|
echo($page);
|
||||||
|
?>
|
||||||
<?php if (!$this->navigation()->accept($page)) continue; ?>
|
<?php if (!$this->navigation()->accept($page)) continue; ?>
|
||||||
<?php /* @var $page Zend\Navigation\Page\Mvc */ ?>
|
<?php /* @var $page Zend\Navigation\Page\Mvc */ ?>
|
||||||
<?php $hasChildren = $page->hasPages() ?>
|
<?php $hasChildren = $page->hasPages() ?>
|
||||||
<?php $showChildren = $this->themeSetting('nav_show_levels'); ?>
|
<?php $showChildren = $this->themeSetting('nav_show_levels'); ?>
|
||||||
<?php if (!$hasChildren || ($showChildren == 0)): ?>
|
<?php if (!$hasChildren || ($showChildren == 0)): ?>
|
||||||
<li<?php if ($page->isActive()) echo ' class="active"' ?>>
|
<li<?php if ($page->isActive()) echo ' class="active"' ?>>
|
||||||
<a
|
<a
|
||||||
class="nav-header"
|
class="nav-header"
|
||||||
href="<?php echo $page->getHref() ?>"
|
href="<?php echo $page->getHref() ?>"
|
||||||
<?php if ($page->getTarget() != ""): ?>
|
<?php if ($page->getTarget() != ""): ?>
|
||||||
target="<?php echo $page->getTarget(); ?>"
|
target="<?php echo $page->getTarget(); ?>"
|
||||||
|
@ -56,7 +66,7 @@ $layoutAttributes = [
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<li<?php if ($child->isActive()) echo ' class="active"' ?>>
|
<li<?php if ($child->isActive()) echo ' class="active"' ?>>
|
||||||
<a
|
<a
|
||||||
href="<?php echo $child->getHref() ?>"
|
href="<?php echo $child->getHref() ?>"
|
||||||
<?php if ($child->getTarget() != ""): ?>
|
<?php if ($child->getTarget() != ""): ?>
|
||||||
target="<?php echo $child->getTarget(); ?>"
|
target="<?php echo $child->getTarget(); ?>"
|
||||||
|
@ -69,7 +79,7 @@ $layoutAttributes = [
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
|
|
|
@ -6,7 +6,7 @@ $this->headMeta()->setCharset('utf-8');
|
||||||
$this->headMeta()->appendName('viewport', 'width=device-width, initial-scale=1');
|
$this->headMeta()->appendName('viewport', 'width=device-width, initial-scale=1');
|
||||||
$this->headTitle($this->setting('installation_title', 'Omeka S'))->setSeparator(' · ');
|
$this->headTitle($this->setting('installation_title', 'Omeka S'))->setSeparator(' · ');
|
||||||
if (isset($stylesheet)) {
|
if (isset($stylesheet)) {
|
||||||
$this->headLink()->prependStylesheet($this->assetUrl("css/$stylesheet.css"));
|
$this->headLink()->prependStylesheet($this->assetUrl("css/$stylesheet.css"));
|
||||||
} else {
|
} else {
|
||||||
$this->headLink()->prependStylesheet($this->assetUrl('css/default.css'));
|
$this->headLink()->prependStylesheet($this->assetUrl('css/default.css'));
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,8 @@ endif;
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<?php echo $this->htmlElement('body'); ?>
|
<?php echo $this->htmlElement('body'); ?>
|
||||||
|
|
||||||
|
|
||||||
<div id="offCanvas" class="off-canvas position-left" data-off-canvas>
|
<div id="offCanvas" class="off-canvas position-left" data-off-canvas>
|
||||||
<?php echo $site->publicNav()->menu()->setPartial('common/foundation-navigation.phtml')->renderPartialWithParams(['layout' => 'vertical']); ?>
|
<?php echo $site->publicNav()->menu()->setPartial('common/foundation-navigation.phtml')->renderPartialWithParams(['layout' => 'vertical']); ?>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
|
@ -60,9 +61,11 @@ endif;
|
||||||
<?php echo $this->partial('common/header-dropdown'); ?>
|
<?php echo $this->partial('common/header-dropdown'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div id="content" role="main">
|
<div id="content" role="main">
|
||||||
<?php echo $this->content; ?>
|
<?php echo $this->content; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<?php if ($footerContent = $this->themeSetting('footer')): ?>
|
<?php if ($footerContent = $this->themeSetting('footer')): ?>
|
||||||
<?php echo $footerContent; ?>
|
<?php echo $footerContent; ?>
|
||||||
|
|
|
@ -4,6 +4,7 @@ $this->pageTitle($page->title(), 2);
|
||||||
$showPagePagination = $this->siteSetting('show_page_pagination', true);
|
$showPagePagination = $this->siteSetting('show_page_pagination', true);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$nav = $site->publicNav();
|
$nav = $site->publicNav();
|
||||||
$container = $nav->getContainer();
|
$container = $nav->getContainer();
|
||||||
|
@ -15,6 +16,33 @@ if ($activePage):
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
||||||
|
<?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(); ?>
|
||||||
|
|
||||||
|
|
||||||
<?php if ($activePage): ?>
|
<?php if ($activePage): ?>
|
||||||
<?php if ($this->displayNavigation && $activePage['page']->hasPages()): ?>
|
<?php if ($this->displayNavigation && $activePage['page']->hasPages()): ?>
|
||||||
<nav class="sub-menu wide" data-sticky-container>
|
<nav class="sub-menu wide" data-sticky-container>
|
||||||
|
@ -25,13 +53,13 @@ if ($activePage):
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
||||||
<?php $this->trigger('view.show.before'); ?>
|
<?php $this->trigger('view.show.before'); ?>
|
||||||
<div id="blocks" class="blocks">
|
<div id="blocks" class="blocks">
|
||||||
<?php echo $this->content; ?>
|
<?php echo $this->content; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php $this->trigger('view.show.after'); ?>
|
<?php $this->trigger('view.show.after'); ?>
|
||||||
<?php if ($showPagePagination): ?>
|
<?php if ($showPagePagination): ?>
|
||||||
<?php echo $this->sitePagePagination(); ?>
|
<?php echo $this->sitePagePagination(); ?>
|
||||||
|
|
Loading…
Reference in New Issue