示例#1
0
 /**
  * Hook function for adding script
  *
  * @param array Params for hook
  * @return void
  */
 function addJqJsByHook($params)
 {
     $confArr = T3jqueryUtility::getConf();
     if (T3jqueryUtility::isIntegrated()) {
         if ($confArr['integrateFromCDN'] && isset($confArr['locationCDN'])) {
             T3jqueryUtility::getCdnScript($params);
         } else {
             $params['jsLibs']['jQuery'] = array('file' => T3jqueryUtility::getJqJS(TRUE), 'type' => 'text/javascript', 'section' => self::getSection(), 'compress' => FALSE, 'forceOnTop' => TRUE, 'allWrap' => '');
         }
         define('T3JQUERY', TRUE);
     } else {
         GeneralUtility::devLog('PID \'' . $GLOBALS['TSFE']->id . '\' in dontIntegrateOnUID', 't3jquery', 1);
         define('T3JQUERY', FALSE);
     }
 }