\t\t// make sure we only specify a /supported/ syntax; if we spec something else, edit_area will NOT show up! \t\tif (!editAreaLoader.init( \t\t\t\t{ \t\t\t\t\tid: "content", \t\t\t\t\tstart_highlight: true, \t\t\t\t\tallow_resize: 'both', \t\t\t\t\t//min_width: 400, \t\t\t\t\t//min_height: 125, \t\t\t\t\tallow_toggle: true, \t\t\t\t\tword_wrap: true, \t\t\t\t\tlanguage: "{$eaLanguage}", \t\t\t\t\tsyntax: "{$EAsyntax}", \t\t\t\t\tignore_unsupported_syntax: true \t\t\t\t})) \t\t{ \t\t\talert('failed to start the EditArea JS control; error code: ' + (0 + editAreaLoader.error_code)); \t\t} \t\t/* \t\tfor (syn in editAreaLoader.load_syntax) \t\t{ \t\t\talert("syntax: " + syn); \t\t} \t\t*/ EOT42; echo generateJS4lazyloadDriver($js_files, $driver_code); ?> </script> <script type="text/javascript" src="../../../../lib/includes/js/lazyload/lazyload.js" charset="utf-8"></script> </body> </html>
$js_files[] = $cfg['rootdir'] . 'lib/includes/js/the_goto_guy.js'; $js_files[] = $cfg['rootdir'] . 'lib/includes/js/mootools-core.js,mootools-more.js'; $driver_code = ''; $starter_code = null; $extra_functions_code = null; if (!$tinyMCE_required) { $js_files[] = $cfg['rootdir'] . 'lib/includes/js/mootools_filemanager/dummy.js,Source/Uploader/Swiff.Uploader.js,Source/Uploader/Fx.ProgressBar.js'; $js_files[] = $cfg['rootdir'] . 'lib/includes/js/fancyupload/FancyUpload2.js'; $js_files[] = $cfg['rootdir'] . 'lib/modules/lightbox/modLightbox.js'; } else { $mce_options = array(array($textarea4descr_id => array('theme' => 'simple'))); $MCEcodegen = new tinyMCEcodeGen($textarea4descr_id, $mce_options); $js_files = array_merge($js_files, $MCEcodegen->get_JSheaderfiles()); // these must FOLLOW the tinyMCE JS list as that part will include the basics for these ones as well: $js_files[] = $cfg['rootdir'] . 'lib/includes/js/fancyupload/FancyUpload2.js'; $js_files[] = $cfg['rootdir'] . 'lib/modules/lightbox/modLightbox.js'; $starter_code = $MCEcodegen->genStarterCode(); $driver_code = $MCEcodegen->genDriverCode(); $extra_functions_code = $MCEcodegen->genExtraFunctionsCode(); } $driver_code .= "\n" . "lazyload_done_now_init('" . $cfg['rootdir'] . "'); // defined in modLightbox.js\n"; echo generateJS4lazyloadDriver($js_files, $driver_code, $starter_code, $extra_functions_code); ?> </script> <script type="text/javascript" src="../../../lib/includes/js/lazyload/lazyload.js" charset="utf-8"></script> <?php } ?> </body> </html>