We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a1ae06 commit 2220f86Copy full SHA for 2220f86
src/Layout.php
@@ -14,6 +14,8 @@ public function isEmpty()
14
}
15
16
public $title = 'ACME labs';
17
+ public $h1Href;
18
+ public $h1Title;
19
public $description = '';
20
public $author = '';
21
public $faviconUrl = '/favicon.ico';
@@ -129,12 +131,12 @@ public function render()
129
131
<!DOCTYPE html>
130
132
<html lang="en">
133
<?php $this->renderHead() ?>
-<body>
134
+<body style="padding-top: 15px">
135
136
<?php $this->renderHeader() ?>
137
138
<div class="container">
- <h1><a href="/"><?= $this->title ?></a></h1>
139
+ <?= $this->h1Href ? "<h1><a href=\"$this->h1Href\">" . ($this->h1Title ? $this->h1Title : $this->title) . "</a></h1>" : '' ?>
140
<?php echo $this->main ?>
141
</div>
142
0 commit comments