@@ 270-275 (lines=6) @@ | ||
267 | wp_enqueue_style( 'sensei-core-select2', Sensei()->plugin_url . 'assets/css/select2/select2.css', '', Sensei()->version, 'screen' ); |
|
268 | ||
269 | // Test for Write Panel Pages |
|
270 | 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 ) ) ) { |
|
271 | ||
272 | wp_register_style( 'woothemes-sensei-admin-custom', Sensei()->plugin_url . 'assets/css/admin-custom.css', '', Sensei()->version, 'screen' ); |
|
273 | wp_enqueue_style( 'woothemes-sensei-admin-custom' ); |
|
274 | ||
275 | } |
|
276 | ||
277 | } // End admin_styles_global() |
|
278 |
@@ 1770-1772 (lines=3) @@ | ||
1767 | $allowed_pages = apply_filters( 'sensei_scripts_allowed_pages', array( 'sensei_grading', 'sensei_analysis', 'sensei_learners', 'sensei_updates', 'woothemes-sensei-settings' ) ); |
|
1768 | ||
1769 | // Test for Write Panel Pages |
|
1770 | 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 ) ) ) { |
|
1771 | wp_enqueue_style( 'woothemes-sensei-settings-api', esc_url( Sensei()->plugin_url . 'assets/css/settings.css' ), '', Sensei()->version ); |
|
1772 | } |
|
1773 | ||
1774 | } // End enqueue_styles() |
|
1775 |