static function getInstance() { static $instance; if (!is_object($instance)) { $instance = new NextendJavascriptjQuery(); if (nextendIsWordPress()) { wp_enqueue_script('jquery'); } else { $instance->addJsLibraryFile('jQuery.js'); } $instance->addJsLibraryFile('uacss.js'); } return $instance; }
static function getInstance() { global $nextendexport; static $instance; if (!is_object($instance)) { $instance = new NextendJavascriptjQuery(); $instance->addJsLibraryFile('njQuery.js'); $jqueryLoaded = false; if (nextendIsJoomla()) { JLoader::import('joomla.version'); $version = new JVersion(); if (version_compare($version->RELEASE, '3.0', '>=')) { JHtml::_('jquery.framework'); $jqueryLoaded = true; } } if ($nextendexport) { $jqueryLoaded = false; } if (!$jqueryLoaded) { $instance->addJsLibraryFile('jQuery.js'); } $instance->addJsLibraryFile('uacss.js'); $instance->addJsLibraryFile('jquery.unique-element-id.js'); } return $instance; }