8
0
daux.io/templates/layout/05_page.php

69 Zeilen
2.6 KiB
PHP

2015-04-23 10:24:50 +02:00
<?php $this->layout('theme::layout/00_layout') ?>
2016-05-23 20:09:15 +02:00
<div class="Columns content">
<aside class="Columns__left Collapsible">
<button type="button" class="Button Collapsible__trigger" aria-controls="sidebar_content" aria-expanded="false" aria-label="<?= $this->translate("Toggle_navigation") ?>">
<span class="Collapsible__trigger__bar"></span>
<span class="Collapsible__trigger__bar"></span>
<span class="Collapsible__trigger__bar"></span>
2017-02-23 23:15:07 +01:00
</button>
<?php $this->insert('theme::partials/navbar_content'); ?>
<div class="Collapsible__content" id="sidebar_content">
2016-05-23 20:09:15 +02:00
<!-- Navigation -->
<?php
$rendertree = $tree;
$path = '';
2016-05-23 20:09:15 +02:00
if ($page['language'] !== '') {
$rendertree = $tree[$page['language']];
2016-05-23 20:09:15 +02:00
$path = $page['language'];
}
2015-04-23 10:24:50 +02:00
echo $this->get_navigation($rendertree, $path, $config->hasRequest() ? $config->getRequest() : '', $base_page, $config->getMode());
2016-05-23 20:09:15 +02:00
?>
2016-04-08 00:13:06 +02:00
2016-05-23 20:09:15 +02:00
<div class="Links">
<?php if ($config->getHTML()->hasLinks()) { ?>
2016-05-23 20:09:15 +02:00
<hr/>
<?php foreach ($config->getHTML()->getLinks() as $name => $url) { ?>
2016-05-23 20:09:15 +02:00
<a href="<?= $url ?>" target="_blank"><?= $name ?></a>
<br />
2017-10-19 21:20:58 +02:00
<?php } ?>
<?php } ?>
2018-02-26 22:46:36 +01:00
</div>
2016-07-29 22:44:35 +02:00
<?php if ($config->getHTML()->showCodeToggle()) { ?>
<div class="CodeToggler">
<hr/>
<label class="Checkbox"><?=$this->translate("CodeBlocks_show") ?>
<input type="checkbox" class="CodeToggler__button--main" checked="checked"/>
<div class="Checkbox__indicator"></div>
</label>
</div>
<?php } ?>
2016-07-29 22:44:35 +02:00
<?php if ($config->getHTML()->hasTwitterHandles()) { ?>
2016-05-23 20:09:15 +02:00
<div class="Twitter">
2018-02-26 22:46:36 +01:00
<hr/>
<?php $this->insert('theme::partials/twitter_buttons'); ?>
2016-05-23 20:09:15 +02:00
</div>
2017-10-19 21:20:58 +02:00
<?php } ?>
2018-02-27 22:47:07 +01:00
<?php if ($config->getHTML()->hasPoweredBy()) { ?>
2018-02-27 22:47:07 +01:00
<div class="PoweredBy">
<hr/>
<?= $config->getHTML()->getPoweredBy()?>
2018-02-27 22:47:07 +01:00
</div>
<?php } ?>
2015-04-23 10:24:50 +02:00
</div>
</aside>
<div class="Columns__right">
2016-05-23 20:09:15 +02:00
<div class="Columns__right__content">
<div class="doc_content">
<?= $this->section('content'); ?>
2015-04-23 10:24:50 +02:00
</div>
</div>
</div>
</div>