Version Description
- Added support for any Vimeo URL
Download this release
Release Info
Developer | sutherlandboswell |
Plugin | Video Thumbnails |
Version | 0.2.3 |
Comparing to | |
See all releases |
Code changes from version 0.3 to 0.2.3
- readme.txt +6 -10
- video-thumbnails.php +3 -19
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://sutherlandboswell.com
|
|
4 |
Tags: Video, YouTube, Vimeo, Thumbnails
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.0.1
|
7 |
-
Stable tag: 0.3
|
8 |
|
9 |
Video Thumbnails is a simple plugin that makes it easier to display video thumbnails in your template.
|
10 |
|
@@ -14,11 +14,10 @@ Video Thumbnails makes it simple to display video thumbnails in your templates.
|
|
14 |
|
15 |
Video Thumbnails currently supports:
|
16 |
|
17 |
-
*
|
18 |
-
*
|
19 |
-
*
|
20 |
-
*
|
21 |
-
* [Vimeo Shortcode](http://blog.esimplestudios.com/2010/08/embedding-vimeo-videos-in-wordpress/)
|
22 |
|
23 |
When using `video_thumbnail()` and no thumbnail is found, a default thumbnail is echoed, which can be changed by replacing the `default.jpg` file found in your `/plugins/video-thumbnails/` directory.
|
24 |
|
@@ -48,9 +47,6 @@ Coming Soon
|
|
48 |
|
49 |
== Changelog ==
|
50 |
|
51 |
-
= 0.3 =
|
52 |
-
* Added basic support for Blip.tv auto embedded using URLs in this format: http://blip.tv/file/12345
|
53 |
-
|
54 |
= 0.2.3 =
|
55 |
* Added support for any Vimeo URL
|
56 |
|
@@ -85,7 +81,7 @@ Coming Soon
|
|
85 |
|
86 |
This plugin is still very young, and has a future planned as the ultimate plugin for video thumbnails. Here's some of the planned additions:
|
87 |
|
88 |
-
*
|
89 |
* Local thumbnail storage
|
90 |
* More services
|
91 |
* More shortcode plugins
|
4 |
Tags: Video, YouTube, Vimeo, Thumbnails
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.0.1
|
7 |
+
Stable tag: 0.2.3
|
8 |
|
9 |
Video Thumbnails is a simple plugin that makes it easier to display video thumbnails in your template.
|
10 |
|
14 |
|
15 |
Video Thumbnails currently supports:
|
16 |
|
17 |
+
* YouTube
|
18 |
+
* Vimeo
|
19 |
+
* JR Embed (this plugin seems to have disappeared)
|
20 |
+
* [Vimeo Shortcode](http://blog.esimplestudios.com/2010/08/embedding-vimeo-videos-in-wordpress/)
|
|
|
21 |
|
22 |
When using `video_thumbnail()` and no thumbnail is found, a default thumbnail is echoed, which can be changed by replacing the `default.jpg` file found in your `/plugins/video-thumbnails/` directory.
|
23 |
|
47 |
|
48 |
== Changelog ==
|
49 |
|
|
|
|
|
|
|
50 |
= 0.2.3 =
|
51 |
* Added support for any Vimeo URL
|
52 |
|
81 |
|
82 |
This plugin is still very young, and has a future planned as the ultimate plugin for video thumbnails. Here's some of the planned additions:
|
83 |
|
84 |
+
* Blip.tv support
|
85 |
* Local thumbnail storage
|
86 |
* More services
|
87 |
* More shortcode plugins
|
video-thumbnails.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://sutherlandboswell.com/2010/11/wordpress-video-thumbnails/
|
|
5 |
Description: A plugin designed to fetch video thumbnails. Use <code><?php video_thumbnail(); ?></code> in a loop to return a URL for the thumbnail of the first video in a post. Currently works with YouTube and Vimeo, and with the JR_embed plugin.
|
6 |
Author: Sutherland Boswell
|
7 |
Author URI: http://sutherlandboswell.com
|
8 |
-
Version: 0.3
|
9 |
License: GPL2
|
10 |
*/
|
11 |
/* Copyright 2010 Sutherland Boswell (email : sutherland.boswell@gmail.com)
|
@@ -38,16 +38,6 @@ function getVimeoInfo($id, $info = 'thumbnail_large') {
|
|
38 |
return $output;
|
39 |
};
|
40 |
|
41 |
-
// Blip.tv Functions
|
42 |
-
function getBliptvInfo($id) {
|
43 |
-
$xml = simplexml_load_file("http://blip.tv/file/$id?skin=rss");
|
44 |
-
$result = $xml->xpath("/rss/channel/item/media:thumbnail/@url");
|
45 |
-
foreach($result as $element) {
|
46 |
-
$thumbnail = $element["url"];
|
47 |
-
}
|
48 |
-
return $thumbnail;
|
49 |
-
}
|
50 |
-
|
51 |
// The Main Event
|
52 |
function get_video_thumbnail() {
|
53 |
|
@@ -107,15 +97,9 @@ function get_video_thumbnail() {
|
|
107 |
}
|
108 |
}
|
109 |
|
110 |
-
// If nothing has been found,
|
111 |
else {
|
112 |
-
|
113 |
-
if(isset($matches[1])) {
|
114 |
-
return getBliptvInfo($matches[1]);
|
115 |
-
}
|
116 |
-
else {
|
117 |
-
return null;
|
118 |
-
}
|
119 |
}
|
120 |
}
|
121 |
|
5 |
Description: A plugin designed to fetch video thumbnails. Use <code><?php video_thumbnail(); ?></code> in a loop to return a URL for the thumbnail of the first video in a post. Currently works with YouTube and Vimeo, and with the JR_embed plugin.
|
6 |
Author: Sutherland Boswell
|
7 |
Author URI: http://sutherlandboswell.com
|
8 |
+
Version: 0.2.3
|
9 |
License: GPL2
|
10 |
*/
|
11 |
/* Copyright 2010 Sutherland Boswell (email : sutherland.boswell@gmail.com)
|
38 |
return $output;
|
39 |
};
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
// The Main Event
|
42 |
function get_video_thumbnail() {
|
43 |
|
97 |
}
|
98 |
}
|
99 |
|
100 |
+
// If nothing has been found, show the default
|
101 |
else {
|
102 |
+
return null;
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
}
|
104 |
}
|
105 |
|