unset($this->_scripts[$this->baseurl.'/media/system/js/mootools-core.js']);
unset($this->_scripts[$this->baseurl.'/media/system/js/caption.js']);
unset($this->_scripts[$this->baseurl.'/media/system/js/core.js']);
public static function caption($selector = 'img.caption')
{
// Only load once
if (isset(self::$loaded[__METHOD__][$selector]))
{
return;
}
// Include MooTools framework
self::framework();
JHtml::_('script', 'system/caption.js', true, true);
// Attach caption to document
JFactory::getDocument()->addScriptDeclaration(
"window.addEvent('load', function() {
new JCaption('" . $selector . "');
});"
);
// Set static array
self::$loaded[__METHOD__][$selector] = true;
}
public static function caption($selector = 'img.caption')
{
return;
// Only load once
// if (isset(self::$loaded[__METHOD__][$selector]))
// {
// return;
// }
//
// // Include MooTools framework
// self::framework();
//
// JHtml::_('script', 'system/caption.js', true, true);
//
// // Attach caption to document
// JFactory::getDocument()->addScriptDeclaration(
// "window.addEvent('load', function() {
// new JCaption('" . $selector . "');
// });"
// );
//
// // Set static array
// self::$loaded[__METHOD__][$selector] = true;
}