'.colorbox',
'maxWidth' => '90%',
'maxHeight' => '90%',
'opacity' => '0.6',
'fixed' => true,
'slideshowStart' => '▶', // Play symbol
'slideshowStop' => 'll', // Stop symbol
'current' => esc_js( sprintf( _x( 'Image %1$s of %2$s', 'colorbox', 'cakifo' ), '{current}', '{total}' ) ),
'previous' => esc_js( _x( 'Previous', 'colorbox', 'cakifo' ) ),
'next' => esc_js( _x( 'Next', 'colorbox', 'cakifo' ) ),
'close' => esc_js( _x( 'Close Lightbox', 'colorbox', 'cakifo' ) ),
'xhrError' => esc_js( _x( 'This content failed to load.', 'colorbox', 'cakifo' ) ),
'imgError' => esc_js( _x( 'This image failed to load.', 'colorbox', 'cakifo' ) ),
);
$args = array();
/**
* Allows child themes to filter the arguments.
*
* Usage:
*
* add_filter( 'cakifo_colorbox_args', 'my_child_colorbox_args' );
* function my_child_colorbox_args( $args ) {
* $args['selector'] = '.colorbox, .my-new-awesome-selector';
* return $args;
* }
*
*
* @param array $args The Colorbox arguments
*/
$args = apply_filters( 'cakifo_colorbox_args', $args );
// Parse incoming $args into an array and merge it with $defaults.
$args = wp_parse_args( $args, $defaults );
// Get the CSS selector and remove it from the arguments
$selector = $args['selector'];
unset( $args['selector'] );
// JSON encode the arguments
$json = json_encode( $args );
echo "";
}
?>