prints pages with gived page_type
This commit is contained in:
parent
019537dcc7
commit
9adf17631d
|
@ -9,8 +9,18 @@ $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() ?>
|
||||||
|
|
|
@ -44,6 +44,7 @@ endif;
|
||||||
|
|
||||||
<?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