Move scripts to after close of body as recommended location.

This commit is contained in:
Andrew McMillan 2009-03-16 22:09:57 +13:00
parent 91122ccd6a
commit d209173e44
2 changed files with 7 additions and 7 deletions

View File

@ -1,2 +1,8 @@
</body> </body><?php
if ( isset($c->scripts) && is_array($c->scripts) ) {
foreach ( $c->scripts AS $script ) {
echo "<script language=\"JavaScript\" src=\"$script\"></script>\n";
}
}
?>
</html> </html>

View File

@ -59,12 +59,6 @@ EOHDR;
} }
} }
if ( isset($c->scripts) && is_array($c->scripts) ) {
foreach ( $c->scripts AS $script ) {
echo "<script language=\"JavaScript\" src=\"$script\"></script>\n";
}
}
echo "</head>\n<body>\n"; echo "</head>\n<body>\n";
echo "<div id=\"pageheader\">\n"; echo "<div id=\"pageheader\">\n";