605 // point to jsres compressor |
605 // point to jsres compressor |
606 $js_head .= <<<JSEOF |
606 $js_head .= <<<JSEOF |
607 <!-- Only load a basic set of functions for now. Let the rest of the API load when the page is finished. --> |
607 <!-- Only load a basic set of functions for now. Let the rest of the API load when the page is finished. --> |
608 <script type="text/javascript" src="$cdnpath/includes/clientside/jsres.php?early"></script> |
608 <script type="text/javascript" src="$cdnpath/includes/clientside/jsres.php?early"></script> |
609 JSEOF; |
609 JSEOF; |
610 } |
610 $js_foot = ''; |
611 $js_foot = <<<JSEOF |
|
612 <!-- jsres.php is a wrapper script that compresses and caches single JS files to minimize requests --> |
|
613 <script type="text/javascript" src="$cdnpath/includes/clientside/jsres.php"></script> |
|
614 <script type="text/javascript">//<![CDATA[ |
|
615 // This initializes the Javascript runtime when the DOM is ready - not when the page is |
|
616 // done loading, because enano-lib-basic still has to load some 15 other script files |
|
617 // check for the init function - this is a KHTML fix |
|
618 // This doesn't seem to work properly in IE in 1.1.x - there are some problems with |
|
619 // tinyMCE and l10n. |
|
620 if ( typeof ( enano_init ) == 'function' && !IE ) |
|
621 { |
|
622 enano_init(); |
|
623 window.onload = function(e) { }; |
|
624 } |
|
625 //]]></script> |
|
626 JSEOF; |
|
627 |
611 |
628 if ( !empty($this->js_preload) ) |
612 if ( !empty($this->js_preload) ) |
629 { |
613 { |
630 foreach ( $this->js_preload as &$script ) |
614 foreach ( $this->js_preload as &$script ) |
631 { |
615 { |
638 global $lang; |
622 global $lang; |
639 $js_foot .= "\n <script type=\"text/javascript\" src=\"" . makeUrlNS("Special", "LangExportJSON/$lang->lang_id") . "\"></script>"; |
623 $js_foot .= "\n <script type=\"text/javascript\" src=\"" . makeUrlNS("Special", "LangExportJSON/$lang->lang_id") . "\"></script>"; |
640 } |
624 } |
641 $scripts = implode(',', $this->js_preload); |
625 $scripts = implode(',', $this->js_preload); |
642 $js_foot .= "\n <script type=\"text/javascript\" src=\"" . cdnPath . "/includes/clientside/jsres.php?f=$scripts\"></script>"; |
626 $js_foot .= "\n <script type=\"text/javascript\" src=\"" . cdnPath . "/includes/clientside/jsres.php?f=$scripts\"></script>"; |
643 } |
627 |
|
628 } |
|
629 |
|
630 $js_foot .= <<<JSEOF |
|
631 <!-- jsres.php is a wrapper script that compresses and caches single JS files to minimize requests --> |
|
632 <script type="text/javascript" src="$cdnpath/includes/clientside/jsres.php"></script> |
|
633 <script type="text/javascript">//<![CDATA[ |
|
634 // This initializes the Javascript runtime when the DOM is ready - not when the page is |
|
635 // done loading, because enano-lib-basic still has to load some 15 other script files |
|
636 // check for the init function - this is a KHTML fix |
|
637 // This doesn't seem to work properly in IE in 1.1.x - there are some problems with |
|
638 // tinyMCE and l10n. |
|
639 if ( typeof ( enano_init ) == 'function' && !IE ) |
|
640 { |
|
641 enano_init(); |
|
642 window.onload = function(e) { }; |
|
643 } |
|
644 //]]></script> |
|
645 JSEOF; |
|
646 } |
|
647 |
644 |
648 |
645 $this->assign_bool(array( |
649 $this->assign_bool(array( |
646 'fixed_menus' => false, |
650 'fixed_menus' => false, |
647 'export' => false, |
651 'export' => false, |
648 'right_sidebar' => true, |
652 'right_sidebar' => true, |