Skip to content

Commit bd30be0

Browse files
committed
Allow any other header tag
1 parent 447481b commit bd30be0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/WebApp/Layout.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,17 @@ protected function renderHeader() {
4040
$this->renderMeta().
4141
$this->renderLinks().
4242
$this->renderTitle().
43+
$this->renderOtherHeader().
4344
'</head>';
4445
return $rc;
4546
}
4647

48+
protected function renderOtherHeader() {
49+
$rc = '';
50+
foreach ($this->page->getOtherHeaders() AS $s) $rc .= $s;
51+
return $rc;
52+
}
53+
4754
protected function renderMeta() {
4855
$rc = '<meta charset="utf-8">';
4956

src/WebApp/Page.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ public function getMeta() {
5555
return $rc;
5656
}
5757

58+
public function getOtherHeaders() {
59+
return array();
60+
}
61+
5862
public function getMetaKeywords() {
5963
return $this->app->getMetaKeywords();
6064
}

0 commit comments

Comments
 (0)