You appear to be a bot. Output may be restricted
Description
Usage
Jetpack_Custom_CSS::enqueue_scripts( $hook );
Parameters
- $hook
- ( mixed ) required –
Returns
void
Source
File name: jetpack/modules/custom-css/custom-css.php
Lines:
1 to 34 of 34
static function enqueue_scripts( $hook ) { if ( 'appearance_page_editcss' != $hook ) return; wp_enqueue_script( 'postbox' ); wp_enqueue_script( 'custom-css-editor', Assets::get_file_url_for_environment( '_inc/build/custom-css/custom-css/js/css-editor.min.js', 'modules/custom-css/custom-css/js/css-editor.js' ), 'jquery', '20130325', true ); wp_enqueue_style( 'custom-css-editor', plugins_url( 'custom-css/css/css-editor.css', __FILE__ ) ); if ( defined( 'SAFECSS_USE_ACE' ) && SAFECSS_USE_ACE ) { wp_register_style( 'jetpack-css-codemirror', plugins_url( 'custom-css/css/codemirror.css', __FILE__ ), array(), '20120905' ); wp_enqueue_style( 'jetpack-css-use-codemirror', plugins_url( 'custom-css/css/use-codemirror.css', __FILE__ ), array( 'jetpack-css-codemirror' ), '20120905' ); wp_register_script( 'jetpack-css-codemirror', plugins_url( 'custom-css/js/codemirror.min.js', __FILE__ ), array(), '3.16', true ); wp_enqueue_script( 'jetpack-css-use-codemirror', Assets::get_file_url_for_environment( '_inc/build/custom-css/custom-css/js/use-codemirror.min.js', 'modules/custom-css/custom-css/js/use-codemirror.js' ), array( 'jquery', 'underscore', 'jetpack-css-codemirror' ), '20131009', true ); } }