From c7c779e00a1dfde7f2fc04aab207dbd5243fec57 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Tue, 3 Jul 2007 03:24:35 +0000 Subject: [PATCH] Added support for arrays in $eplug_js and $eplug_css. Should help to prevent overlap issues. --- e107_themes/templates/header_default.php | 32 ++++++++++++++++++++---- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/e107_themes/templates/header_default.php b/e107_themes/templates/header_default.php index cbf943195..8650e2bca 100644 --- a/e107_themes/templates/header_default.php +++ b/e107_themes/templates/header_default.php @@ -6,9 +6,9 @@ | Released under the terms and conditions of the GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_themes/templates/header_default.php,v $ -| $Revision: 1.7 $ -| $Date: 2007-06-04 19:20:38 $ -| $Author: e107steved $ +| $Revision: 1.8 $ +| $Date: 2007-07-03 03:24:35 $ +| $Author: e107coders $ +-----------------------------------------------------------------------------------------------+ */ @@ -106,7 +106,18 @@ if (isset($theme_js_php) && $theme_js_php) { if (isset($eplug_js) && $eplug_js) { echo "\n\n"; - echo "\n"; + if(is_array($eplug_js)) + { + foreach($eplug_js as $kjs) + { + echo "\n"; + } + } + else + { + echo "\n"; + } + } if((isset($pref['enable_png_image_fix']) && $pref['enable_png_image_fix'] == true) || (isset($sleight) && $sleight == true)) { @@ -122,7 +133,18 @@ echo "\n"; if (isset($eplug_css) && $eplug_css) { echo "\n\n"; - echo "\n"; + if(is_array($eplug_css)) + { + foreach($eplug_css as $kcss) + { + echo "\n"; + } + } + else + { + echo "\n"; + } + } echo "\n";