Changeset 1276996
- Timestamp:
- 10/31/2015 04:17:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
easy-wysiwyg-style/trunk/admin/class-easy-wysiwyg-style-admin.php
r1276976 r1276996 34 34 */ 35 35 public function enqueue_styles() { 36 wp_enqueue_style( 37 'bootstrap', 38 plugin_dir_url( __FILE__ ) . 'css/bootstrap.min.css', 39 array(), 40 $this->version, 41 FALSE 42 ); 36 $currentScreen = get_current_screen(); 37 if( $currentScreen->base === "settings_page_options_ews_page" ) { 38 // Run some code, only on the admin widgets page 39 wp_enqueue_style( 40 'bootstrap', 41 plugin_dir_url( __FILE__ ) . 'css/bootstrap.min.css', 42 array(), 43 $this->version, 44 FALSE 45 ); 46 } 43 47 } 44 48
Note: See TracChangeset
for help on using the changeset viewer.