Video Background - Version 2.5.8

Version Description

  • Fixed: Conditionally enqueue vidbg script
Download this release

Release Info

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

Code changes from version 2.5.7 to 2.5.8

admin_premium_notice.php CHANGED
@@ -8,7 +8,7 @@
8
  */
9
  function vidbg_premium_notice() {
10
  $class = 'notice notice-success vidbg-premium-notice is-dismissible';
11
- $message = __( 'Want more options like YouTube video backgrounds and frontend play/volume buttons in Video Background? <a href="http://pushlabs.co/video-background-pro" rel="nofollow" target="_blank">Check out the new Video Background Pro!</a>', 'video-background' );
12
  $is_dismissed = get_option( 'vidbgpro-notice-dismissed' );
13
 
14
  if( empty( $is_dismissed ) ) {
8
  */
9
  function vidbg_premium_notice() {
10
  $class = 'notice notice-success vidbg-premium-notice is-dismissible';
11
+ $message = __( 'Digital agencies and web developers rejoice! Video Background Pro now offers multi-site licenses! <a href="http://pushlabs.co/video-background-pro" rel="nofollow" target="_blank">Check out Video Background Pro!</a>', 'video-background' );
12
  $is_dismissed = get_option( 'vidbgpro-notice-dismissed' );
13
 
14
  if( empty( $is_dismissed ) ) {
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.7
8
  Author URI: http://blakewilson.me
9
  Donate Link: http://paypal.me/blakewilsonme
10
  Text Domain: video-background
@@ -83,9 +83,9 @@ add_action('admin_enqueue_scripts', 'vidbg_metabox_scripts');
83
  * @uses plugins_url()
84
  */
85
  function vidbg_jquery() {
86
- wp_enqueue_script('vidbg-video-background', plugins_url('/js/dist/vidbg.min.js', __FILE__), array('jquery'), '1.1', true);
87
  }
88
- add_action('wp_footer', 'vidbg_jquery' );
89
 
90
  /**
91
  * Add custom color palette
@@ -330,6 +330,12 @@ function vidbg_initialize_footer() {
330
 
331
  if( !empty( $container_field ) ): ?>
332
  <?php
 
 
 
 
 
 
333
  if( $unmute_field == 'on' ) {
334
  $boolean_mute = 'false';
335
  } else {
@@ -408,6 +414,11 @@ function candide_video_background( $atts , $content = null ) {
408
  )
409
  );
410
 
 
 
 
 
 
411
  // Put It Together
412
  ob_start(); ?>
413
  <script>
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
8
  Author URI: http://blakewilson.me
9
  Donate Link: http://paypal.me/blakewilsonme
10
  Text Domain: video-background
83
  * @uses plugins_url()
84
  */
85
  function vidbg_jquery() {
86
+ wp_register_script( 'vidbg-video-background', plugins_url('/js/dist/vidbg.min.js', __FILE__), array('jquery'), '1.1', true);
87
  }
88
+ add_action( 'wp_enqueue_scripts', 'vidbg_jquery' );
89
 
90
  /**
91
  * Add custom color palette
330
 
331
  if( !empty( $container_field ) ): ?>
332
  <?php
333
+
334
+ /**
335
+ * Enqueue the vidbg script conditionally
336
+ */
337
+ wp_enqueue_script( 'vidbg-video-background' );
338
+
339
  if( $unmute_field == 'on' ) {
340
  $boolean_mute = 'false';
341
  } else {
414
  )
415
  );
416
 
417
+ /**
418
+ * Enqueue vidbg conditionally
419
+ */
420
+ wp_enqueue_script( 'vidbg-video-background' );
421
+
422
  // Put It Together
423
  ob_start(); ?>
424
  <script>
languages/video-background.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Video Background\n"
6
- "POT-Creation-Date: 2016-07-18 16:58-0700\n"
7
  "PO-Revision-Date: 2016-03-30 22:31-0700\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
@@ -22,10 +22,9 @@ msgstr ""
22
 
23
  #: admin_premium_notice.php:11
24
  msgid ""
25
- "Want more options like YouTube video backgrounds and frontend play/volume "
26
- "buttons in Video Background? <a href=\"http://pushlabs.co/video-background-"
27
- "pro\" rel=\"nofollow\" target=\"_blank\">Check out the new Video Background "
28
- "Pro!</a>"
29
  msgstr ""
30
 
31
  #: candide-vidbg.php:71
@@ -201,82 +200,82 @@ msgid ""
201
  "options-button\">Show Advanced options</a>"
202
  msgstr ""
203
 
204
- #: candide-vidbg.php:480 candide-vidbg.php:487
205
  msgid "Hide Muted Pro Fields"
206
  msgstr ""
207
 
208
- #: candide-vidbg.php:525
209
  msgid ""
210
  "Okay, Okay, some of you don't want/need Video Background Pro. I get that. "
211
  "That's why you can hide the muted pro fields below :)"
212
  msgstr ""
213
 
214
- #: candide-vidbg.php:540
215
  msgid "<h2>Video Background</h2>"
216
  msgstr ""
217
 
218
- #: candide-vidbg.php:541
219
  msgid ""
220
  "<p>Video background makes it easy to add responsive, great looking video "
221
  "backgrounds to any element on your website.</p>"
222
  msgstr ""
223
 
224
- #: candide-vidbg.php:542
225
  msgid "<h3>Getting Started</h3>"
226
  msgstr ""
227
 
228
- #: candide-vidbg.php:543
229
  msgid ""
230
  "<p>To implement Video Background on your website, please follow the "
231
  "instructions below."
232
  msgstr ""
233
 
234
- #: candide-vidbg.php:545
235
  msgid ""
236
  "<li>Edit the page or post you would like the video background to appear on.</"
237
  "li>"
238
  msgstr ""
239
 
240
- #: candide-vidbg.php:546
241
  msgid ""
242
  "<li>Below the content editor, you should see a metabox titled <b>Video "
243
  "Background</b>. Enter the values for the required fields and publish/update "
244
  "the page.</li>"
245
  msgstr ""
246
 
247
- #: candide-vidbg.php:547
248
  msgid "<li>Enjoy.</li>"
249
  msgstr ""
250
 
251
- #: candide-vidbg.php:549
252
  msgid ""
253
  "<p>Alternatively, you can use the shortcode by placing the following code at "
254
  "the bottom of the content editor of the page or post you would like the "
255
  "video background to appear on. Here is how it works:</p>"
256
  msgstr ""
257
 
258
- #: candide-vidbg.php:551
259
  msgid ""
260
  "<a href=\"http://blakewilson.me/projects/video-background/\" class=\"button"
261
  "\" target=\"_blank\">Further Documentation</a>"
262
  msgstr ""
263
 
264
- #: candide-vidbg.php:552
265
  msgid "<h3>Questions?</h3>"
266
  msgstr ""
267
 
268
- #: candide-vidbg.php:553
269
  msgid ""
270
  "<p>If you have any feedback/questions regarding the plugin you can reach me "
271
  "<a href=\"https://wordpress.org/support/plugin/video-background\" target="
272
  "\"_blank\">here.</a>"
273
  msgstr ""
274
 
275
- #: candide-vidbg.php:554
276
  msgid "<h3>Supporting the Plugin</h3>"
277
  msgstr ""
278
 
279
- #: candide-vidbg.php:555
280
  msgid ""
281
  "<p>If you like Video Background and want to show your support, consider "
282
  "purchasing the <a href=\"http://pushlabs.co/video-background-pro\" rel="
@@ -284,57 +283,57 @@ msgid ""
284
  "helpful features that make your life easier like:</p>"
285
  msgstr ""
286
 
287
- #: candide-vidbg.php:557
288
  msgid "<li>YouTube Integration</li>"
289
  msgstr ""
290
 
291
- #: candide-vidbg.php:558
292
  msgid "<li>Visual Composer Integration</li>"
293
  msgstr ""
294
 
295
- #: candide-vidbg.php:559
296
  msgid "<li>Page Builder by SiteOrigin Integration</li>"
297
  msgstr ""
298
 
299
- #: candide-vidbg.php:560
300
  msgid "<li>Frontend Play/Pause Button Option</li>"
301
  msgstr ""
302
 
303
- #: candide-vidbg.php:561
304
  msgid "<li>Frontend Volume Button Option</li>"
305
  msgstr ""
306
 
307
- #: candide-vidbg.php:562
308
  msgid "<li>Overlay Image Textures</li>"
309
  msgstr ""
310
 
311
- #: candide-vidbg.php:563
312
  msgid "<li>Extensive Documentation</li>"
313
  msgstr ""
314
 
315
- #: candide-vidbg.php:564
316
  msgid "<li>Video Tutorials</li>"
317
  msgstr ""
318
 
319
- #: candide-vidbg.php:565
320
  msgid "<li>And Much More!</li>"
321
  msgstr ""
322
 
323
- #: candide-vidbg.php:567
324
  msgid ""
325
  "<a href=\"http://pushlabs.co/video-background-pro\" class=\"button button-"
326
  "primary\" rel=\"nofollow\" target=\"_blank\">Learn More About Video "
327
  "Background Pro</a>"
328
  msgstr ""
329
 
330
- #: candide-vidbg.php:568
331
  msgid ""
332
  " <a href=\"https://twitter.com/intent/follow?screen_name=blakewilsonme\" "
333
  "class=\"button button-primary vidbg-twitter\" target=\"_blank\">Get Updates "
334
  "on Twitter</a>"
335
  msgstr ""
336
 
337
- #: candide-vidbg.php:585
338
  msgid "<a href=\"options-general.php?page=html5-vidbg\">Getting Started</a>"
339
  msgstr ""
340
 
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Video Background\n"
6
+ "POT-Creation-Date: 2016-08-08 01:20-0700\n"
7
  "PO-Revision-Date: 2016-03-30 22:31-0700\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
22
 
23
  #: admin_premium_notice.php:11
24
  msgid ""
25
+ "Digital agencies and web developers rejoice! Video Background Pro now offers "
26
+ "multi-site licenses! <a href=\"http://pushlabs.co/video-background-pro\" rel="
27
+ "\"nofollow\" target=\"_blank\">Check out Video Background Pro!</a>"
 
28
  msgstr ""
29
 
30
  #: candide-vidbg.php:71
200
  "options-button\">Show Advanced options</a>"
201
  msgstr ""
202
 
203
+ #: candide-vidbg.php:491 candide-vidbg.php:498
204
  msgid "Hide Muted Pro Fields"
205
  msgstr ""
206
 
207
+ #: candide-vidbg.php:536
208
  msgid ""
209
  "Okay, Okay, some of you don't want/need Video Background Pro. I get that. "
210
  "That's why you can hide the muted pro fields below :)"
211
  msgstr ""
212
 
213
+ #: candide-vidbg.php:551
214
  msgid "<h2>Video Background</h2>"
215
  msgstr ""
216
 
217
+ #: candide-vidbg.php:552
218
  msgid ""
219
  "<p>Video background makes it easy to add responsive, great looking video "
220
  "backgrounds to any element on your website.</p>"
221
  msgstr ""
222
 
223
+ #: candide-vidbg.php:553
224
  msgid "<h3>Getting Started</h3>"
225
  msgstr ""
226
 
227
+ #: candide-vidbg.php:554
228
  msgid ""
229
  "<p>To implement Video Background on your website, please follow the "
230
  "instructions below."
231
  msgstr ""
232
 
233
+ #: candide-vidbg.php:556
234
  msgid ""
235
  "<li>Edit the page or post you would like the video background to appear on.</"
236
  "li>"
237
  msgstr ""
238
 
239
+ #: candide-vidbg.php:557
240
  msgid ""
241
  "<li>Below the content editor, you should see a metabox titled <b>Video "
242
  "Background</b>. Enter the values for the required fields and publish/update "
243
  "the page.</li>"
244
  msgstr ""
245
 
246
+ #: candide-vidbg.php:558
247
  msgid "<li>Enjoy.</li>"
248
  msgstr ""
249
 
250
+ #: candide-vidbg.php:560
251
  msgid ""
252
  "<p>Alternatively, you can use the shortcode by placing the following code at "
253
  "the bottom of the content editor of the page or post you would like the "
254
  "video background to appear on. Here is how it works:</p>"
255
  msgstr ""
256
 
257
+ #: candide-vidbg.php:562
258
  msgid ""
259
  "<a href=\"http://blakewilson.me/projects/video-background/\" class=\"button"
260
  "\" target=\"_blank\">Further Documentation</a>"
261
  msgstr ""
262
 
263
+ #: candide-vidbg.php:563
264
  msgid "<h3>Questions?</h3>"
265
  msgstr ""
266
 
267
+ #: candide-vidbg.php:564
268
  msgid ""
269
  "<p>If you have any feedback/questions regarding the plugin you can reach me "
270
  "<a href=\"https://wordpress.org/support/plugin/video-background\" target="
271
  "\"_blank\">here.</a>"
272
  msgstr ""
273
 
274
+ #: candide-vidbg.php:565
275
  msgid "<h3>Supporting the Plugin</h3>"
276
  msgstr ""
277
 
278
+ #: candide-vidbg.php:566
279
  msgid ""
280
  "<p>If you like Video Background and want to show your support, consider "
281
  "purchasing the <a href=\"http://pushlabs.co/video-background-pro\" rel="
283
  "helpful features that make your life easier like:</p>"
284
  msgstr ""
285
 
286
+ #: candide-vidbg.php:568
287
  msgid "<li>YouTube Integration</li>"
288
  msgstr ""
289
 
290
+ #: candide-vidbg.php:569
291
  msgid "<li>Visual Composer Integration</li>"
292
  msgstr ""
293
 
294
+ #: candide-vidbg.php:570
295
  msgid "<li>Page Builder by SiteOrigin Integration</li>"
296
  msgstr ""
297
 
298
+ #: candide-vidbg.php:571
299
  msgid "<li>Frontend Play/Pause Button Option</li>"
300
  msgstr ""
301
 
302
+ #: candide-vidbg.php:572
303
  msgid "<li>Frontend Volume Button Option</li>"
304
  msgstr ""
305
 
306
+ #: candide-vidbg.php:573
307
  msgid "<li>Overlay Image Textures</li>"
308
  msgstr ""
309
 
310
+ #: candide-vidbg.php:574
311
  msgid "<li>Extensive Documentation</li>"
312
  msgstr ""
313
 
314
+ #: candide-vidbg.php:575
315
  msgid "<li>Video Tutorials</li>"
316
  msgstr ""
317
 
318
+ #: candide-vidbg.php:576
319
  msgid "<li>And Much More!</li>"
320
  msgstr ""
321
 
322
+ #: candide-vidbg.php:578
323
  msgid ""
324
  "<a href=\"http://pushlabs.co/video-background-pro\" class=\"button button-"
325
  "primary\" rel=\"nofollow\" target=\"_blank\">Learn More About Video "
326
  "Background Pro</a>"
327
  msgstr ""
328
 
329
+ #: candide-vidbg.php:579
330
  msgid ""
331
  " <a href=\"https://twitter.com/intent/follow?screen_name=blakewilsonme\" "
332
  "class=\"button button-primary vidbg-twitter\" target=\"_blank\">Get Updates "
333
  "on Twitter</a>"
334
  msgstr ""
335
 
336
+ #: candide-vidbg.php:596
337
  msgid "<a href=\"options-general.php?page=html5-vidbg\">Getting Started</a>"
338
  msgstr ""
339
 
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.3
6
- Stable tag: 2.5.7
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
@@ -85,6 +85,9 @@ You sure can! Simply go to the "Settings > Video Background" menu tab and check
85
 
86
  == Changelog ==
87
 
 
 
 
88
  = 2.5.7 =
89
  * Added ability to filter the post types using "vidbg_post_types" filter.
90
 
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.3
6
+ Stable tag: 2.5.8
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
85
 
86
  == Changelog ==
87
 
88
+ = 2.5.8 =
89
+ * Fixed: Conditionally enqueue vidbg script
90
+
91
  = 2.5.7 =
92
  * Added ability to filter the post types using "vidbg_post_types" filter.
93