JHTMLBehavior/mootools

From Joomla! Documentation

This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Syntax

Returns

void

Defined in

libraries/joomla/html/html/behavior.php

Importing

jimport('joomla.html.html.behavior');

Source Body

function mootools($debug=null){static$loaded;// Only load onceif($loaded){return;}// If no debugging value is set, use the configuration settingif($debug===null){$config=&JFactory::getConfig();$debug=$config->getValue('config.debug');}// TODO NOTE: Here we are checking for Konqueror - If they fix thier issue with compressed, we will need to update this$konkcheck=isset($_SERVER['HTTP_USER_AGENT']) ? strpos(strtolower($_SERVER['HTTP_USER_AGENT']),"konqueror"):null;if($debug||$konkcheck){
JHTML::script('mootools-uncompressed.js','media/system/js/',false);}else{
JHTML::script('mootools.js','media/system/js/',false);}$loaded=true;return;}