show all html headers on the front page, so autocomplete can work
This commit is contained in:
parent
9a28f0f51a
commit
cabc600207
@ -274,7 +274,7 @@ class Page {
|
|||||||
*
|
*
|
||||||
* TODO: This should really be configurable somehow...
|
* TODO: This should really be configurable somehow...
|
||||||
*/
|
*/
|
||||||
protected function add_auto_html_headers() {
|
public function add_auto_html_headers() {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
$data_href = get_base_href();
|
$data_href = get_base_href();
|
||||||
|
@ -3,13 +3,16 @@
|
|||||||
class HomeTheme extends Themelet {
|
class HomeTheme extends Themelet {
|
||||||
public function display_page(Page $page, $sitename, $base_href, $theme_name, $body) {
|
public function display_page(Page $page, $sitename, $base_href, $theme_name, $body) {
|
||||||
$page->set_mode("data");
|
$page->set_mode("data");
|
||||||
|
$hh = "";
|
||||||
|
$page->add_auto_html_headers();
|
||||||
|
foreach($page->html_headers as $h) {$hh .= $h;}
|
||||||
$page->set_data(<<<EOD
|
$page->set_data(<<<EOD
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>$sitename</title>
|
<title>$sitename</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel='stylesheet' href='$base_href/themes/$theme_name/style.css' type='text/css'>
|
$hh
|
||||||
</head>
|
</head>
|
||||||
<style>
|
<style>
|
||||||
div#front-page h1 {font-size: 4em; margin-top: 2em; margin-bottom: 0px; text-align: center; border: none; background: none; box-shadow: none; -webkit-box-shadow: none; -moz-box-shadow: none;}
|
div#front-page h1 {font-size: 4em; margin-top: 2em; margin-bottom: 0px; text-align: center; border: none; background: none; box-shadow: none; -webkit-box-shadow: none; -moz-box-shadow: none;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user