WP Video Lightbox - Version 1.4

Version Description

Download this release

Release Info

Developer mra13
Plugin Icon 128x128 WP Video Lightbox
Version 1.4
Comparing to
See all releases

Code changes from version 1.3 to 1.4

Files changed (2) hide show
  1. readme.txt +5 -5
  2. wp-video-lightbox.php +5 -5
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WP Video Lightbox ===
2
  Contributors: Tips and Tricks HQ
3
  Donate link: http://www.tipsandtricks-hq.com/
4
- Tags: wordpress lightbox, wordpress video lightbox, video lightbox, wp video lightbox
5
  Requires at least: 3.0
6
- Tested up to: 3.4
7
- Stable tag: 1.3
8
  License: GPLv2 or later
9
 
10
  Very easy to use WordPress lightbox plugin to display YouTube and Vimeo videos in an elegant lightbox overlay.
@@ -26,9 +26,9 @@ Instructions for using the shortcodes are available at the following URL:
26
  Upload the plugin to the plugins directory via WordPress Plugin Uploader (Plugins->Add New->Upload->Choose File->Install Now) and Activate it.
27
 
28
  == Changelog ==
 
29
 
30
- = 1.3 =
31
- * First commit
32
 
33
  == Frequently Asked Questions ==
34
 
1
  === WP Video Lightbox ===
2
  Contributors: Tips and Tricks HQ
3
  Donate link: http://www.tipsandtricks-hq.com/
4
+ Tags: wordpress lightbox, wordpress video lightbox, video lightbox, wp video lightbox, wordpress video embed, add video to wordpress
5
  Requires at least: 3.0
6
+ Tested up to: 3.6
7
+ Stable tag: 1.4
8
  License: GPLv2 or later
9
 
10
  Very easy to use WordPress lightbox plugin to display YouTube and Vimeo videos in an elegant lightbox overlay.
26
  Upload the plugin to the plugins directory via WordPress Plugin Uploader (Plugins->Add New->Upload->Choose File->Install Now) and Activate it.
27
 
28
  == Changelog ==
29
+ 1.4 - added a feature in the shortcode to turn off the related video display after the playback
30
 
31
+ 1.3 - First commit to the wordpress repository
 
32
 
33
  == Frequently Asked Questions ==
34
 
wp-video-lightbox.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /*
3
  Plugin Name: WP Video Lightbox
4
- Version: 1.3
5
  Plugin URI: http://www.tipsandtricks-hq.com/?p=2700
6
  Author: Ruhul Amin
7
  Author URI: http://www.tipsandtricks-hq.com/
8
  Description: Simple video lightbox plugin to display videos in a nice overlay popup. It also supports images, flash, YouTube, iFrame.
9
  */
10
- define('WP_LICENSE_MANAGER_VERSION', "1.3");
11
  define('WP_VID_LIGHTBOX_URL', plugins_url('',__FILE__));
12
 
13
  add_shortcode('video_lightbox_vimeo5', 'wp_vid_lightbox_vimeo5_handler');
@@ -54,8 +54,8 @@ function wp_vid_lightbox_youtube_handler($atts)
54
  }
55
  else{
56
  $anchor_replacement = $anchor;
57
- }
58
- $href_content = 'http://www.youtube.com/watch?v='.$video_id.'?width='.$width.'&amp;height='.$height;
59
  $output = '<a rel="wp-video-lightbox" href="'.$href_content.'" title="">'.$anchor_replacement.'</a>';
60
  return $output;
61
  }
@@ -158,7 +158,7 @@ function wp_vid_lightbox_style()
158
  $vid_lightbox_iframe_markup = '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>';
159
  $vid_lightbox_inline_markup = '<div class="pp_inline">{content}</div>';
160
  $output = <<<EOHTML
161
- <script type="text/javascript" charset="utf-8">
162
  /* <![CDATA[ */
163
  jQuery(document).ready(function($) {
164
  $("a[rel^='{$vid_lightbox_rel}']").prettyPhoto({
1
  <?php
2
  /*
3
  Plugin Name: WP Video Lightbox
4
+ Version: 1.4
5
  Plugin URI: http://www.tipsandtricks-hq.com/?p=2700
6
  Author: Ruhul Amin
7
  Author URI: http://www.tipsandtricks-hq.com/
8
  Description: Simple video lightbox plugin to display videos in a nice overlay popup. It also supports images, flash, YouTube, iFrame.
9
  */
10
+ define('WP_LICENSE_MANAGER_VERSION', "1.4");
11
  define('WP_VID_LIGHTBOX_URL', plugins_url('',__FILE__));
12
 
13
  add_shortcode('video_lightbox_vimeo5', 'wp_vid_lightbox_vimeo5_handler');
54
  }
55
  else{
56
  $anchor_replacement = $anchor;
57
+ }
58
+ $href_content = 'http://www.youtube.com/watch?v='.$video_id.'&amp;width='.$width.'&amp;height='.$height;
59
  $output = '<a rel="wp-video-lightbox" href="'.$href_content.'" title="">'.$anchor_replacement.'</a>';
60
  return $output;
61
  }
158
  $vid_lightbox_iframe_markup = '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>';
159
  $vid_lightbox_inline_markup = '<div class="pp_inline">{content}</div>';
160
  $output = <<<EOHTML
161
+ <script type="text/javascript">
162
  /* <![CDATA[ */
163
  jQuery(document).ready(function($) {
164
  $("a[rel^='{$vid_lightbox_rel}']").prettyPhoto({