Exemple #1
0
 /**
  * Registers a style
  *
  * @param string $handle
  * @param bool|string $src
  * @param array $deps
  * @param bool $ver
  * @param string $media
  * @return void
  */
 public static function load($handle, $src = false, $deps = array(), $ver = false, $media = 'all')
 {
     if (!isset(self::$_styles[$handle])) {
         self::$_styles[$handle] = array('src' => $src, 'deps' => $deps, 'ver' => $ver, 'media' => $media);
     }
     if (self::$_enqueueSet == false) {
         IfwPsn_Wp_Proxy_Action::addEnqueueStyles(array('IfwPsn_Wp_Proxy_Style', '_enqueueStyles'));
         self::$_enqueueSet = true;
     }
 }