Version Description
- Video Lightbox is now compatible with WordPress 4.3.
Download this release
Release Info
Developer | wptipsntricks |
Plugin | WP Video Lightbox |
Version | 1.7.6 |
Comparing to | |
See all releases |
Code changes from version 1.6.8 to 1.7.6
- js/jquery.prettyPhoto.js +3 -3
- js/video-lightbox.js +1 -1
- misc_functions.php +5 -3
- readme.txt +165 -140
- wp-video-lightbox.php +11 -5
- wpvl-settings.php +13 -9
js/jquery.prettyPhoto.js
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
Class: prettyPhoto
|
3 |
Use: Lightbox clone for jQuery
|
4 |
Author: Stephane Caron (http://www.no-margin-for-errors.com)
|
5 |
-
Version: 3.1.
|
6 |
------------------------------------------------------------------------- */
|
7 |
(function($) {
|
8 |
-
$.prettyPhoto = {version: '3.1.
|
9 |
|
10 |
$.fn.prettyPhoto = function(pp_settings) {
|
11 |
pp_settings = jQuery.extend({
|
@@ -885,7 +885,7 @@
|
|
885 |
function getHashtag(){
|
886 |
var url = location.href;
|
887 |
hashtag = (url.indexOf('#prettyPhoto') !== -1) ? decodeURI(url.substring(url.indexOf('#prettyPhoto')+1,url.length)) : false;
|
888 |
-
|
889 |
return hashtag;
|
890 |
};
|
891 |
|
2 |
Class: prettyPhoto
|
3 |
Use: Lightbox clone for jQuery
|
4 |
Author: Stephane Caron (http://www.no-margin-for-errors.com)
|
5 |
+
Version: 3.1.6
|
6 |
------------------------------------------------------------------------- */
|
7 |
(function($) {
|
8 |
+
$.prettyPhoto = {version: '3.1.6'};
|
9 |
|
10 |
$.fn.prettyPhoto = function(pp_settings) {
|
11 |
pp_settings = jQuery.extend({
|
885 |
function getHashtag(){
|
886 |
var url = location.href;
|
887 |
hashtag = (url.indexOf('#prettyPhoto') !== -1) ? decodeURI(url.substring(url.indexOf('#prettyPhoto')+1,url.length)) : false;
|
888 |
+
if(hashtag){ hashtag = hashtag.replace(/<|>/g,''); }
|
889 |
return hashtag;
|
890 |
};
|
891 |
|
js/video-lightbox.js
CHANGED
@@ -79,7 +79,7 @@ jQuery(document).ready(function($) {
|
|
79 |
image_markup: '<img id="fullResImage" src="{path}" />',
|
80 |
flash_markup: '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',
|
81 |
quicktime_markup: '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',
|
82 |
-
iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',
|
83 |
inline_markup: '<div class="pp_inline">{content}</div>',
|
84 |
custom_markup: '',
|
85 |
social_tools: false
|
79 |
image_markup: '<img id="fullResImage" src="{path}" />',
|
80 |
flash_markup: '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',
|
81 |
quicktime_markup: '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',
|
82 |
+
iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no" allowfullscreen></iframe>',
|
83 |
inline_markup: '<div class="pp_inline">{content}</div>',
|
84 |
custom_markup: '',
|
85 |
social_tools: false
|
misc_functions.php
CHANGED
@@ -8,8 +8,9 @@ function wp_vid_lightbox_vimeo5_handler($atts)
|
|
8 |
'video_id' => '',
|
9 |
'width' => '',
|
10 |
'height' => '',
|
|
|
11 |
'anchor' => '',
|
12 |
-
|
13 |
), $atts));
|
14 |
if(empty($video_id) || empty($width) || empty($height)){
|
15 |
return "<p>Error! You must specify a value for the Video ID, Width, Height and Anchor parameters to use this shortcode!</p>";
|
@@ -31,7 +32,7 @@ function wp_vid_lightbox_vimeo5_handler($atts)
|
|
31 |
}
|
32 |
$href_content = 'http://vimeo.com/'.$video_id.'?width='.$width.'&height='.$height;
|
33 |
$output = "";
|
34 |
-
$output .= '<a rel="'.WPVL_PRETTYPHOTO_REL.'" href="'.$href_content.'" title="">'.$anchor_replacement.'</a>';
|
35 |
return $output;
|
36 |
}
|
37 |
|
@@ -41,6 +42,7 @@ function wp_vid_lightbox_youtube_handler($atts)
|
|
41 |
'video_id' => '',
|
42 |
'width' => '',
|
43 |
'height' => '',
|
|
|
44 |
'anchor' => '',
|
45 |
'auto_thumb' => '',
|
46 |
), $atts));
|
@@ -63,7 +65,7 @@ function wp_vid_lightbox_youtube_handler($atts)
|
|
63 |
$anchor_replacement = $anchor;
|
64 |
}
|
65 |
$href_content = 'https://www.youtube.com/watch?v='.$video_id.'&width='.$width.'&height='.$height;
|
66 |
-
$output = '<a rel="'.WPVL_PRETTYPHOTO_REL.'" href="'.$href_content.'" title="">'.$anchor_replacement.'</a>';
|
67 |
return $output;
|
68 |
}
|
69 |
|
8 |
'video_id' => '',
|
9 |
'width' => '',
|
10 |
'height' => '',
|
11 |
+
'description' => '',
|
12 |
'anchor' => '',
|
13 |
+
'auto_thumb' => '',
|
14 |
), $atts));
|
15 |
if(empty($video_id) || empty($width) || empty($height)){
|
16 |
return "<p>Error! You must specify a value for the Video ID, Width, Height and Anchor parameters to use this shortcode!</p>";
|
32 |
}
|
33 |
$href_content = 'http://vimeo.com/'.$video_id.'?width='.$width.'&height='.$height;
|
34 |
$output = "";
|
35 |
+
$output .= '<a rel="'.WPVL_PRETTYPHOTO_REL.'" href="'.$href_content.'" title="'.$description.'">'.$anchor_replacement.'</a>';
|
36 |
return $output;
|
37 |
}
|
38 |
|
42 |
'video_id' => '',
|
43 |
'width' => '',
|
44 |
'height' => '',
|
45 |
+
'description' => '',
|
46 |
'anchor' => '',
|
47 |
'auto_thumb' => '',
|
48 |
), $atts));
|
65 |
$anchor_replacement = $anchor;
|
66 |
}
|
67 |
$href_content = 'https://www.youtube.com/watch?v='.$video_id.'&width='.$width.'&height='.$height;
|
68 |
+
$output = '<a rel="'.WPVL_PRETTYPHOTO_REL.'" href="'.$href_content.'" title="'.$description.'">'.$anchor_replacement.'</a>';
|
69 |
return $output;
|
70 |
}
|
71 |
|
readme.txt
CHANGED
@@ -1,141 +1,166 @@
|
|
1 |
-
=== WP Video Lightbox ===
|
2 |
-
Contributors: Tips and Tricks HQ, Ruhul Amin, wptipsntricks
|
3 |
-
Donate link:
|
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
|
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.
|
11 |
-
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
The WordPress Video Lightbox plugin allows you to embed videos on a page using lightbox overlay display.
|
15 |
-
|
16 |
-
This plugin can be used to display images, flash, YouTube, Vimeo, iFrame etc in a lightbox overlay. The embedded videos can be viewed on iPhone and iPad too.
|
17 |
-
|
18 |
-
= Embedding Vimeo Video =
|
19 |
-
|
20 |
-
You can embed a vimeo video using the following shortcode in a WordPress post or page:
|
21 |
-
|
22 |
-
`[video_lightbox_vimeo5 video_id="13562192" width="640" height="480" anchor="click here to open vimeo video"]`
|
23 |
-
`[video_lightbox_vimeo5 video_id="13562192" width="640" height="480" anchor="http://www.example.com/images/vimeo-thumb.jpg"]`
|
24 |
-
|
25 |
-
You need to replace the value of "video_id" with your actual vimeo video ID. When a user clicks on the anchor text/image your vimeo video will pop up in lightbox.
|
26 |
-
|
27 |
-
= Embedding YouTube Video =
|
28 |
-
|
29 |
-
You can embed a YouTube video using the following shortcode in a WordPress post or page:
|
30 |
-
|
31 |
-
`[video_lightbox_youtube video_id="G7z74BvLWUg" width="640" height="480" anchor="click here to open YouTube video"]`
|
32 |
-
`[video_lightbox_youtube video_id="G7z74BvLWUg" width="640" height="480" anchor="http://www.example.com/images/youtube-thumb.jpg"]`
|
33 |
-
|
34 |
-
You need to replace the value of "video_id" with your actual YouTube video ID. You can also control the size of the lightbox window by customizing the width and height parameters.
|
35 |
-
|
36 |
-
= Features/Settings Configuration =
|
37 |
-
|
38 |
-
Once you have installed the plugin you can configure some options to customize the popup. The settings menu can be accessed from "Settings->Video Lightbox->prettyPhoto".
|
39 |
-
|
40 |
-
* Enable prettyPhoto: Check this option if you want to use the prettyPhoto library
|
41 |
-
* Animation speed: fast / slow / normal [default: fast]
|
42 |
-
* Autoplay slideshow: true / false [default: false]
|
43 |
-
* Opacity: Value between 0 and 1 [default: 0.8]
|
44 |
-
* Show title: true / false [default: true]
|
45 |
-
* Allow resize: Resize the photos bigger than viewport. true / false [default: true]
|
46 |
-
* Allow expand: Allow the user to expand a resized image. true / false [default: true]
|
47 |
-
* Default width: default width of the lightbox window [default: 640, you can override it using the width parameter in the shortcode]
|
48 |
-
* Default height: default height of the lightbox window [default: 480, you can override it using the height parameter in the shortcode]
|
49 |
-
* Counter separator label: The separator for the gallery counter in lightbox [default: /]
|
50 |
-
* Theme: theme for the lightbox window - Default, Light Rounded, Dark Rounded, Light Square, Dark Square, Facebook
|
51 |
-
* Horizontal padding: The padding on each side of the lightbox window [default: 20]
|
52 |
-
* Hide Flash: Hides all the flash objects on a page, set to true if flash appears over prettyPhoto [default: false]
|
53 |
-
* wmode: the flash wmode attribute [default: opaque]
|
54 |
-
* Autoplay: Automatically start videos: true / false [default: true]
|
55 |
-
* Modal: If set to true, only the close button will close the window [default: false]
|
56 |
-
* Deeplinking: Allow prettyPhoto to update the url to enable deeplinking. [default: true]
|
57 |
-
* Overlay gallery: If this enabled, a gallery will overlay the fullscreen image on mouse over [default: true]
|
58 |
-
* Overlay gallery max: Maximum number of pictures in the overlay gallery [default: 30]
|
59 |
-
* Keyboard shortcuts: Set to false if you open forms inside prettyPhoto [default: true]
|
60 |
-
* IE6 fallback: compatibility fallback for IE6 [default: true]
|
61 |
-
|
62 |
-
= Additional Features =
|
63 |
-
|
64 |
-
* Automatically retrieve the thumbnail for your video and embed in lightbox
|
65 |
-
* Load YouTube video over https. This is great if you have SSL installed on your site
|
66 |
-
* Disable suggested videos at the end of a YouTube video
|
67 |
-
* Flexiblity of using both shortcode/html code to pop up media in lightbox
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
*
|
127 |
-
|
128 |
-
= 1.6.
|
129 |
-
* Added
|
130 |
-
|
131 |
-
= 1.6 =
|
132 |
-
*
|
133 |
-
|
134 |
-
= 1.
|
135 |
-
*
|
136 |
-
|
137 |
-
= 1.
|
138 |
-
*
|
139 |
-
|
140 |
-
= 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
* First commit to the wordpress repository
|
1 |
+
=== WP Video Lightbox ===
|
2 |
+
Contributors: Tips and Tricks HQ, Ruhul Amin, wptipsntricks
|
3 |
+
Donate link: https://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: 4.3
|
7 |
+
Stable tag: 1.7.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.
|
11 |
+
|
12 |
+
== Description ==
|
13 |
+
|
14 |
+
The WordPress Video Lightbox plugin allows you to embed videos on a page using lightbox overlay display.
|
15 |
+
|
16 |
+
This plugin can be used to display images, flash, YouTube, Vimeo, iFrame etc in a lightbox overlay. The embedded videos can be viewed on iPhone and iPad too.
|
17 |
+
|
18 |
+
= Embedding Vimeo Video =
|
19 |
+
|
20 |
+
You can embed a vimeo video using the following shortcode in a WordPress post or page:
|
21 |
+
|
22 |
+
`[video_lightbox_vimeo5 video_id="13562192" width="640" height="480" anchor="click here to open vimeo video"]`
|
23 |
+
`[video_lightbox_vimeo5 video_id="13562192" width="640" height="480" anchor="http://www.example.com/images/vimeo-thumb.jpg"]`
|
24 |
+
|
25 |
+
You need to replace the value of "video_id" with your actual vimeo video ID. When a user clicks on the anchor text/image your vimeo video will pop up in lightbox.
|
26 |
+
|
27 |
+
= Embedding YouTube Video =
|
28 |
+
|
29 |
+
You can embed a YouTube video using the following shortcode in a WordPress post or page:
|
30 |
+
|
31 |
+
`[video_lightbox_youtube video_id="G7z74BvLWUg" width="640" height="480" anchor="click here to open YouTube video"]`
|
32 |
+
`[video_lightbox_youtube video_id="G7z74BvLWUg" width="640" height="480" anchor="http://www.example.com/images/youtube-thumb.jpg"]`
|
33 |
+
|
34 |
+
You need to replace the value of "video_id" with your actual YouTube video ID. You can also control the size of the lightbox window by customizing the width and height parameters.
|
35 |
+
|
36 |
+
= Features/Settings Configuration =
|
37 |
+
|
38 |
+
Once you have installed the plugin you can configure some options to customize the popup. The settings menu can be accessed from "Settings->Video Lightbox->prettyPhoto".
|
39 |
+
|
40 |
+
* Enable prettyPhoto: Check this option if you want to use the prettyPhoto library
|
41 |
+
* Animation speed: fast / slow / normal [default: fast]
|
42 |
+
* Autoplay slideshow: true / false [default: false]
|
43 |
+
* Opacity: Value between 0 and 1 [default: 0.8]
|
44 |
+
* Show title: true / false [default: true]
|
45 |
+
* Allow resize: Resize the photos bigger than viewport. true / false [default: true]
|
46 |
+
* Allow expand: Allow the user to expand a resized image. true / false [default: true]
|
47 |
+
* Default width: default width of the lightbox window [default: 640, you can override it using the width parameter in the shortcode]
|
48 |
+
* Default height: default height of the lightbox window [default: 480, you can override it using the height parameter in the shortcode]
|
49 |
+
* Counter separator label: The separator for the gallery counter in lightbox [default: /]
|
50 |
+
* Theme: theme for the lightbox window - Default, Light Rounded, Dark Rounded, Light Square, Dark Square, Facebook
|
51 |
+
* Horizontal padding: The padding on each side of the lightbox window [default: 20]
|
52 |
+
* Hide Flash: Hides all the flash objects on a page, set to true if flash appears over prettyPhoto [default: false]
|
53 |
+
* wmode: the flash wmode attribute [default: opaque]
|
54 |
+
* Autoplay: Automatically start videos: true / false [default: true]
|
55 |
+
* Modal: If set to true, only the close button will close the window [default: false]
|
56 |
+
* Deeplinking: Allow prettyPhoto to update the url to enable deeplinking. [default: true]
|
57 |
+
* Overlay gallery: If this enabled, a gallery will overlay the fullscreen image on mouse over [default: true]
|
58 |
+
* Overlay gallery max: Maximum number of pictures in the overlay gallery [default: 30]
|
59 |
+
* Keyboard shortcuts: Set to false if you open forms inside prettyPhoto [default: true]
|
60 |
+
* IE6 fallback: compatibility fallback for IE6 [default: true]
|
61 |
+
|
62 |
+
= Additional Features =
|
63 |
+
|
64 |
+
* Automatically retrieve the thumbnail for your video and embed in lightbox
|
65 |
+
* Load YouTube video over https. This is great if you have SSL installed on your site
|
66 |
+
* Disable suggested videos at the end of a YouTube video
|
67 |
+
* Flexiblity of using both shortcode/html code to pop up media in lightbox
|
68 |
+
* Show description of a popup in overlay
|
69 |
+
|
70 |
+
For video tutorial, screenshots, detailed documentation, support and updates, please visit: [WP Video Lightbox plugin page](https://www.tipsandtricks-hq.com/wordpress-video-lightbox-plugin-display-videos-in-a-fancy-lightbox-overlay-2700)
|
71 |
+
|
72 |
+
== Usage ==
|
73 |
+
|
74 |
+
You need to embed the appropriate shortcode on a post/page to display the specific type of media (Youtube, Vimeo, Flash etc).
|
75 |
+
Instructions for using the shortcodes are available at the following URL:
|
76 |
+
[WP Video Lightbox Details Usage Instruction](https://www.tipsandtricks-hq.com/wp-content/uploads/docs/WP-Video-Lightbox-Plugin-Usage-Guide.pdf)
|
77 |
+
|
78 |
+
== Installation ==
|
79 |
+
|
80 |
+
Upload the plugin to the plugins directory via WordPress Plugin Uploader (Plugins->Add New->Upload->Choose File->Install Now) and Activate it.
|
81 |
+
|
82 |
+
== Frequently Asked Questions ==
|
83 |
+
|
84 |
+
= Can this plugin be used to embed a YouTube video? =
|
85 |
+
Yes
|
86 |
+
|
87 |
+
= Can this plugin be used to embed a Vimeo video? =
|
88 |
+
Yes
|
89 |
+
|
90 |
+
= Can this plugin be used to do lightbox on images? =
|
91 |
+
Yes
|
92 |
+
|
93 |
+
= Can this plugin automatically create a thumbnail/anchor image from the YouTube video? =
|
94 |
+
Yes
|
95 |
+
|
96 |
+
== Screenshots ==
|
97 |
+
|
98 |
+
Please see this page for screenshots:
|
99 |
+
https://www.tipsandtricks-hq.com/wordpress-video-lightbox-plugin-display-videos-in-a-fancy-lightbox-overlay-2700
|
100 |
+
|
101 |
+
== Upgrade Notice ==
|
102 |
+
|
103 |
+
None
|
104 |
+
|
105 |
+
== Changelog ==
|
106 |
+
|
107 |
+
= 1.7.6 =
|
108 |
+
* Video Lightbox is now compatible with WordPress 4.3.
|
109 |
+
|
110 |
+
= 1.7.5 =
|
111 |
+
* Updated the prettyPhoto library to fix an XSS vulnerability in it.
|
112 |
+
|
113 |
+
= 1.7.4 =
|
114 |
+
* Video Lightbox shortcodes will now get filtered in a text widget
|
115 |
+
|
116 |
+
= 1.7.3 =
|
117 |
+
* plugin is compatible with WordPress 4.2
|
118 |
+
|
119 |
+
= 1.7.2 =
|
120 |
+
* plugin is now compatible with WordPress 4.1
|
121 |
+
|
122 |
+
= 1.7.1 =
|
123 |
+
* Fullscreen option is now available for YouTube and Vimeo videos
|
124 |
+
|
125 |
+
= 1.7.0 =
|
126 |
+
* Fixed an error message in the video lightbox settings
|
127 |
+
|
128 |
+
= 1.6.9 =
|
129 |
+
* Added a new shortcode parameter to show the description of a video popup in lightbox
|
130 |
+
|
131 |
+
= 1.6.8 =
|
132 |
+
* fixed an issue where vimeo video could not be played on a HTTPS site
|
133 |
+
|
134 |
+
= 1.6.7 =
|
135 |
+
* plugin is now compatible with WordPress 3.9.
|
136 |
+
|
137 |
+
= 1.6.6 =
|
138 |
+
* YouTube video can now be loaded over https
|
139 |
+
|
140 |
+
= 1.6.5 =
|
141 |
+
* fixed a bug in the plugin where default options were not set for automatic upgrade
|
142 |
+
|
143 |
+
= 1.6.4 =
|
144 |
+
* plugin is now compatible with WordPress 3.8.
|
145 |
+
|
146 |
+
= 1.6.3 =
|
147 |
+
* plugin now works with multisite install.
|
148 |
+
|
149 |
+
= 1.6.2 =
|
150 |
+
* Created a settings menu for the plugin
|
151 |
+
* Updated the prettyPhoto library to 3.1.5
|
152 |
+
|
153 |
+
= 1.6.1 =
|
154 |
+
* Added https support for YouTube video.
|
155 |
+
|
156 |
+
= 1.6 =
|
157 |
+
* Added an option to automatically create and use the thumbnail of the YouTube or Vimeo video as the anchor image.
|
158 |
+
|
159 |
+
= 1.5 =
|
160 |
+
* Made some improvements as to how the JavaScript code is loaded in the plugin. WordPress 3.6 compatibility.
|
161 |
+
|
162 |
+
= 1.4 =
|
163 |
+
* added a feature in the shortcode to turn off the related video display after the playback
|
164 |
+
|
165 |
+
= 1.3 =
|
166 |
* First commit to the wordpress repository
|
wp-video-lightbox.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Video Lightbox
|
4 |
-
Version: 1.6
|
5 |
-
Plugin URI:
|
6 |
Author: Tips and Tricks HQ, Ruhul Amin
|
7 |
-
Author URI:
|
8 |
Description: Simple video lightbox plugin to display videos in a nice overlay popup. It also supports images, flash, YouTube, iFrame.
|
9 |
*/
|
10 |
if (!defined('ABSPATH')) exit;
|
@@ -13,7 +13,7 @@ if (!class_exists('WP_Video_Lightbox'))
|
|
13 |
{
|
14 |
class WP_Video_Lightbox
|
15 |
{
|
16 |
-
var $version = '1.6
|
17 |
var $db_version = '1.0';
|
18 |
var $plugin_url;
|
19 |
var $plugin_path;
|
@@ -37,7 +37,7 @@ if (!class_exists('WP_Video_Lightbox'))
|
|
37 |
define('WP_VIDEO_LIGHTBOX_PATH', $this->plugin_path());
|
38 |
define('WP_VIDEO_LIGHTBOX_DB_VERSION', $this->db_version);
|
39 |
define('WPVL_PRETTYPHOTO_REL', 'wp-video-lightbox');
|
40 |
-
define('WPVL_PRETTYPHOTO_VERSION', '3.1.
|
41 |
}
|
42 |
|
43 |
function includes() {
|
@@ -49,6 +49,12 @@ if (!class_exists('WP_Video_Lightbox'))
|
|
49 |
function loader_operations(){
|
50 |
register_activation_hook( __FILE__, array(&$this, 'activate_handler') ); //activation hook
|
51 |
add_action('plugins_loaded',array(&$this, 'plugins_loaded_handler')); //plugins loaded hook
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
|
54 |
function plugins_loaded_handler() //Runs when plugins_loaded action gets fired
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Video Lightbox
|
4 |
+
Version: 1.7.6
|
5 |
+
Plugin URI: https://www.tipsandtricks-hq.com/?p=2700
|
6 |
Author: Tips and Tricks HQ, Ruhul Amin
|
7 |
+
Author URI: https://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 |
if (!defined('ABSPATH')) exit;
|
13 |
{
|
14 |
class WP_Video_Lightbox
|
15 |
{
|
16 |
+
var $version = '1.7.6';
|
17 |
var $db_version = '1.0';
|
18 |
var $plugin_url;
|
19 |
var $plugin_path;
|
37 |
define('WP_VIDEO_LIGHTBOX_PATH', $this->plugin_path());
|
38 |
define('WP_VIDEO_LIGHTBOX_DB_VERSION', $this->db_version);
|
39 |
define('WPVL_PRETTYPHOTO_REL', 'wp-video-lightbox');
|
40 |
+
define('WPVL_PRETTYPHOTO_VERSION', '3.1.6');
|
41 |
}
|
42 |
|
43 |
function includes() {
|
49 |
function loader_operations(){
|
50 |
register_activation_hook( __FILE__, array(&$this, 'activate_handler') ); //activation hook
|
51 |
add_action('plugins_loaded',array(&$this, 'plugins_loaded_handler')); //plugins loaded hook
|
52 |
+
if (!is_admin())
|
53 |
+
{
|
54 |
+
add_filter('widget_text', 'do_shortcode');
|
55 |
+
add_filter('the_excerpt', 'do_shortcode',11);
|
56 |
+
add_filter('the_content', 'do_shortcode',11);
|
57 |
+
}
|
58 |
}
|
59 |
|
60 |
function plugins_loaded_handler() //Runs when plugins_loaded action gets fired
|
wpvl-settings.php
CHANGED
@@ -40,14 +40,18 @@ class Video_Lightbox_Settings_Page
|
|
40 |
$content .= '</h2>';
|
41 |
echo $content;
|
42 |
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
{
|
45 |
-
|
46 |
-
$this->prettyPhoto_settings_section();
|
47 |
-
break;
|
48 |
-
default:
|
49 |
-
$this->general_settings_section();
|
50 |
-
break;
|
51 |
}
|
52 |
|
53 |
echo '</div></div>';
|
@@ -73,7 +77,7 @@ class Video_Lightbox_Settings_Page
|
|
73 |
|
74 |
<div style="background: none repeat scroll 0 0 #FFF6D5;border: 1px solid #D1B655;color: #3F2502;margin: 10px 0;padding: 5px 5px 5px 10px;text-shadow: 1px 1px #FFFFFF;">
|
75 |
<p><?php _e("For more information, updates, detailed documentation and video tutorial, please visit:", "WPVL"); ?><br />
|
76 |
-
<a href="
|
77 |
</div>
|
78 |
|
79 |
<form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
|
@@ -143,7 +147,7 @@ class Video_Lightbox_Settings_Page
|
|
143 |
|
144 |
<div style="background: none repeat scroll 0 0 #FFF6D5;border: 1px solid #D1B655;color: #3F2502;margin: 10px 0;padding: 5px 5px 5px 10px;text-shadow: 1px 1px #FFFFFF;">
|
145 |
<p><?php _e("For more information, updates, detailed documentation and video tutorial, please visit:", "WPVL"); ?><br />
|
146 |
-
<a href="
|
147 |
</div>
|
148 |
|
149 |
<form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
|
40 |
$content .= '</h2>';
|
41 |
echo $content;
|
42 |
|
43 |
+
if(isset($_GET['action']))
|
44 |
+
{
|
45 |
+
switch ($_GET['action'])
|
46 |
+
{
|
47 |
+
case 'prettyPhoto':
|
48 |
+
$this->prettyPhoto_settings_section();
|
49 |
+
break;
|
50 |
+
}
|
51 |
+
}
|
52 |
+
else
|
53 |
{
|
54 |
+
$this->general_settings_section();
|
|
|
|
|
|
|
|
|
|
|
55 |
}
|
56 |
|
57 |
echo '</div></div>';
|
77 |
|
78 |
<div style="background: none repeat scroll 0 0 #FFF6D5;border: 1px solid #D1B655;color: #3F2502;margin: 10px 0;padding: 5px 5px 5px 10px;text-shadow: 1px 1px #FFFFFF;">
|
79 |
<p><?php _e("For more information, updates, detailed documentation and video tutorial, please visit:", "WPVL"); ?><br />
|
80 |
+
<a href="https://www.tipsandtricks-hq.com/wordpress-video-lightbox-plugin-display-videos-in-a-fancy-lightbox-overlay-2700" target="_blank"><?php _e("WP Video Lightbox Homepage", "WPVL"); ?></a></p>
|
81 |
</div>
|
82 |
|
83 |
<form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
|
147 |
|
148 |
<div style="background: none repeat scroll 0 0 #FFF6D5;border: 1px solid #D1B655;color: #3F2502;margin: 10px 0;padding: 5px 5px 5px 10px;text-shadow: 1px 1px #FFFFFF;">
|
149 |
<p><?php _e("For more information, updates, detailed documentation and video tutorial, please visit:", "WPVL"); ?><br />
|
150 |
+
<a href="https://www.tipsandtricks-hq.com/wordpress-video-lightbox-plugin-display-videos-in-a-fancy-lightbox-overlay-2700" target="_blank"><?php _e("WP Video Lightbox Homepage", "WPVL"); ?></a></p>
|
151 |
</div>
|
152 |
|
153 |
<form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
|