Video Thumbnails - Version 0.5.2

Version Description

  • Added support for Simple Video Embedder
Download this release

Release Info

Developer sutherlandboswell
Plugin Icon 128x128 Video Thumbnails
Version 0.5.2
Comparing to
See all releases

Code changes from version 0.5.1 to 0.5.2

Files changed (2) hide show
  1. readme.txt +6 -2
  2. video-thumbnails.php +8 -1
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://sutherlandboswell.com
4
  Tags: Video, YouTube, Vimeo, Blip.tv, Thumbnails
5
  Requires at least: 3.0
6
  Tested up to: 3.0.2
7
- Stable tag: 0.5.1
8
 
9
  Video Thumbnails is a simple plugin that makes it easier to display video thumbnails in your template.
10
 
@@ -17,8 +17,9 @@ Video Thumbnails currently supports:
17
  * YouTube
18
  * Vimeo
19
  * Blip.tv
20
- * JR Embed (this plugin seems to have disappeared)
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
 
@@ -50,6 +51,9 @@ In version 0.2 `get_video_thumbnail()` was added which returns null when no thum
50
 
51
  == Changelog ==
52
 
 
 
 
53
  = 0.5.1 =
54
  * Added a test to make sure the YouTube thumbnail actually exists. This prevents you from getting that ugly default thumbnail from YouTube.
55
 
4
  Tags: Video, YouTube, Vimeo, Blip.tv, Thumbnails
5
  Requires at least: 3.0
6
  Tested up to: 3.0.2
7
+ Stable tag: 0.5.2
8
 
9
  Video Thumbnails is a simple plugin that makes it easier to display video thumbnails in your template.
10
 
17
  * YouTube
18
  * Vimeo
19
  * Blip.tv
20
+ * [Simple Video Embedder](http://wordpress.org/extend/plugins/simple-video-embedder/)
21
  * [Vimeo Shortcode](http://blog.esimplestudios.com/2010/08/embedding-vimeo-videos-in-wordpress/)
22
+ * [JR Embed](http://plugins.jakeruston.co.uk/wordpress/wordpress-plugin-jr-embed/)
23
 
24
  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.
25
 
51
 
52
  == Changelog ==
53
 
54
+ = 0.5.2 =
55
+ * Added support for [Simple Video Embedder](http://wordpress.org/extend/plugins/simple-video-embedder/)
56
+
57
  = 0.5.1 =
58
  * Added a test to make sure the YouTube thumbnail actually exists. This prevents you from getting that ugly default thumbnail from YouTube.
59
 
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. Add <code>&lt;?php video_thumbnail(); ?&gt;</code> to your loop to return a thumbnail, or check the FAQ section for more advanced uses. Currently works with YouTube, Vimeo, and Blip.tv, with other services coming soon.
6
  Author: Sutherland Boswell
7
  Author URI: http://sutherlandboswell.com
8
- Version: 0.5.1
9
  License: GPL2
10
  */
11
  /* Copyright 2010 Sutherland Boswell (email : sutherland.boswell@gmail.com)
@@ -61,6 +61,13 @@ function get_video_thumbnail() {
61
  $markup = get_the_content();
62
  $new_thumbnail = null;
63
 
 
 
 
 
 
 
 
64
  // Checks for a standard YouTube embed
65
  preg_match('#<object[^>]+>.+?http://www.youtube.com/v/([A-Za-z0-9\-_]+).+?</object>#s', $markup, $matches);
66
 
5
  Description: A plugin designed to fetch video thumbnails. Add <code>&lt;?php video_thumbnail(); ?&gt;</code> to your loop to return a thumbnail, or check the FAQ section for more advanced uses. Currently works with YouTube, Vimeo, and Blip.tv, with other services coming soon.
6
  Author: Sutherland Boswell
7
  Author URI: http://sutherlandboswell.com
8
+ Version: 0.5.2
9
  License: GPL2
10
  */
11
  /* Copyright 2010 Sutherland Boswell (email : sutherland.boswell@gmail.com)
61
  $markup = get_the_content();
62
  $new_thumbnail = null;
63
 
64
+ // Simple Video Embedder Compatibility
65
+ if(function_exists('p75HasVideo')) {
66
+ if ( p75HasVideo($postid) ) {
67
+ $markup = p75GetVideo($postid);
68
+ }
69
+ }
70
+
71
  // Checks for a standard YouTube embed
72
  preg_match('#<object[^>]+>.+?http://www.youtube.com/v/([A-Za-z0-9\-_]+).+?</object>#s', $markup, $matches);
73