classes/uix/ui/control/toggle.php 1 location
|
@@ 69-81 (lines=13) @@
|
| 66 |
|
* @since 1.0.0 |
| 67 |
|
* @access public |
| 68 |
|
*/ |
| 69 |
|
public function set_assets() { |
| 70 |
|
|
| 71 |
|
// Initilize core styles |
| 72 |
|
$this->assets['style']['toggle'] = $this->url . 'assets/controls/toggle/css/toggle' . UIX_ASSET_DEBUG . '.css'; |
| 73 |
|
|
| 74 |
|
// Initilize core scripts |
| 75 |
|
$this->assets['script']['toggle-control-init'] = array( |
| 76 |
|
'src' => $this->url . 'assets/controls/toggle/js/toggle' . UIX_ASSET_DEBUG . '.js', |
| 77 |
|
'in_footer' => true, |
| 78 |
|
); |
| 79 |
|
|
| 80 |
|
parent::set_assets(); |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
/** |
| 84 |
|
* Gets the attributes for the control. |
classes/uix/ui/metabox.php 1 location
|
@@ 68-76 (lines=9) @@
|
| 65 |
|
* @see \uix\ui\uix |
| 66 |
|
* @access public |
| 67 |
|
*/ |
| 68 |
|
public function set_assets() { |
| 69 |
|
|
| 70 |
|
$this->assets['style']['metabox'] = $this->url . 'assets/css/metabox' . UIX_ASSET_DEBUG . '.css'; |
| 71 |
|
$this->assets['script']['baldrick'] = array( |
| 72 |
|
'src' => $this->url . 'assets/js/jquery.baldrick' . UIX_ASSET_DEBUG . '.js', |
| 73 |
|
'deps' => array( 'jquery' ), |
| 74 |
|
); |
| 75 |
|
parent::set_assets(); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
/** |
| 79 |
|
* Checks the screen object to determin if the metabox should load assets |