diff --git a/themes/default/layout.class.php b/themes/default/layout.class.php index 84bae676..6c2b71a7 100644 --- a/themes/default/layout.class.php +++ b/themes/default/layout.class.php @@ -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 diff --git a/themes/warm/layout.class.php b/themes/warm/layout.class.php index cc57e6e2..60d31eeb 100644 --- a/themes/warm/layout.class.php +++ b/themes/warm/layout.class.php @@ -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