Fix header homepage in generated mode

This commit is contained in:
Stéphane Goetz 2015-04-27 11:57:31 +02:00
bovenliggende b6c8b567fc
commit 976db8925d
4 gewijzigde bestanden met toevoegingen van 4 en 5 verwijderingen

Bestand weergeven

@ -22,7 +22,6 @@ class Template
public function render($name, array $data = array())
{
$this->engine->addData([
'index' => utf8_encode($data['params']['base_page'] . $data['params']['index']->value),
'base_url' => $data['params']['base_url'],
'base_page' => $data['params']['base_page'],
'page' => $data['page'],

Bestand weergeven

@ -1,8 +1,7 @@
<?php $this->layout('theme::layout/00_layout') ?>
<div class="navbar navbar-fixed-top hidden-print">
<div class="container">
<a class="brand navbar-brand pull-left" href="<?php echo $index; ?>"><?php echo $params['title']; ?></a>
<p class="navbar-text pull-right">Generated by <a href="http://daux.io">Daux.io</a></p>
<?php $this->insert('partials/navbar_content', ['params' => $params]); ?>
</div>
</div>
<?php if ($params['repo']) { ?>

Bestand weergeven

@ -6,8 +6,7 @@
<div class="container-fluid fluid-height wrapper">
<div class="navbar navbar-fixed-top hidden-print">
<div class="container-fluid">
<a class="brand navbar-brand pull-left" href="<?php echo $index;?>"><?php echo $params['title']; ?></a>
<p class="navbar-text pull-right">Generated by <a href="http://daux.io">Daux.io</a></p>
<?php $this->insert('partials/navbar_content', ['params' => $params]); ?>
</div>
</div>
<div class="row columns content">

Bestand weergeven

@ -0,0 +1,2 @@
<a class="brand navbar-brand pull-left" href="<?= $params['base_page'] . $params['index']->getUri(); ?>"><?php echo $params['title']; ?></a>
<p class="navbar-text pull-right">Generated by <a href="http://daux.io">Daux.io</a></p>