diff options
Diffstat (limited to 'usr/local/www/head.inc')
-rwxr-xr-x | usr/local/www/head.inc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc index febf1c8..3246e48 100755 --- a/usr/local/www/head.inc +++ b/usr/local/www/head.inc @@ -18,6 +18,24 @@ else <link rel="stylesheet" type="text/css" href="/niftycssprintCode.css" media="print"> <script type="text/javascript" src="/themes/<?php echo $g['theme']; ?>/loader.js"></script> +<? + /* + * Find all javascript files that need to be included + * for this page ... from the arrays ... :) + * Coded by: Erik Kristensen + */ + + ## Make Sure $page_filename has been set ## + ## if it hasn't been don't bother ... :P ## + if ($page_filename) { + include('includes/javascript.inc.php'); + + foreach ($top_javascript_files["$page_filename"] as $file) { + echo '<script type="text/javascript" src="/javascript/'.$file.'"></script>'; + } + } +?> + <?php if (!isset($closehead)){ ?> </head> <?php } ?> |