Fix... weird whitespace I guess?

This commit is contained in:
Daniel Oaks 2020-03-09 01:10:06 +10:00
parent 135432b329
commit 373c6aca08

View File

@ -9,26 +9,26 @@ class CustomHomeTheme extends HomeTheme
$hh = $page->get_all_html_headers(); $hh = $page->get_all_html_headers();
$page->set_data( $page->set_data(
<<<EOD <<<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="theme-color" content="#7EB977"> <meta name="theme-color" content="#7EB977">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
$hh $hh
<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;}
div#front-page {text-align:center;} div#front-page {text-align:center;}
.space {margin-bottom: 1em;} .space {margin-bottom: 1em;}
div#front-page div#links a {margin: 0 0.5em;} div#front-page div#links a {margin: 0 0.5em;}
div#front-page li {list-style-type: none; margin: 0;} div#front-page li {list-style-type: none; margin: 0;}
@media (max-width: 800px) { @media (max-width: 800px) {
div#front-page h1 {font-size: 3em; margin-top: 0.5em; margin-bottom: 0.5em;} div#front-page h1 {font-size: 3em; margin-top: 0.5em; margin-bottom: 0.5em;}
#counter {display: none;} #counter {display: none;}
} }
</style> </style>
</head> </head>
<body> <body>
$body $body
</body> </body>
</html> </html>
@ -42,22 +42,22 @@ EOD
$message_html = empty($main_text) ? "" : "<div class='space' id='message'>$main_text</div>"; $message_html = empty($main_text) ? "" : "<div class='space' id='message'>$main_text</div>";
$counter_html = empty($counter_text) ? "" : "<div class='space' id='counter'>$counter_text</div>"; $counter_html = empty($counter_text) ? "" : "<div class='space' id='counter'>$counter_text</div>";
$contact_link = empty($contact_link) ? "" : "<br><a href='$contact_link'>Contact</a> &ndash;"; $contact_link = empty($contact_link) ? "" : "<br><a href='$contact_link'>Contact</a> &ndash;";
$search_html = " $search_html = "
<div class='space' id='search'> <div class='space' id='search'>
<form action='".make_link("post/list")."' method='GET'> <form action='".make_link("post/list")."' method='GET'>
<input name='search' size='60' type='text' value='' class='autocomplete_tags' autofocus='autofocus'/> <input name='search' size='60' type='text' value='' class='autocomplete_tags' autofocus='autofocus'/>
<input type='hidden' name='q' value='/post/list'> <input type='hidden' name='q' value='/post/list'>
<input type='submit' value='Search' style=\"border: 1px solid #888; height: 30px; border-radius: 2px; background: #EEE;\"/> <input type='submit' value='Search' style=\"border: 1px solid #888; height: 30px; border-radius: 2px; background: #EEE;\"/>
</form> </form>
</div> </div>
"; ";
return " return "
<div id='front-page'> <div id='front-page'>
<h1><a style='text-decoration: none;' href='".make_link()."'><span>$sitename</span></a></h1> <h1><a style='text-decoration: none;' href='".make_link()."'><span>$sitename</span></a></h1>
$main_links_html $main_links_html
$search_html $search_html
$message_html $message_html
$counter_html $counter_html
<div class='space' id='foot'> <div class='space' id='foot'>
<!-- JuicyAds v3.1 --> <!-- JuicyAds v3.1 -->
@ -65,12 +65,12 @@ EOD
<ins id='825625' data-width='908' data-height='270'></ins> <ins id='825625' data-width='908' data-height='270'></ins>
<script type='text/javascript' data-cfasync='false' async>(adsbyjuicy = window.adsbyjuicy || []).push({'adzone':825625});</script> <script type='text/javascript' data-cfasync='false' async>(adsbyjuicy = window.adsbyjuicy || []).push({'adzone':825625});</script>
<!--JuicyAds END--> <!--JuicyAds END-->
<small><small> <small><small>
$contact_link Serving $num_comma posts &ndash; $contact_link Serving $num_comma posts &ndash;
Running <a href='http://code.shishnet.org/shimmie2/'>Shimmie2</a> Running <a href='http://code.shishnet.org/shimmie2/'>Shimmie2</a>
</small></small> </small></small>
</div> </div>
</div>"; </div>";
} }
} }