From a8ca54db0b2e943e4b51c88753d3263720ba051c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Sun, 27 Dec 2015 16:10:01 +0100 Subject: [PATCH] ported search, counter, foot and title to php --- themes/material/home.theme.php | 74 ++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 themes/material/home.theme.php diff --git a/themes/material/home.theme.php b/themes/material/home.theme.php new file mode 100644 index 00000000..6e4e8609 --- /dev/null +++ b/themes/material/home.theme.php @@ -0,0 +1,74 @@ +set_mode("data"); + $hh = ""; + $page->add_auto_html_headers(); + foreach($page->html_headers as $h) {$hh .= $h;} + $page->set_data(<< + + $sitename + + + $hh + + + + $body + + +EOD +); + } + + public function build_body(/*string*/ $sitename, /*string*/ $main_links, /*string*/ $main_text, /*string*/ $contact_link, $num_comma, /*string*/ $counter_text) { + $main_links_html = empty($main_links) ? "" : /*Change this*/""; + $message_html = empty($main_text) ? "" : "
$main_text
"; + $counter_html = empty($counter_text) ? "" : "
$counter_text
"; + $contact_link = empty($contact_link) ? "" : "
Contact –"; + $search_html = " +
+
+
+ +
+
+ + + +
+
+
+
+
+ "; + return " +
+ $main_links_html +
+
+

$sitename

+ $search_html + $message_html + $counter_html + +
+
+
"; + } +} +