mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 10:04:35 +02:00
Removed TinyMce from every page load. e_footer.php introduced and e107::wysiwyg() toggle method.
This commit is contained in:
@@ -275,7 +275,7 @@ if (function_exists('theme_foot'))
|
||||
|
||||
//
|
||||
// F any included JS footer scripts
|
||||
// DEPRECATED - use e107::getJs()->footerFile('{e_PLUGIN}myplug/js/my.js', $zone = 2)
|
||||
// DEPRECATED - use e107::js('footer', '{e_PLUGIN}myplug/js/my.js', $zone = 2)
|
||||
//
|
||||
global $footer_js;
|
||||
if (isset($footer_js) && is_array($footer_js))
|
||||
@@ -288,6 +288,32 @@ if (isset($footer_js) && is_array($footer_js))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Load e_footer.php files.
|
||||
if (is_array($pref['e_footer_list']))
|
||||
{
|
||||
// ob_start();
|
||||
|
||||
foreach($pref['e_footer_list'] as $val)
|
||||
{
|
||||
$fname = e_PLUGIN.$val."/e_footer.php"; // Do not place inside a function - BC $pref required. .
|
||||
|
||||
if(is_readable($fname))
|
||||
{
|
||||
|
||||
$ret = ($e107_debug || isset($_E107['debug'])) ? include_once($fname) : @include_once($fname);
|
||||
}
|
||||
}
|
||||
|
||||
// $e_footer_ouput = ob_get_contents(); // Don't use.
|
||||
// ob_end_clean();
|
||||
unset($ret);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// [JSManager] Load JS Footer Includes by priority
|
||||
e107::getJs()->renderJs('footer', true);
|
||||
|
||||
|
Reference in New Issue
Block a user