Skip to content

Commit 2220f86

Browse files
committed
h1 link
1 parent 9a1ae06 commit 2220f86

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Layout.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ public function isEmpty()
1414
}
1515

1616
public $title = 'ACME labs';
17+
public $h1Href;
18+
public $h1Title;
1719
public $description = '';
1820
public $author = '';
1921
public $faviconUrl = '/favicon.ico';
@@ -129,12 +131,12 @@ public function render()
129131
<!DOCTYPE html>
130132
<html lang="en">
131133
<?php $this->renderHead() ?>
132-
<body>
134+
<body style="padding-top: 15px">
133135

134136
<?php $this->renderHeader() ?>
135137

136138
<div class="container">
137-
<h1><a href="/"><?= $this->title ?></a></h1>
139+
<?= $this->h1Href ? "<h1><a href=\"$this->h1Href\">" . ($this->h1Title ? $this->h1Title : $this->title) . "</a></h1>" : '' ?>
138140
<?php echo $this->main ?>
139141
</div>
140142

0 commit comments

Comments
 (0)