Video Background - Version 2.2.2

Version Description

  • Fixed blurred circle play button bug on iOS devices
Download this release

Release Info

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

Code changes from version 2.2.1 to 2.2.2

Files changed (2) hide show
  1. candide-vidbg.php +6 -15
  2. readme.txt +4 -1
candide-vidbg.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Video Background
4
  Plugin URI: http://blake.vegas/plugins/video-background/
5
  Description: jQuery WordPress plugin to easily assign a video background to any element. Awesome.
6
  Author: Blake Wilson
7
- Version: 2.2.1
8
  Author URI: http://blake.vegas
9
  */
10
 
@@ -21,7 +21,7 @@ add_action('admin_enqueue_scripts', 'vidbg_metabox_scripts');
21
  * Enqueue vidbg jquery script
22
  */
23
  function vidbg_jquery() {
24
- wp_enqueue_script('vidbg-video-background', plugins_url('/js/jquery.vidbg-min.js', __FILE__), array('jquery'), '2.2.1', true);
25
  }
26
  add_action('wp_footer', 'vidbg_jquery' );
27
 
@@ -248,19 +248,10 @@ function vidbg_initialize_header() {
248
  $page_object = get_queried_object();
249
  $pattern_overlay = get_post_meta( $page_object->ID, 'vidbg_metabox_field_overlay', true );
250
  } ?>
251
- <?php if($pattern_overlay == 'on'): ?>
252
- <style>
253
- .vidbg-overlay {
254
- background: url("<?php echo plugins_url( 'images/overlay.png', __FILE__ ); ?>") repeat;
255
- position: absolute;
256
- top:0;
257
- right:0;
258
- left:0;
259
- bottom:0;
260
- z-index: -1;
261
- }
262
- </style>
263
- <?php endif; ?>
264
  <?php }
265
  }
266
  add_action( 'wp_head', 'vidbg_initialize_header' );
4
  Plugin URI: http://blake.vegas/plugins/video-background/
5
  Description: jQuery WordPress plugin to easily assign a video background to any element. Awesome.
6
  Author: Blake Wilson
7
+ Version: 2.2.2
8
  Author URI: http://blake.vegas
9
  */
10
 
21
  * Enqueue vidbg jquery script
22
  */
23
  function vidbg_jquery() {
24
+ wp_enqueue_script('vidbg-video-background', plugins_url('/js/jquery.vidbg-min.js', __FILE__), array('jquery'), '2.2.2', true);
25
  }
26
  add_action('wp_footer', 'vidbg_jquery' );
27
 
248
  $page_object = get_queried_object();
249
  $pattern_overlay = get_post_meta( $page_object->ID, 'vidbg_metabox_field_overlay', true );
250
  } ?>
251
+ <style>
252
+ .vidbg-container video::-webkit-media-controls-start-playback-button {display: none !important;-webkit-appearance: none;}
253
+ <?php if($pattern_overlay == 'on'): ?>.vidbg-overlay {background: url("<?php echo plugins_url( 'images/overlay.png', __FILE__ ); ?>") repeat;position: absolute;top:0;right:0;left:0;bottom:0;z-index: -1;}<?php endif; ?>
254
+ </style>
 
 
 
 
 
 
 
 
 
255
  <?php }
256
  }
257
  add_action( 'wp_head', 'vidbg_initialize_header' );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=VAQJG
4
  Tags: html5, video background, mp4, webm, responsive, shortcode, overlay, fullscreen background, fullscreen, html5 video background, metabox, blake vegas, loop, mute, unmute
5
  Requires at least: 3.2
6
  Tested up to: 4.3.1
7
- Stable tag: 2.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -73,6 +73,9 @@ To add a video background to a class called **header** add ".header" to the cont
73
 
74
  == Changelog ==
75
 
 
 
 
76
  = 2.2.1 =
77
  * Cleaned up code
78
  * Added donate link
4
  Tags: html5, video background, mp4, webm, responsive, shortcode, overlay, fullscreen background, fullscreen, html5 video background, metabox, blake vegas, loop, mute, unmute
5
  Requires at least: 3.2
6
  Tested up to: 4.3.1
7
+ Stable tag: 2.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
73
 
74
  == Changelog ==
75
 
76
+ = 2.2.2 =
77
+ * Fixed blurred circle play button bug on iOS devices
78
+
79
  = 2.2.1 =
80
  * Cleaned up code
81
  * Added donate link