Version Description
- Minor changes to the XHTML code to prevent warnings from certain validators
=
Download this release
Release Info
Developer | dartiss |
Plugin | YouTube Embed |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.2
- readme.txt +7 -1
- youtube-embed.php +5 -5
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://tinyurl.com/bdc4uu
|
|
4 |
Tags: YouTube, XHTML, Video, Embed, Playlist, Thumbnail
|
5 |
Requires at least: 2.0
|
6 |
Tested up to: 3.0
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
YouTube Embed is a powerful, but simple to use, method of embedding YouTube videos in your WordPress theme.
|
10 |
|
@@ -155,6 +155,9 @@ Feel free to report any problems, or suggestions for enhancements, to me either
|
|
155 |
* Resulting XHTML code is better formatted, with comments identifying code location
|
156 |
* Confirmed WP 3.0 compatibility
|
157 |
|
|
|
|
|
|
|
158 |
== Upgrade Notice ==
|
159 |
|
160 |
= 1.0 =
|
@@ -163,6 +166,9 @@ Feel free to report any problems, or suggestions for enhancements, to me either
|
|
163 |
= 1.1 =
|
164 |
* Update to get the test video on the options screen working again!
|
165 |
|
|
|
|
|
|
|
166 |
== Parameters ==
|
167 |
|
168 |
The following parameters can be specified for any embedded YouTube video. Some of these will also work with playlists but, due to a lack of YouTube documentation on the subject, I'm unable to say which they are.
|
4 |
Tags: YouTube, XHTML, Video, Embed, Playlist, Thumbnail
|
5 |
Requires at least: 2.0
|
6 |
Tested up to: 3.0
|
7 |
+
Stable tag: 1.2
|
8 |
|
9 |
YouTube Embed is a powerful, but simple to use, method of embedding YouTube videos in your WordPress theme.
|
10 |
|
155 |
* Resulting XHTML code is better formatted, with comments identifying code location
|
156 |
* Confirmed WP 3.0 compatibility
|
157 |
|
158 |
+
= 1.2 =
|
159 |
+
* Minor changes to the XHTML code to prevent warnings from certain validators
|
160 |
+
|
161 |
== Upgrade Notice ==
|
162 |
|
163 |
= 1.0 =
|
166 |
= 1.1 =
|
167 |
* Update to get the test video on the options screen working again!
|
168 |
|
169 |
+
= 1.2 =
|
170 |
+
* Update to ensure no warnings are reported by XHTML validators
|
171 |
+
|
172 |
== Parameters ==
|
173 |
|
174 |
The following parameters can be specified for any embedded YouTube video. Some of these will also work with playlists but, due to a lack of YouTube documentation on the subject, I'm unable to say which they are.
|
youtube-embed.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: YouTube Embed
|
4 |
Plugin URI: http://www.artiss.co.uk/youtube-embed
|
5 |
Description: Embed YouTube Videos in WordPress
|
6 |
-
Version: 1.
|
7 |
Author: David Artiss
|
8 |
Author URI: http://www.artiss.co.uk
|
9 |
*/
|
@@ -83,7 +83,7 @@ function youtube_short_url($id) {return "http://youtu.be/".$id;}
|
|
83 |
|
84 |
// Generate XHTML compatible YouTube embed code
|
85 |
function generate_youtube_code($id,$type,$width,$height,$fullscreen,$related,$autoplay,$loop,$egm,$border,$color1,$color2,$start,$hd,$search,$info,$annotation,$cc,$style,$widget="") {
|
86 |
-
$version=1.
|
87 |
// Ensure an ID is passed
|
88 |
if (($id=="")&&(strtolower($widget)!="yes")) {
|
89 |
return youtube_embed_error("No video/playlist ID has been supplied");
|
@@ -128,9 +128,9 @@ function generate_youtube_code($id,$type,$width,$height,$fullscreen,$related,$au
|
|
128 |
// Write out code
|
129 |
$result="<!-- YouTube Embed v".$version." | http://www.artiss.co.uk/youtube-embed -->\n";
|
130 |
if ($style!="") {$result.="<div style=\"".$style."\">\n";}
|
131 |
-
$result.="<object type=\"application/x-shockwave-flash\" data=\"http://www.youtube.com/".$type."/".$id.$paras."\" width=\"".$width."
|
132 |
-
$result.="<param name=\"movie\" value=\"http://www.youtube.com/".$type."/".$id.$paras."\"
|
133 |
-
if ($fullscreen==1) {$result.="<param name=\"allowFullScreen\" value=\"true\"
|
134 |
$result.="</object>\n";
|
135 |
if ($style!="") {$result.="</div>\n";}
|
136 |
$result.="<!-- End of YouTube Embed code -->\n";
|
3 |
Plugin Name: YouTube Embed
|
4 |
Plugin URI: http://www.artiss.co.uk/youtube-embed
|
5 |
Description: Embed YouTube Videos in WordPress
|
6 |
+
Version: 1.2
|
7 |
Author: David Artiss
|
8 |
Author URI: http://www.artiss.co.uk
|
9 |
*/
|
83 |
|
84 |
// Generate XHTML compatible YouTube embed code
|
85 |
function generate_youtube_code($id,$type,$width,$height,$fullscreen,$related,$autoplay,$loop,$egm,$border,$color1,$color2,$start,$hd,$search,$info,$annotation,$cc,$style,$widget="") {
|
86 |
+
$version=1.2;
|
87 |
// Ensure an ID is passed
|
88 |
if (($id=="")&&(strtolower($widget)!="yes")) {
|
89 |
return youtube_embed_error("No video/playlist ID has been supplied");
|
128 |
// Write out code
|
129 |
$result="<!-- YouTube Embed v".$version." | http://www.artiss.co.uk/youtube-embed -->\n";
|
130 |
if ($style!="") {$result.="<div style=\"".$style."\">\n";}
|
131 |
+
$result.="<object type=\"application/x-shockwave-flash\" data=\"http://www.youtube.com/".$type."/".$id.$paras."\" width=\"".$width."\" height=\"".$height."\">\n";
|
132 |
+
$result.="<param name=\"movie\" value=\"http://www.youtube.com/".$type."/".$id.$paras."\" />\n";
|
133 |
+
if ($fullscreen==1) {$result.="<param name=\"allowFullScreen\" value=\"true\" />\n";}
|
134 |
$result.="</object>\n";
|
135 |
if ($style!="") {$result.="</div>\n";}
|
136 |
$result.="<!-- End of YouTube Embed code -->\n";
|