mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Bugtracker #3981 - body onload
This commit is contained in:
10
class2.php
10
class2.php
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||||
| $Revision: 1.25 $
|
| $Revision: 1.26 $
|
||||||
| $Date: 2007-09-20 21:45:33 $
|
| $Date: 2007-09-27 20:58:11 $
|
||||||
| $Author: e107coders $
|
| $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.
|
// 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']){
|
if(isset($pref['e_module_list']) && $pref['e_module_list']){
|
||||||
foreach ($pref['e_module_list'] as $mod){
|
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).
|
| 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 $
|
| $Source: /cvs_backup/e107_0.8/e107_themes/templates/header_default.php,v $
|
||||||
| $Revision: 1.13 $
|
| $Revision: 1.14 $
|
||||||
| $Date: 2007-09-08 01:35:42 $
|
| $Date: 2007-09-27 20:58:11 $
|
||||||
| $Author: e107coders $
|
| $Author: e107steved $
|
||||||
+-----------------------------------------------------------------------------------------------+
|
+-----------------------------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -300,16 +300,16 @@ if (isset($script_text) && $script_text) {
|
|||||||
//
|
//
|
||||||
// I: Calculate JS onload() functions for the BODY tag
|
// I: Calculate JS onload() functions for the BODY tag
|
||||||
//
|
//
|
||||||
|
// Fader menu
|
||||||
global $eMenuActive;
|
global $eMenuActive;
|
||||||
$fader_onload='';
|
if(in_array('fader_menu', $eMenuActive)) $js_body_onload[] = 'changecontent(); ';
|
||||||
if(in_array('fader_menu', $eMenuActive))
|
|
||||||
{
|
|
||||||
$fader_onload = 'changecontent(); ';
|
|
||||||
}
|
|
||||||
|
|
||||||
$links_onload = 'externalLinks();';
|
// External links handling
|
||||||
$theme_onload = (defined('THEME_ONLOAD') ? THEME_ONLOAD : '');
|
$js_body_onload[] = 'externalLinks();';
|
||||||
$body_onload = ($fader_onload != '' || $links_onload != '' || $theme_onload != '' ? " onload='".$fader_onload.$links_onload.$theme_onload."'" : "");
|
|
||||||
|
// 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>
|
// J: Send end of <head> and start of <body>
|
||||||
|
Reference in New Issue
Block a user