load scripts at the bottom of the page

This commit is contained in:
Shish 2009-08-01 08:58:12 +01:00
parent 1614248c35
commit 9cc79e3ea8
2 changed files with 16 additions and 2 deletions

View File

@ -15,8 +15,14 @@ class Layout {
$version = "Shimmie-".VERSION;
$header_html = "";
$footer_html = "";
foreach($page->headers as $line) {
$header_html .= "\t\t$line\n";
if(strpos($line, "script src=") > 0) {
$footer_html .= "\t\t$line\n";
}
else {
$header_html .= "\t\t$line\n";
}
}
$left_block_html = "";
@ -70,6 +76,7 @@ $header_html
based on the Danbooru concept.
$debug
$contact
$footer_html
</div>
</body>
</html>

View File

@ -15,8 +15,14 @@ class Layout {
$version = "Shimmie-".VERSION;
$header_html = "";
$footer_html = "";
foreach($page->headers as $line) {
$header_html .= "\t\t$line\n";
if(strpos($line, "script src=") > 0) {
$footer_html .= "\t\t$line\n";
}
else {
$header_html .= "\t\t$line\n";
}
}
$left_block_html = "";
@ -83,6 +89,7 @@ $header_html
based on the Danbooru concept.
$debug
$contact
$footer_html
</div>
</body>
</html>