예제 #1
0
파일: jquery.php 프로젝트: 01J/bealtine
 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;
 }
예제 #2
0
파일: jquery.php 프로젝트: pguilford/vcomcc
 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;
 }