Version Description
- Fixed notice option
Download this release
Release Info
Developer | blakedotvegas |
Plugin | Video Background |
Version | 2.5.3 |
Comparing to | |
See all releases |
Code changes from version 2.5.2 to 2.5.3
- admin_premium_notice.php +2 -12
- candide-vidbg.php +2 -2
- readme.txt +4 -1
admin_premium_notice.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
function vidbg_premium_notice() {
|
6 |
$class = 'notice notice-success vidbg-premium-notice is-dismissible';
|
7 |
$message = __( 'Youtube, Visual Composer, and SiteOrigin Integration with much more in the new Video Background Pro! <a href="http://pushlabs.co/video-background-pro" target="_blank">Learn more »</a>', 'video-background' );
|
8 |
-
$is_dismissed = get_option( '
|
9 |
|
10 |
if( empty( $is_dismissed ) ) {
|
11 |
printf( '<div class="%1$s"><p>%2$s</p></div>', $class, $message );
|
@@ -19,17 +19,7 @@ add_action( 'admin_notices', 'vidbg_premium_notice' );
|
|
19 |
* Ajax handler to permanently dismiss notice
|
20 |
*/
|
21 |
function vidbg_dismiss_premium_notice() {
|
22 |
-
update_option( '
|
23 |
}
|
24 |
add_action( 'wp_ajax_vidbg_dismiss_premium_notice', 'vidbg_dismiss_premium_notice' );
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Restore permanently dismissed premium notice message
|
30 |
-
*/
|
31 |
-
function vidbg_restore_premium_notice() {
|
32 |
-
/* delete_option( 'vidbg-premium-notice-dismissed' ); */
|
33 |
-
}
|
34 |
-
add_action( 'admin_init', 'vidbg_restore_premium_notice' );
|
35 |
?>
|
5 |
function vidbg_premium_notice() {
|
6 |
$class = 'notice notice-success vidbg-premium-notice is-dismissible';
|
7 |
$message = __( 'Youtube, Visual Composer, and SiteOrigin Integration with much more in the new Video Background Pro! <a href="http://pushlabs.co/video-background-pro" target="_blank">Learn more »</a>', 'video-background' );
|
8 |
+
$is_dismissed = get_option( 'vidbgpro-notice-dismissed' );
|
9 |
|
10 |
if( empty( $is_dismissed ) ) {
|
11 |
printf( '<div class="%1$s"><p>%2$s</p></div>', $class, $message );
|
19 |
* Ajax handler to permanently dismiss notice
|
20 |
*/
|
21 |
function vidbg_dismiss_premium_notice() {
|
22 |
+
update_option( 'vidbgpro-notice-dismissed', 1 );
|
23 |
}
|
24 |
add_action( 'wp_ajax_vidbg_dismiss_premium_notice', 'vidbg_dismiss_premium_notice' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
?>
|
candide-vidbg.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Video Background
|
|
4 |
Plugin URI: http://blakewilson.me/projects/video-background/
|
5 |
Description: jQuery WordPress plugin to easily assign a video background to any element. Awesome.
|
6 |
Author: Blake Wilson
|
7 |
-
Version: 2.5.
|
8 |
Author URI: http://blakewilson.me
|
9 |
Donate Link: http://paypal.me/blakewilsonme
|
10 |
Text Domain: video-background
|
@@ -33,7 +33,7 @@ function vidbg_install_plugin() {
|
|
33 |
if( is_plugin_active( 'video-background-pro/vidbgpro.php') ) {
|
34 |
deactivate_plugins( 'video-background-pro/vidbgpro.php' );
|
35 |
}
|
36 |
-
delete_option( '
|
37 |
}
|
38 |
register_activation_hook( __FILE__, 'vidbg_install_plugin' );
|
39 |
|
4 |
Plugin URI: http://blakewilson.me/projects/video-background/
|
5 |
Description: jQuery WordPress plugin to easily assign a video background to any element. Awesome.
|
6 |
Author: Blake Wilson
|
7 |
+
Version: 2.5.3
|
8 |
Author URI: http://blakewilson.me
|
9 |
Donate Link: http://paypal.me/blakewilsonme
|
10 |
Text Domain: video-background
|
33 |
if( is_plugin_active( 'video-background-pro/vidbgpro.php') ) {
|
34 |
deactivate_plugins( 'video-background-pro/vidbgpro.php' );
|
35 |
}
|
36 |
+
delete_option( 'vidbgpro-notice-dismissed' );
|
37 |
}
|
38 |
register_activation_hook( __FILE__, 'vidbg_install_plugin' );
|
39 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: blakedotvegas
|
|
3 |
Tags: html5, video background, mp4, webm, responsive, shortcode, overlay, fullscreen background, fullscreen, html5 video background, metabox, blake wilson, loop, mute, unmute
|
4 |
Requires at least: 3.8.0
|
5 |
Tested up to: 4.5
|
6 |
-
Stable tag: 2.5.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
Donate link: https://www.paypal.me/blakewilsonme
|
@@ -81,6 +81,9 @@ To add a video background to a class called **header** add ".header" to the cont
|
|
81 |
|
82 |
== Changelog ==
|
83 |
|
|
|
|
|
|
|
84 |
= 2.5.2 =
|
85 |
* Added fade in/out transitions on advanced panel
|
86 |
* Simplified/cleaned up a lot of code
|
3 |
Tags: html5, video background, mp4, webm, responsive, shortcode, overlay, fullscreen background, fullscreen, html5 video background, metabox, blake wilson, loop, mute, unmute
|
4 |
Requires at least: 3.8.0
|
5 |
Tested up to: 4.5
|
6 |
+
Stable tag: 2.5.3
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
Donate link: https://www.paypal.me/blakewilsonme
|
81 |
|
82 |
== Changelog ==
|
83 |
|
84 |
+
= 2.5.3 =
|
85 |
+
* Fixed notice option
|
86 |
+
|
87 |
= 2.5.2 =
|
88 |
* Added fade in/out transitions on advanced panel
|
89 |
* Simplified/cleaned up a lot of code
|