Version Description
- Added wmode=transparent as default paramater
- Added support for new Playlist format
Download this release
Release Info
| Developer | freediver |
| Plugin | |
| Version | 4.1.0 |
| Comparing to | |
| See all releases | |
Code changes from version 4.0.3 to 4.1.0
- readme.txt +4 -0
- smartyoutube.php +6 -6
readme.txt
CHANGED
|
@@ -40,6 +40,10 @@ Plugin by Vladimir Prelovac. Also check out <a href="http://managewp.com">Manage
|
|
| 40 |
|
| 41 |
== Changelog ==
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
= 4.0.3 =
|
| 44 |
* More bug fixes
|
| 45 |
|
| 40 |
|
| 41 |
== Changelog ==
|
| 42 |
|
| 43 |
+
= 4.1.0 =
|
| 44 |
+
* Added wmode=transparent as default paramater
|
| 45 |
+
* Added support for new Playlist format
|
| 46 |
+
|
| 47 |
= 4.0.3 =
|
| 48 |
* More bug fixes
|
| 49 |
|
smartyoutube.php
CHANGED
|
@@ -4,7 +4,7 @@ Plugin Name: Smart Youtube PRO
|
|
| 4 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube
|
| 5 |
Description: Insert YouTube videos in posts, comments and RSS feeds with ease and full customization.
|
| 6 |
Author: Vladimir Prelovac
|
| 7 |
-
Version: 4.0
|
| 8 |
Author URI: http://www.prelovac.com/vladimir/
|
| 9 |
|
| 10 |
|
|
@@ -527,7 +527,7 @@ class SmartYouTube_PRO {
|
|
| 527 |
<label for="tag"><?php _e( 'Custom code', 'smart-youtube' ); ?></label>
|
| 528 |
|
| 529 |
<h3><?php _e( 'WiziApp support', 'smart-youtube' ); ?></h3>
|
| 530 |
-
<p><?php _e( 'WiziApp helps you to publish your blog as an iPhone app. This will integrate your video seamlessly. <a href="http://wiziapp.com">Learn more about WiziApp</a>.', 'smart-youtube' ); ?></p>
|
| 531 |
<input id="wiziapp" type="checkbox" name="wiziapp" <?php echo $wiziapp; ?> />
|
| 532 |
<label for="wiziapp"><?php _e( 'Enable WiziApp support', 'smart-youtube' ); ?></label>
|
| 533 |
<h3><?php _e( 'xHTML validation', 'smart-youtube' ); ?></h3>
|
|
@@ -667,7 +667,7 @@ class SmartYouTube_PRO {
|
|
| 667 |
|
| 668 |
$context = $side ? 'side' : 'post';
|
| 669 |
|
| 670 |
-
preg_match_all( "/((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^<\s]*))|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtu\.be\/([a-zA-Z0-9\-\_]{11}))|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?metacafe\.com\/watch\/([a-zA-Z0-9\-\_]{7})\/([^<^\/\s]*)([\/])?)|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?vimeo\.com\/([a-zA-Z0-9\-\_]{8})([\/])?)|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?liveleak\.com\/view(\?i\=)([a-zA-Z0-9\-\_]*))|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?facebook\.com\/video\/video.php\?v\=([a-zA-Z0-9\-\_]*))|((http(vp|vhp)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtube\.com\/(view_play_list
|
| 671 |
|
| 672 |
foreach ( $matches as $match ) {
|
| 673 |
if ( $match[1] != '' ) {
|
|
@@ -751,7 +751,7 @@ class SmartYouTube_PRO {
|
|
| 751 |
} elseif ( $match[37] != '' ) {
|
| 752 |
if ( 'on' == $this->options['wiziapp'] ) {
|
| 753 |
$videos = array();
|
| 754 |
-
$video_info['src'] = "http://www.youtube.com/playlist?
|
| 755 |
array_push( $videos, $video_info );
|
| 756 |
$replace_text = '';
|
| 757 |
$replace_text = apply_filters( 'wiziapp_3rd_party_plugin', $replace_text, 'video', $videos );
|
|
@@ -1036,9 +1036,9 @@ EOT;
|
|
| 1036 |
}
|
| 1037 |
} else {
|
| 1038 |
if ( $this->options['iframe'] == 'on' )
|
| 1039 |
-
$video_url = htmlspecialchars( "$root_url/embed/$file?fs=1&hl=en$ap$ll&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel&theme=$theme", ENT_QUOTES ) . $high . $time;
|
| 1040 |
else
|
| 1041 |
-
$video_url = htmlspecialchars( "$root_url/v/$file?fs=1&hl=en&$ap$ll&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel&theme=$theme", ENT_QUOTES ) . $high . $time;
|
| 1042 |
|
| 1043 |
if ( $playlist ) {
|
| 1044 |
$video_url = htmlspecialchars( "$root_url/embed/videoseries?list=$file&fs=1&hl=en$ap$ll&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel&theme=$theme", ENT_QUOTES ) . $high . $time;
|
| 4 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube
|
| 5 |
Description: Insert YouTube videos in posts, comments and RSS feeds with ease and full customization.
|
| 6 |
Author: Vladimir Prelovac
|
| 7 |
+
Version: 4.1.0
|
| 8 |
Author URI: http://www.prelovac.com/vladimir/
|
| 9 |
|
| 10 |
|
| 527 |
<label for="tag"><?php _e( 'Custom code', 'smart-youtube' ); ?></label>
|
| 528 |
|
| 529 |
<h3><?php _e( 'WiziApp support', 'smart-youtube' ); ?></h3>
|
| 530 |
+
<p><?php _e( 'WiziApp helps you to publish your blog as an iPhone app. This will integrate your video seamlessly. <a href="http://www.wiziapp.com/?a_aid=smartyoutube">Learn more about WiziApp</a>.', 'smart-youtube' ); ?></p>
|
| 531 |
<input id="wiziapp" type="checkbox" name="wiziapp" <?php echo $wiziapp; ?> />
|
| 532 |
<label for="wiziapp"><?php _e( 'Enable WiziApp support', 'smart-youtube' ); ?></label>
|
| 533 |
<h3><?php _e( 'xHTML validation', 'smart-youtube' ); ?></h3>
|
| 667 |
|
| 668 |
$context = $side ? 'side' : 'post';
|
| 669 |
|
| 670 |
+
preg_match_all( "/((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^<\s]*))|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtu\.be\/([a-zA-Z0-9\-\_]{11}))|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?metacafe\.com\/watch\/([a-zA-Z0-9\-\_]{7})\/([^<^\/\s]*)([\/])?)|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?vimeo\.com\/([a-zA-Z0-9\-\_]{8})([\/])?)|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?liveleak\.com\/view(\?i\=)([a-zA-Z0-9\-\_]*))|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?facebook\.com\/video\/video.php\?v\=([a-zA-Z0-9\-\_]*))|((http(vp|vhp)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtube\.com\/(view_play_list\?p\=|playlist\?list\=)(|\/v\/|#!v=)([a-zA-Z0-9\-\_])([^<\s]*))/", $the_content, $matches, PREG_SET_ORDER );
|
| 671 |
|
| 672 |
foreach ( $matches as $match ) {
|
| 673 |
if ( $match[1] != '' ) {
|
| 751 |
} elseif ( $match[37] != '' ) {
|
| 752 |
if ( 'on' == $this->options['wiziapp'] ) {
|
| 753 |
$videos = array();
|
| 754 |
+
$video_info['src'] = "http://www.youtube.com/playlist?list={$match[43]}";
|
| 755 |
array_push( $videos, $video_info );
|
| 756 |
$replace_text = '';
|
| 757 |
$replace_text = apply_filters( 'wiziapp_3rd_party_plugin', $replace_text, 'video', $videos );
|
| 1036 |
}
|
| 1037 |
} else {
|
| 1038 |
if ( $this->options['iframe'] == 'on' )
|
| 1039 |
+
$video_url = htmlspecialchars( "$root_url/embed/$file?wmode=transparent&fs=1&hl=en$ap$ll&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel&theme=$theme", ENT_QUOTES ) . $high . $time;
|
| 1040 |
else
|
| 1041 |
+
$video_url = htmlspecialchars( "$root_url/v/$file?wmode=transparent&fs=1&hl=en&$ap$ll&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel&theme=$theme", ENT_QUOTES ) . $high . $time;
|
| 1042 |
|
| 1043 |
if ( $playlist ) {
|
| 1044 |
$video_url = htmlspecialchars( "$root_url/embed/videoseries?list=$file&fs=1&hl=en$ap$ll&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel&theme=$theme", ENT_QUOTES ) . $high . $time;
|
