Description
Enqueue the jQuery script identifying dependencies
Usage
$string = bw_jquery_enqueue_script( $script, $debug );Parameters
- $script
- ( string ) required – the jQuery script including version number if part of file name
- $debug
- ( bool ) optional – whether or not debug is enabled
Returns
stringSource
File name: oik/shortcodes/oik-jquery.phpLines:
1 to 11 of 11
function bw_jquery_enqueue_script( $script, $debug=false ) { $enqueued = bw_jquery_script_is( $script ); if ( !$enqueued ) { $script_url = bw_jquery_script( $script, $debug ); $dependence = bw_jquery_dependencies( $script ); bw_trace2( $dependence, "dependence", true, BW_TRACE_VERBOSE ); $version = bw_jquery_file_version(); $enqueued = wp_enqueue_script( $script, $script_url, $dependence, $version ); } return( $enqueued ); }View on GitHub View on Trac
Called by
1 to 5 of 5
- bwsc_jquery() – Implement the [bw_jq] shortcode
- bw_accordion() – Display pages styled for jQuery accordion
- bw_countdown() – Implement the [bw_countdown] shortcode
- bw_cycle() – Implement bw_cycle shortcode that will handle all the things that we’ve had to do by hand until now
- bw_tabs() – Implement the [bw_tabs] shortcode to display posts or pages styled for jQuery tabs
Invoked by
Calls
1 to 4 of 4
- bw_jquery_dependencies() – Determine the dependencies for the jQuery script
- bw_jquery_script() – Determine the jQuery script file URL
- bw_jquery_script_is() – Wrapper to wp_script_is() to find out if we need to register and enqueue the script
- bw_trace2() – Trace $value to the trace log file if tracing is active
