From 8bb32ebea677de92196e6c3e12a55fc61d6f09ba Mon Sep 17 00:00:00 2001 From: Jay Wood Date: Mon, 17 Nov 2014 10:17:11 -0500 Subject: [PATCH] Remove ALL references to colorbox --- class/main.class.php | 8 ++------ inc/api.php | 2 ++ js/cwv3.js | 47 +++++++++++++++++++++++++------------------- js/cwv3.min.js | 2 +- 4 files changed, 32 insertions(+), 27 deletions(-) diff --git a/class/main.class.php b/class/main.class.php index 26bb23d..27d2750 100644 --- a/class/main.class.php +++ b/class/main.class.php @@ -37,16 +37,12 @@ class CWV3 { public function register_frontend_data() { $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; - // Colorbox w/ MIT License - wp_register_style( 'colorbox', plugins_url( 'js/colorbox.1.5.14/colorbox.css', dirname( __FILE__ ) ), '', '1.5.10', 'ALL' ); // Keeping old css version - wp_register_script( 'colorbox_js', plugins_url( "js/colorbox.1.5.14/jquery.colorbox{$min}.js", dirname( __FILE__ ) ), array( 'jquery' ), '1.5.14', true ); - // Jquery Cookie wp_register_script( 'jquery_cookie', plugins_url( "js/jquery_cookie{$min}.js", dirname( __FILE__ ) ), array( 'jquery' ), '1.4.1', true ); // Main data - wp_register_script( 'cwv3_js', plugins_url( "js/cwv3{$min}.js", dirname( __FILE__ ) ), array( 'colorbox_js', 'jquery_cookie' ), '3.6.0', true ); - wp_register_style( 'cwv3_css', plugins_url( "css/cwv3{$min}.css", dirname( __FILE__ ) ), array( 'colorbox' ), '1.0' ); + wp_register_script( 'cwv3_js', plugins_url( "js/cwv3{$min}.js", dirname( __FILE__ ) ), array( 'jquery_cookie' ), '3.6.0', true ); + wp_register_style( 'cwv3_css', plugins_url( "css/cwv3{$min}.css", dirname( __FILE__ ) ), '', '1.0' ); } public function get_cookie_name(){ diff --git a/inc/api.php b/inc/api.php index 7336db9..a3d1fd9 100644 --- a/inc/api.php +++ b/inc/api.php @@ -62,6 +62,7 @@ function cwv3_get_js_dialog(){ ob_start(); ?> +
@@ -85,6 +86,7 @@ function cwv3_get_js_dialog(){
+