mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Bugtracker #3981 - body onload
This commit is contained in:
parent
8306769aca
commit
6faf81ad2e
10
class2.php
10
class2.php
@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||
| $Revision: 1.25 $
|
||||
| $Date: 2007-09-20 21:45:33 $
|
||||
| $Author: e107coders $
|
||||
| $Revision: 1.26 $
|
||||
| $Date: 2007-09-27 20:58:11 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
//
|
||||
@ -555,6 +555,10 @@ if (isset($pref['modules']) && $pref['modules']) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$js_body_onload = array(); // Initialise this array in case a module wants to add to it
|
||||
|
||||
|
||||
// Load e_modules after all the constants, but before the themes, so they can be put to use.
|
||||
if(isset($pref['e_module_list']) && $pref['e_module_list']){
|
||||
foreach ($pref['e_module_list'] as $mod){
|
||||
|
@ -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.13 $
|
||||
| $Date: 2007-09-08 01:35:42 $
|
||||
| $Author: e107coders $
|
||||
| $Revision: 1.14 $
|
||||
| $Date: 2007-09-27 20:58:11 $
|
||||
| $Author: e107steved $
|
||||
+-----------------------------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@ -300,16 +300,16 @@ if (isset($script_text) && $script_text) {
|
||||
//
|
||||
// I: Calculate JS onload() functions for the BODY tag
|
||||
//
|
||||
// Fader menu
|
||||
global $eMenuActive;
|
||||
$fader_onload='';
|
||||
if(in_array('fader_menu', $eMenuActive))
|
||||
{
|
||||
$fader_onload = 'changecontent(); ';
|
||||
}
|
||||
if(in_array('fader_menu', $eMenuActive)) $js_body_onload[] = 'changecontent(); ';
|
||||
|
||||
$links_onload = 'externalLinks();';
|
||||
$theme_onload = (defined('THEME_ONLOAD') ? THEME_ONLOAD : '');
|
||||
$body_onload = ($fader_onload != '' || $links_onload != '' || $theme_onload != '' ? " onload='".$fader_onload.$links_onload.$theme_onload."'" : "");
|
||||
// External links handling
|
||||
$js_body_onload[] = 'externalLinks();';
|
||||
|
||||
// Theme JS
|
||||
if (defined('THEME_ONLOAD')) $js_body_onload[] = THEME_ONLOAD;
|
||||
if (count($js_body_onload)) $body_onload = " onload=\"".implode(" ",$js_body_onload)."\"";
|
||||
|
||||
//
|
||||
// J: Send end of <head> and start of <body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user