'.colorbox',
'maxWidth' => '80%',
'maxHeight' => '80%',
'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();
/**
* Allow child themes to filter the arguments. Use it like this:
*
*
* add_filter( 'cakifo_colorbox_args', 'my_child_colorbox_args' );
* function my_child_colorbox_args( $args ) {
* $args['selector'] = '.colorbox, .my-new-awesome-selector';
* return $args;
* }
*
*
* @var array
*/
$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 selector and remove it from the arguments
$selector = $args['selector'];
unset( $args['selector'] );
// JSON encode the arguments
$json = json_encode( $args );
echo "";
}
?>