Add more js params, update colorbox library

This commit is contained in:
Jay Wood
2014-11-17 09:43:23 -05:00
parent c1bdda5f7b
commit 03d285e07e

View File

@ -27,8 +27,9 @@ class CWV3 {
'cookie_path' => SITECOOKIEPATH, 'cookie_path' => SITECOOKIEPATH,
'cookie_name' => $this->get_cookie_name(), 'cookie_name' => $this->get_cookie_name(),
'cookie_time' => $cookie_death, 'cookie_time' => $cookie_death,
'denial' => get_option( 'cwv3_denial', 'enabled' ), 'denial_enabled' => get_option( 'cwv3_denial', 'enabled' ),
'denial_method' => get_option( 'cwv3_method_show', 'redirect' ), 'denial_method' => get_option( 'cwv3_method_show', 'redirect' ),
'redirect_url' => esc_js( get_option( 'cwv3_exit_link', '#' ) ),
) ); ) );
} }
@ -38,7 +39,7 @@ class CWV3 {
// Colorbox w/ MIT License // Colorbox w/ MIT License
wp_register_style( 'colorbox', plugins_url( 'js/colorbox.1.5.10/colorbox.css', dirname( __FILE__ ) ), '', '1.5.10', 'ALL' ); wp_register_style( 'colorbox', plugins_url( 'js/colorbox.1.5.10/colorbox.css', dirname( __FILE__ ) ), '', '1.5.10', 'ALL' );
wp_register_script( 'colorbox_js', plugins_url( "js/colorbox.1.5.10/jquery.colorbox{$min}.js", dirname( __FILE__ ) ), array( 'jquery' ), '1.5.10', true ); wp_register_script( 'colorbox_js', plugins_url( "js/colorbox.1.5.10/jquery.colorbox{$min}.js", dirname( __FILE__ ) ), array( 'jquery' ), '1.5.14', true );
// Jquery Cookie // Jquery Cookie
wp_register_script( 'jquery_cookie', plugins_url( "js/jquery_cookie{$min}.js", dirname( __FILE__ ) ), array( 'jquery' ), '1.4.1', true ); wp_register_script( 'jquery_cookie', plugins_url( "js/jquery_cookie{$min}.js", dirname( __FILE__ ) ), array( 'jquery' ), '1.4.1', true );