| @@ 1761-1763 (lines=3) @@ | ||
| 1758 | $allowed_pages = apply_filters( 'sensei_scripts_allowed_pages', array( 'sensei_grading', 'sensei_analysis', 'sensei_learners', 'sensei_updates', 'woothemes-sensei-settings' ) ); |
|
| 1759 | ||
| 1760 | // Test for Write Panel Pages |
|
| 1761 | if ( ( ( isset( $post_type ) && in_array( $post_type, $allowed_post_types ) ) && ( isset( $hook ) && in_array( $hook, $allowed_post_type_pages ) ) ) || ( isset( $_GET['page'] ) && in_array( $_GET['page'], $allowed_pages ) ) ) { |
|
| 1762 | wp_enqueue_style( 'woothemes-sensei-settings-api', esc_url( Sensei()->plugin_url . 'assets/css/settings.css' ), '', Sensei()->version ); |
|
| 1763 | } |
|
| 1764 | ||
| 1765 | } // End enqueue_styles() |
|
| 1766 | ||
| @@ 266-271 (lines=6) @@ | ||
| 263 | wp_enqueue_style( 'sensei-core-select2', Sensei()->plugin_url . 'assets/css/select2/select2.css', '', Sensei()->version, 'screen' ); |
|
| 264 | ||
| 265 | // Test for Write Panel Pages |
|
| 266 | if ( ( ( isset( $post_type ) && in_array( $post_type, $allowed_post_types ) ) && ( isset( $hook ) && in_array( $hook, $allowed_post_type_pages ) ) ) || ( isset( $_GET['page'] ) && in_array( $_GET['page'], $allowed_pages ) ) ) { |
|
| 267 | ||
| 268 | wp_register_style( 'woothemes-sensei-admin-custom', Sensei()->plugin_url . 'assets/css/admin-custom.css', '', Sensei()->version, 'screen' ); |
|
| 269 | wp_enqueue_style( 'woothemes-sensei-admin-custom' ); |
|
| 270 | ||
| 271 | } |
|
| 272 | ||
| 273 | } // End admin_styles_global() |
|
| 274 | ||