set_mode(PageMode::DATA); $page->add_auto_html_headers(); $page->set_data((string)$page->html_html( emptyHTML( TITLE($sitename), META(["http-equiv" => "Content-Type", "content" => "text/html;charset=utf-8"]), META(["name" => "viewport", "content" => "width=device-width, initial-scale=1"]), $page->get_all_html_headers(), ), $body )); } public function build_body(string $sitename, string $main_links, string $main_text, string $contact_link, string $num_comma, string $counter_text): string { $main_links_html = empty($main_links) ? "" : ""; $message_html = empty($main_text) ? "" : "
$main_text
"; $counter_html = empty($counter_text) ? "" : "
$counter_text
"; $contact_link = empty($contact_link) ? "" : "
Contact –"; $search_html = " "; return "

$sitename

$main_links_html $search_html $message_html $counter_html
"; } }