You appear to be a bot. Output may be restricted
Description
Determines the dependencies for the jQuery script
Usage
$array = bw_jquery_dependencies( $script );
Parameters
- $script
- ( string ) required – the name of the jQuery script e.g. nivo.slider
Returns
array scripts upon which this script are dependent. Defaults to array( 'jquery' )Source
File name: oik/shortcodes/oik-jquery.phpLines:
1 to 13 of 13
function bw_jquery_dependencies( $script ) { static $dependencies = array( "nivo.slider" => "jquery" , "anything" => "jquery" , "accordion" => "jquery-ui" , "flexslider" => "jquery" , "cycle" => "jquery" , "cycle.all" => "jquery,jquery-ui-core" ); $dependence = bw_array_get( $dependencies, $script, 'jquery' ); $dependence = bw_as_array( $dependence ); return( $dependence ); }View on GitHub View on Trac