Example #1
0
 /**
  * Loads a jQuery sub plugin CSS file
  * @param string $file
  * @param boolean $external Is the file external ? if false, automatically adds jQuery plugin path
  */
 public static function loadCSS($file, $external = false)
 {
     if (self::$TPL == null) {
         throw new Core\Exception('Template object must be defined in load function before calling loadCSS()', E_USER_WARNING, self::CLASS_NAME);
     }
     if (!$external) {
         $file = Core\Context::getPluginURL('jquery') . $file;
     }
     self::$TPL->includeCSS($file);
 }