示例#1
0
文件: Style.php 项目: sawan34/tanzi
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->hookName = 'wp_enqueue_scripts';
     $this->media = 'all';
 }
示例#2
0
 /**
  * Returns only not loaded assets
  * @param \SupsysticTables_Ui_Asset $asset
  * @return bool
  */
 public function filterAssets(SupsysticTables_Ui_Asset $asset)
 {
     return !$asset->isLoaded() && 'wp_enqueue_scripts' === $asset->getHookName();
 }