Version Description
- Vimeo video URL is now rendered in HTTPS in the shortcode.
- Vimeo video thumbnail is now retrieved with a secure API request to the vimeo server.
Download this release
Release Info
Developer | wptipsntricks |
Plugin | WP Video Lightbox |
Version | 1.8.0 |
Comparing to | |
See all releases |
Code changes from version 1.7.9 to 1.8.0
- misc_functions.php +2 -2
- readme.txt +5 -1
- wp-video-lightbox.php +2 -2
misc_functions.php
CHANGED
@@ -31,7 +31,7 @@ function wp_vid_lightbox_vimeo5_handler($atts)
|
|
31 |
else {
|
32 |
$anchor_replacement = $anchor;
|
33 |
}
|
34 |
-
$href_content = '
|
35 |
$output = "";
|
36 |
$output .= '<a rel="'.WPVL_PRETTYPHOTO_REL.'" href="'.$href_content.'" title="'.$description.'">'.$anchor_replacement.'</a>';
|
37 |
return $output;
|
@@ -108,7 +108,7 @@ function wp_vid_lightbox_getVimeoInfo($id)
|
|
108 |
{
|
109 |
if (!function_exists('curl_init')) die('CURL is not installed!');
|
110 |
$ch = curl_init();
|
111 |
-
curl_setopt($ch, CURLOPT_URL, "
|
112 |
curl_setopt($ch, CURLOPT_HEADER, 0);
|
113 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
114 |
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
|
31 |
else {
|
32 |
$anchor_replacement = $anchor;
|
33 |
}
|
34 |
+
$href_content = 'https://vimeo.com/'.$video_id.'?width='.$width.'&height='.$height;
|
35 |
$output = "";
|
36 |
$output .= '<a rel="'.WPVL_PRETTYPHOTO_REL.'" href="'.$href_content.'" title="'.$description.'">'.$anchor_replacement.'</a>';
|
37 |
return $output;
|
108 |
{
|
109 |
if (!function_exists('curl_init')) die('CURL is not installed!');
|
110 |
$ch = curl_init();
|
111 |
+
curl_setopt($ch, CURLOPT_URL, "https://vimeo.com/api/v2/video/$id.php");
|
112 |
curl_setopt($ch, CURLOPT_HEADER, 0);
|
113 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
114 |
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.5
|
7 |
-
Stable tag: 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.
|
@@ -114,6 +114,10 @@ None
|
|
114 |
|
115 |
== Changelog ==
|
116 |
|
|
|
|
|
|
|
|
|
117 |
= 1.7.9 =
|
118 |
* Fixed some deprecated function in the settings.
|
119 |
|
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.5
|
7 |
+
Stable tag: 1.8.0
|
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.
|
114 |
|
115 |
== Changelog ==
|
116 |
|
117 |
+
= 1.8.0 =
|
118 |
+
* Vimeo video URL is now rendered in HTTPS in the shortcode.
|
119 |
+
* Vimeo video thumbnail is now retrieved with a secure API request to the vimeo server.
|
120 |
+
|
121 |
= 1.7.9 =
|
122 |
* Fixed some deprecated function in the settings.
|
123 |
|
wp-video-lightbox.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Video Lightbox
|
4 |
-
Version: 1.
|
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/
|
@@ -15,7 +15,7 @@ if (!class_exists('WP_Video_Lightbox'))
|
|
15 |
{
|
16 |
class WP_Video_Lightbox
|
17 |
{
|
18 |
-
var $version = '1.
|
19 |
var $db_version = '1.0';
|
20 |
var $plugin_url;
|
21 |
var $plugin_path;
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Video Lightbox
|
4 |
+
Version: 1.8.0
|
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/
|
15 |
{
|
16 |
class WP_Video_Lightbox
|
17 |
{
|
18 |
+
var $version = '1.8.0';
|
19 |
var $db_version = '1.0';
|
20 |
var $plugin_url;
|
21 |
var $plugin_path;
|