Video Background - Version 2.0.1

Version Description

  • Added page post type
Download this release

Release Info

Developer blakedotvegas
Plugin Icon 128x128 Video Background
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0.0 to 2.0.1

Files changed (2) hide show
  1. candide-vidbg.php +7 -3
  2. readme.txt +5 -2
candide-vidbg.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Video Background
4
  Plugin URI: http://blake.vegas
5
  Description: jQuery WordPress plugin to easily assign a video background to any element. Awesome.
6
  Author: Blake Wilson
7
- Version: 2.0.0
8
  Author URI: http://blake.vegas
9
  */
10
 
@@ -26,11 +26,15 @@ add_action('wp_footer', 'vidbg_jquery' );
26
 
27
  /**
28
  * Add Metabox for video background v2
 
29
  */
30
  add_action( 'add_meta_boxes', 'vidbg_metabox_add' );
31
- function vidbg_metabox_add()
32
  {
33
- add_meta_box( 'vidbg-metabox', 'Video Background', 'vidbg_meta_box_cb', 'post', 'normal', 'high' );
 
 
 
34
  }
35
 
36
  function vidbg_meta_box_cb( $post )
4
  Plugin URI: http://blake.vegas
5
  Description: jQuery WordPress plugin to easily assign a video background to any element. Awesome.
6
  Author: Blake Wilson
7
+ Version: 2.0.1
8
  Author URI: http://blake.vegas
9
  */
10
 
26
 
27
  /**
28
  * Add Metabox for video background v2
29
+ * Added page post type
30
  */
31
  add_action( 'add_meta_boxes', 'vidbg_metabox_add' );
32
+ function vidbg_metabox_add( $post_type )
33
  {
34
+ $post_types = array( 'post', 'page' );
35
+ if ( in_array( $post_type, $post_types )) {
36
+ add_meta_box( 'vidbg-metabox', 'Video Background', 'vidbg_meta_box_cb', $post_type, 'normal', 'high' );
37
+ }
38
  }
39
 
40
  function vidbg_meta_box_cb( $post )
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: blakedotvegas
3
  Tags: html5, video background, mp4, webm, ogv, responsive, shortcode
4
  Requires at least: 4.0
5
  Tested up to: 4.3
6
- Stable tag: 2.0.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -29,7 +29,7 @@ Installation is simple.
29
 
30
  1. Upload `video-background` to the `/wp-content/plugins/` directory
31
  1. Activate the plugin through the 'Plugins' menu in WordPress
32
- 1. Select the "Video Background" TinyMCE button on the page you'd like the video background to show up on.
33
 
34
  == Frequently Asked Questions ==
35
 
@@ -47,6 +47,9 @@ To add a video background to a class called **header** add ".header" to the cont
47
 
48
  == Changelog ==
49
 
 
 
 
50
  = 2.0.0 =
51
  * Video Background: Now in a metabox! No longer do you have to worry about generating a shortcode.
52
 
3
  Tags: html5, video background, mp4, webm, ogv, responsive, shortcode
4
  Requires at least: 4.0
5
  Tested up to: 4.3
6
+ Stable tag: 2.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
29
 
30
  1. Upload `video-background` to the `/wp-content/plugins/` directory
31
  1. Activate the plugin through the 'Plugins' menu in WordPress
32
+ 1. Fill in the settings on the “Video Background metabox on the page or post you'd like the video background to show up on.
33
 
34
  == Frequently Asked Questions ==
35
 
47
 
48
  == Changelog ==
49
 
50
+ = 2.0.1 =
51
+ * Added page post type
52
+
53
  = 2.0.0 =
54
  * Video Background: Now in a metabox! No longer do you have to worry about generating a shortcode.
55