public function enqueueJQueryChosenLibs()
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        $data = [
            'styles' => [
                'jquery-chosen' => [
                    'version' => '1.6.2',
                    'url'     => '//cdnjs.cloudflare.com/ajax/libs/chosen/%1$s/chosen.min.css',
                ],
            ],
            'scripts' => [
                'jquery-chosen' => [
                    'version'  => '1.6.2',
                    'deps'     => ['jquery'],
                    'url'      => '//cdnjs.cloudflare.com/ajax/libs/chosen/%1$s/chosen.jquery.min.js',
                    'localize' => [
                        'key'  => 'jazssggqbtujeebgvnskynzyzwqttqqzJQueryChosenData',
                        'data' => [
                            'defaultOptions' => [
                                'width'                     => '100%',
                                'search_contains'           => true,
                                'no_results_text'           => _x('No results.', 'jquery-chosen-libs', 'wp-sharks-core'),
                                'placeholder_text_multiple' => _x('Search or click to select options...', 'jquery-chosen-libs', 'wp-sharks-core'),
                                'placeholder_text_single'   => _x('Search or click to select an option...', 'jquery-chosen-libs', 'wp-sharks-core'),
                            ],
                        ],
                    ],
                ],
            ],
        ];
        return $this->enqueueLibs(__METHOD__, $data);
    }
public function enqueueJQueryChosenLibs()
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        $data = [
            'styles' => [
                'jquery-chosen' => [
                    'version' => '1.6.2',
                    'url'     => '//cdnjs.cloudflare.com/ajax/libs/chosen/%1$s/chosen.min.css',
                ],
            ],
            'scripts' => [
                'jquery-chosen' => [
                    'version'  => '1.6.2',
                    'deps'     => ['jquery'],
                    'url'      => '//cdnjs.cloudflare.com/ajax/libs/chosen/%1$s/chosen.jquery.min.js',
                    'localize' => [
                        'key'  => 'jazssggqbtujeebgvnskynzyzwqttqqzJQueryChosenData',
                        'data' => [
                            'defaultOptions' => [
                                'width'                     => '100%',
                                'search_contains'           => true,
                                'no_results_text'           => _x('No results.', 'jquery-chosen-libs', 'wp-sharks-core'),
                                'placeholder_text_multiple' => _x('Search or click to select options...', 'jquery-chosen-libs', 'wp-sharks-core'),
                                'placeholder_text_single'   => _x('Search or click to select an option...', 'jquery-chosen-libs', 'wp-sharks-core'),
                            ],
                        ],
                    ],
                ],
            ],
        ];
        return $this->enqueueLibs(__METHOD__, $data);
    }
public function enqueueJQueryChosenLibs ( ) { if ( ( $ data = $ this -> didEnqueueLibs ( __METHOD__ ) ) ) { return $ data ; // Did this already. } // We only need to enqueue once. $ data = [ 'styles' => [ 'jquery-chosen' => [ 'version' => '1.6.2' , 'url' => '//cdnjs.cloudflare.com/ajax/libs/chosen/%1$s/chosen.min.css' , ] , ] , 'scripts' => [ 'jquery-chosen' => [ 'version' => '1.6.2' , 'deps' => [ 'jquery' ] , 'url' => '//cdnjs.cloudflare.com/ajax/libs/chosen/%1$s/chosen.jquery.min.js' , 'localize' => [ 'key' => 'jazssggqbtujeebgvnskynzyzwqttqqzJQueryChosenData' , 'data' => [ 'defaultOptions' => [ 'width' => '100%' , 'search_contains' => true , 'no_results_text' => _x ( 'No results.' , 'jquery-chosen-libs' , 'wp-sharks-core' ) , 'placeholder_text_multiple' => _x ( 'Search or click to select options...' , 'jquery-chosen-libs' , 'wp-sharks-core' ) , 'placeholder_text_single' => _x ( 'Search or click to select an option...' , 'jquery-chosen-libs' , 'wp-sharks-core' ) , ] , ] , ] , ] , ] , ] ; return $ this -> enqueueLibs ( __METHOD__ , $ data ) ; }
Enqueue jQuery Chosen libs.

@since 160524 jQuery Chosen libs.

@return array Library details.
Enqueue jQuery Chosen libs .