Video Background - Version 2.4.1

Version Description

  • Removed those pesky php notices on blog page when no front page was set and WP_DEBUG was true
  • Updated tested up to tag
Download this release

Release Info

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

Code changes from version 2.4.0 to 2.4.1

Files changed (2) hide show
  1. candide-vidbg.php +11 -11
  2. readme.txt +6 -2
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.4.0
8
  Author URI: http://blakewilson.me
9
  */
10
 
@@ -197,17 +197,17 @@ function vidbg_initialize_footer() {
197
  $pattern_overlay = get_post_meta( $post->ID, 'vidbg_metabox_field_overlay', true );
198
  $no_loop_field = get_post_meta( $post->ID, 'vidbg_metabox_field_no_loop', true );
199
  $unmute_field = get_post_meta( $post->ID, 'vidbg_metabox_field_unmute', true );
200
- } elseif (is_home()) {
201
- $page_object = get_queried_object();
202
- $container_field = get_post_meta( $page_object->ID, 'vidbg_metabox_field_container', true );
203
- $mp4_field = get_post_meta( $page_object->ID, 'vidbg_metabox_field_mp4', true );
204
- $webm_field = get_post_meta( $page_object->ID, 'vidbg_metabox_field_webm', true );
205
- $poster_field = get_post_meta( $page_object->ID, 'vidbg_metabox_field_poster', true );
206
- $pattern_overlay = get_post_meta( $page_object->ID, 'vidbg_metabox_field_overlay', true );
207
- $no_loop_field = get_post_meta( $page_object->ID, 'vidbg_metabox_field_no_loop', true );
208
- $unmute_field = get_post_meta( $page_object->ID, 'vidbg_metabox_field_unmute', true );
209
  } ?>
210
- <?php if($container_field): ?>
211
  <script type="text/javascript">
212
  jQuery(function($){
213
  $('<?php echo $container_field; ?>').vidbg({
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.4.1
8
  Author URI: http://blakewilson.me
9
  */
10
 
197
  $pattern_overlay = get_post_meta( $post->ID, 'vidbg_metabox_field_overlay', true );
198
  $no_loop_field = get_post_meta( $post->ID, 'vidbg_metabox_field_no_loop', true );
199
  $unmute_field = get_post_meta( $post->ID, 'vidbg_metabox_field_unmute', true );
200
+ } elseif ( is_home() && get_option('show_on_front') == 'page' ) {
201
+ $blog_page_id = get_option('page_for_posts');
202
+ $container_field = get_post_meta( $blog_page_id, 'vidbg_metabox_field_container', true );
203
+ $mp4_field = get_post_meta( $blog_page_id, 'vidbg_metabox_field_mp4', true );
204
+ $webm_field = get_post_meta( $blog_page_id, 'vidbg_metabox_field_webm', true );
205
+ $poster_field = get_post_meta( $blog_page_id, 'vidbg_metabox_field_poster', true );
206
+ $pattern_overlay = get_post_meta( $blog_page_id, 'vidbg_metabox_field_overlay', true );
207
+ $no_loop_field = get_post_meta( $blog_page_id, 'vidbg_metabox_field_no_loop', true );
208
+ $unmute_field = get_post_meta( $blog_page_id, 'vidbg_metabox_field_unmute', true );
209
  } ?>
210
+ <?php if( isset( $container_field ) ): ?>
211
  <script type="text/javascript">
212
  jQuery(function($){
213
  $('<?php echo $container_field; ?>').vidbg({
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  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.2
5
- Tested up to: 4.4
6
- Stable tag: 2.4.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -76,6 +76,10 @@ To add a video background to a class called **header** add ".header" to the cont
76
 
77
  == Changelog ==
78
 
 
 
 
 
79
  = 2.4.0 =
80
  * Now stable for Wordpress 4.4
81
  * Modified links to new URL
2
  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.2
5
+ Tested up to: 4.4.2
6
+ Stable tag: 2.4.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
76
 
77
  == Changelog ==
78
 
79
+ = 2.4.1 =
80
+ * Removed those pesky php notices on blog page when no front page was set and WP_DEBUG was true
81
+ * Updated tested up to tag
82
+
83
  = 2.4.0 =
84
  * Now stable for Wordpress 4.4
85
  * Modified links to new URL