Fix header homepage in generated mode
Cette révision appartient à :
Parent
b6c8b567fc
révision
976db8925d
@ -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'],
|
||||
|
@ -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']) { ?>
|
||||
|
@ -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">
|
||||
|
2
templates/partials/navbar_content.php
Fichier normal
2
templates/partials/navbar_content.php
Fichier normal
@ -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>
|
Chargement…
Référencer dans un nouveau ticket
Block a user