diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-07-27 02:11:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-07-27 02:11:52 +0000 |
commit | 9e62228081bd5962bf7b7ebc969d2fe26fdf8cc2 (patch) | |
tree | 8203ec80db79ba3ee885573fd2db8f892ff87660 /usr/local/www | |
parent | 0b6a453433afd68a8f7dc6f230f1e38c0ee4c192 (diff) | |
download | pfsense-9e62228081bd5962bf7b7ebc969d2fe26fdf8cc2.zip pfsense-9e62228081bd5962bf7b7ebc969d2fe26fdf8cc2.tar.gz |
Begin using inline CSS/JS including functions.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/head.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc index 5b078d4..86f75b1 100755 --- a/usr/local/www/head.inc +++ b/usr/local/www/head.inc @@ -19,13 +19,13 @@ $pagetitle = gentitle( $pgtitle ); <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <?php if (strpos($_SERVER["SCRIPT_FILENAME"], "wizard.php") !== false && file_exists("{$g['www_path']}/themes/{$g['theme']}/wizard.css")): ?> - <link rel="stylesheet" href="/themes/<?php echo $g['theme']; ?>/wizard.css" media="all" /> + <?php outputCSSFileInline("themes/{$g['theme']}/wizard.css"); ?> <?php else: ?> <link rel="stylesheet" href="/themes/<?php echo $g['theme']; ?>/all.css" media="all" /> <?php endif; ?> - <link rel="stylesheet" type="text/css" href="/niftycssprintCode.css" media="print" /> + <?php outputCSSFileInline("niftycssprintCode.css"); ?> <script type="text/javascript">var theme = "<?php echo $g['theme']; ?>"</script> - <script type="text/javascript" src="/themes/<?php echo $g['theme']; ?>/loader.js"></script> + <?php outputJavaScriptFileInline("themes/{$g['theme']}/loader.js"); ?> <? @@ -41,7 +41,8 @@ $pagetitle = gentitle( $pgtitle ); if ($dh = opendir($path)) { while (($file = readdir($dh)) !== false) { if (is_dir($file)) continue; - echo "\t".'<script type="text/javascript" src="/javascript/'.$dir.'/'.$file.'"></script>'."\n"; + //echo "\t".'<script type="text/javascript" src="/javascript/'.$dir.'/'.$file.'"></script>'."\n"; + outputJavaScriptFileInline("javascript/{$dir}/{$file}"); } closedir($dh); } |