yellow/system/layouts/sidebar.html

21 lines
868 B
HTML
Raw Normal View History

2019-02-23 14:04:34 +00:00
<?php if ($this->yellow->page->isPage("sidebar")): ?>
2019-02-01 16:36:29 +00:00
<div class="sidebar" role="complementary">
2019-02-23 14:04:34 +00:00
<?php $page = $this->yellow->page->getPage("sidebar") ?>
<?php $page->setPage("main", $this->yellow->page) ?>
2019-02-01 16:36:29 +00:00
<?php echo $page->getContent() ?>
</div>
2019-02-23 14:04:34 +00:00
<?php elseif ($this->yellow->page->isPage("navigation-sidebar")): ?>
<div class="sidebar" role="complementary">
2016-11-01 18:46:47 +00:00
<div class="navigation-sidebar">
2019-03-18 21:07:19 +00:00
<?php $pages = $this->yellow->page->getParentTop(true)->getChildren() ?>
2019-02-23 14:04:34 +00:00
<?php $this->yellow->page->setLastModified($pages->getModified()) ?>
2019-05-07 13:01:01 +00:00
<p><?php echo $this->yellow->page->getHtml("titleNavigation") ?></p>
2016-11-01 18:46:47 +00:00
<ul>
2019-02-01 16:36:29 +00:00
<?php foreach ($pages as $page): ?>
2016-11-01 18:46:47 +00:00
<li><a<?php echo $page->isActive() ? " class=\"active\"" : "" ?> href="<?php echo $page->getLocation(true) ?>"><?php echo $page->getHtml("titleNavigation") ?></a></li>
<?php endforeach ?>
</ul>
</div>
</div>
<?php endif ?>