Version Description
None
Download this release
Release Info
Developer | wpecommerce |
Plugin | WP Video Lightbox |
Version | 1.6.1 |
Comparing to | |
See all releases |
Code changes from version 1.6 to 1.6.1
- readme.txt +6 -5
- wp-video-lightbox.php +4 -4
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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, gallery, image, images, lightbox, lightview, overlay, photo, photos, picture, video
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.6
|
7 |
-
Stable tag: 1.6
|
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.
|
@@ -51,7 +51,8 @@ http://www.tipsandtricks-hq.com/?p=2700
|
|
51 |
None
|
52 |
|
53 |
== Changelog ==
|
54 |
-
1.6 - Added
|
55 |
-
1.
|
56 |
-
1.
|
57 |
-
1.
|
|
4 |
Tags: wordpress lightbox, wordpress video lightbox, video lightbox, wp video lightbox, wordpress video embed, add video to wordpress, gallery, image, images, lightbox, lightview, overlay, photo, photos, picture, video
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.6
|
7 |
+
Stable tag: 1.6.1
|
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.
|
51 |
None
|
52 |
|
53 |
== Changelog ==
|
54 |
+
1.6.1 - Added https support for YouTube video.
|
55 |
+
1.6 - Added an option to automatically create and use the thumbnail of the YouTube or Vimeo video as the anchor image.
|
56 |
+
1.5 - Made some improvements as to how the JavaScript code is loaded in the plugin. WordPress 3.6 compatibility.
|
57 |
+
1.4 - added a feature in the shortcode to turn off the related video display after the playback
|
58 |
+
1.3 - First commit to the wordpress repository
|
wp-video-lightbox.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Video Lightbox
|
4 |
-
Version: 1.6
|
5 |
Plugin URI: http://www.tipsandtricks-hq.com/?p=2700
|
6 |
Author: Tips and Tricks HQ, 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.6");
|
11 |
define('WP_VID_LIGHTBOX_URL', plugins_url('',__FILE__));
|
12 |
|
13 |
add_shortcode('video_lightbox_vimeo5', 'wp_vid_lightbox_vimeo5_handler');
|
@@ -73,7 +73,7 @@ function wp_vid_lightbox_youtube_handler($atts)
|
|
73 |
else{
|
74 |
$anchor_replacement = $anchor;
|
75 |
}
|
76 |
-
$href_content = '
|
77 |
$output = '<a rel="wp-video-lightbox" href="'.$href_content.'" title="">'.$anchor_replacement.'</a>';
|
78 |
return $output;
|
79 |
}
|
@@ -88,7 +88,7 @@ function wp_vid_lightbox_get_auto_thumb($atts)
|
|
88 |
if($atts['vid_type']=="youtube")
|
89 |
{
|
90 |
$anchor_replacement = '<div class="wpvl_auto_thumb_box_wrapper"><div class="wpvl_auto_thumb_box">';
|
91 |
-
$anchor_replacement .= '<img src="
|
92 |
$anchor_replacement .= '<div class="wpvl_auto_thumb_play"><img src="'.WP_VID_LIGHTBOX_URL.'/images/play.png" class="wpvl_playbutton" /></div>';
|
93 |
$anchor_replacement .= '</div></div>';
|
94 |
}
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Video Lightbox
|
4 |
+
Version: 1.6.1
|
5 |
Plugin URI: http://www.tipsandtricks-hq.com/?p=2700
|
6 |
Author: Tips and Tricks HQ, 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.6.1");
|
11 |
define('WP_VID_LIGHTBOX_URL', plugins_url('',__FILE__));
|
12 |
|
13 |
add_shortcode('video_lightbox_vimeo5', 'wp_vid_lightbox_vimeo5_handler');
|
73 |
else{
|
74 |
$anchor_replacement = $anchor;
|
75 |
}
|
76 |
+
$href_content = 'https://www.youtube.com/watch?v='.$video_id.'&width='.$width.'&height='.$height;
|
77 |
$output = '<a rel="wp-video-lightbox" href="'.$href_content.'" title="">'.$anchor_replacement.'</a>';
|
78 |
return $output;
|
79 |
}
|
88 |
if($atts['vid_type']=="youtube")
|
89 |
{
|
90 |
$anchor_replacement = '<div class="wpvl_auto_thumb_box_wrapper"><div class="wpvl_auto_thumb_box">';
|
91 |
+
$anchor_replacement .= '<img src="https://img.youtube.com/vi/'.$video_id.'/0.jpg" class="video_lightbox_auto_anchor_image" alt="" />';
|
92 |
$anchor_replacement .= '<div class="wpvl_auto_thumb_play"><img src="'.WP_VID_LIGHTBOX_URL.'/images/play.png" class="wpvl_playbutton" /></div>';
|
93 |
$anchor_replacement .= '</div></div>';
|
94 |
}
|