From a7572a2a0b47527da2357cabde5c160b76806eb5 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 1 Aug 2009 09:03:57 +0100 Subject: [PATCH] Revert "load scripts at the bottom of the page" - inline scripts require jquery >_< This reverts commit 9cc79e3ea825a5b7a3034f2ec6ba9c99cdab4e42. --- themes/default/layout.class.php | 9 +-------- themes/warm/layout.class.php | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/themes/default/layout.class.php b/themes/default/layout.class.php index 6c2b71a7..84bae676 100644 --- a/themes/default/layout.class.php +++ b/themes/default/layout.class.php @@ -15,14 +15,8 @@ class Layout { $version = "Shimmie-".VERSION; $header_html = ""; - $footer_html = ""; foreach($page->headers as $line) { - if(strpos($line, "script src=") > 0) { - $footer_html .= "\t\t$line\n"; - } - else { - $header_html .= "\t\t$line\n"; - } + $header_html .= "\t\t$line\n"; } $left_block_html = ""; @@ -76,7 +70,6 @@ $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 b3174144..78e9927a 100644 --- a/themes/warm/layout.class.php +++ b/themes/warm/layout.class.php @@ -15,14 +15,8 @@ class Layout { $version = "Shimmie-".VERSION; $header_html = ""; - $footer_html = ""; foreach($page->headers as $line) { - if(strpos($line, "script src=") > 0) { - $footer_html .= "\t\t$line\n"; - } - else { - $header_html .= "\t\t$line\n"; - } + $header_html .= "\t\t$line\n"; } $left_block_html = ""; @@ -88,7 +82,6 @@ $header_html based on the Danbooru concept. $debug $contact - $footer_html