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 + +
+
+
"; + } +} +