Version Description
- Loop videos workaround
Download this release
Release Info
Developer | freediver |
Plugin | Smart YouTube PRO |
Version | 4.1.6 |
Comparing to | |
See all releases |
Code changes from version 4.1.4 to 4.1.6
- readme.txt +14 -2
- smartyoutube.php +9 -7
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: freediver
|
|
3 |
Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=520781390
|
4 |
Tags: youtube, video, play, media, Post, posts, admin, metacafe, liveleak, vimeo, facebook, thumbnails
|
5 |
Requires at least: 2.0
|
6 |
-
Tested up to: 3.3
|
7 |
Stable tag: trunk
|
8 |
|
9 |
Smart Youtube is a professional WordPress Video plugin that allows you to easily insert videos/playlists into your post, comments and in your RSS feed. The plugin is designed to be small and fast and not use any external resources.
|
@@ -35,11 +35,23 @@ Main Features:
|
|
35 |
Example:
|
36 |
http://www.youtube.com/watch?v=zlfKdbWwruY
|
37 |
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
43 |
= 4.1.4 =
|
44 |
* Support for HTTPS in the dashboard (thanks to Mile Rosu)
|
45 |
|
3 |
Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=520781390
|
4 |
Tags: youtube, video, play, media, Post, posts, admin, metacafe, liveleak, vimeo, facebook, thumbnails
|
5 |
Requires at least: 2.0
|
6 |
+
Tested up to: 3.3.2
|
7 |
Stable tag: trunk
|
8 |
|
9 |
Smart Youtube is a professional WordPress Video plugin that allows you to easily insert videos/playlists into your post, comments and in your RSS feed. The plugin is designed to be small and fast and not use any external resources.
|
35 |
Example:
|
36 |
http://www.youtube.com/watch?v=zlfKdbWwruY
|
37 |
|
38 |
+
**Related plugins:**
|
39 |
+
|
40 |
+
* [Theme Test Drive](http://wordpress.org/extend/plugins/theme-test-drive/)
|
41 |
+
* [WP Quick Deploy](http://wordpress.org/extend/plugins/wp-quick-deploy/)
|
42 |
+
|
43 |
+
If you like what I do in WordPress, you will also like [ManageWP](http://managewp.com "Manage WordPress sites") service.
|
44 |
+
|
45 |
+
For updates, you can check out [my blog](http://www.prelovac.com/vladimir/) or follow me on Twitter [@vprelovac](http://twitter.com/vprelovac).
|
46 |
+
|
47 |
+
|
48 |
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
+
= 4.1.6 =
|
53 |
+
* Loop videos workaround
|
54 |
+
|
55 |
= 4.1.4 =
|
56 |
* Support for HTTPS in the dashboard (thanks to Mile Rosu)
|
57 |
|
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.1.
|
8 |
Author URI: http://www.prelovac.com/vladimir/
|
9 |
|
10 |
|
@@ -490,7 +490,7 @@ class SmartYouTube_PRO {
|
|
490 |
<div style="margin: 0 0 0 4px; clear: both;">
|
491 |
<input type="checkbox" id="autoplay_checkbox" name="autoplay" <?php echo $disp_autoplay; ?> /><label for="autoplay_checkbox"><?php _e( 'Autoplay videos', 'smart-youtube' ); ?></label><br />
|
492 |
<input type="checkbox" id="autoplay_first_checkbox" name="autoplay_first" <?php echo $disp_autoplay_first; ?> /><label for="autoplay_first_checkbox"><?php _e( 'Autoplay only first video on page', 'smart-youtube' ); ?></label><br />
|
493 |
-
<input type="checkbox" id="loop_checkbox" name="loop" <? echo $disp_loop; ?> /><label for="loop_checkbox"><?php _e( 'Loop videos', 'smart-youtube' ); ?></label><br />
|
494 |
<input type="checkbox" id="disp_search" name="disp_search" <?php echo $disp_search; ?> /><label for="disp_search"><?php _e( 'Display search box', 'smart-youtube' ); ?></label><br />
|
495 |
<input type="checkbox" id="thumb_checkbox" name="thumb" <?php echo $thumb; ?> /><label for="thumb_checkbox"><?php _e( 'Display thumbnails on home/archive pages', 'smart-youtube' ); ?></label><br />
|
496 |
<input type="checkbox" id="cbox_checkbox" name="colorbox" <?php echo $colorbox; ?> /><label for="cbox_checkbox"><?php _e( 'Show video in colorbox', 'smart-youtube' ); ?></label><br />
|
@@ -526,7 +526,7 @@ class SmartYouTube_PRO {
|
|
526 |
<label for="tag"><?php _e( 'Custom code', 'smart-youtube' ); ?></label>
|
527 |
|
528 |
<h3><?php _e( 'WiziApp support', 'smart-youtube' ); ?></h3>
|
529 |
-
<p><?php _e( '
|
530 |
<input id="wiziapp" type="checkbox" name="wiziapp" <?php echo $wiziapp; ?> />
|
531 |
<label for="wiziapp"><?php _e( 'Enable WiziApp support', 'smart-youtube' ); ?></label>
|
532 |
<h3><?php _e( 'xHTML validation', 'smart-youtube' ); ?></h3>
|
@@ -936,7 +936,9 @@ EOT;
|
|
936 |
$disp_ann = $this->options['ann'] == 'on' ? '&iv_load_policy=3' : '';
|
937 |
$template = trim( $this->options['template'] ) == '' ? '{video}' : $this->options['template'];
|
938 |
$valid = $this->options['valid'];
|
939 |
-
|
|
|
|
|
940 |
$thumb = $this->options['thumb'];
|
941 |
$colorbox = $this->options['colorbox'];
|
942 |
$logoless = $this->options['logoless'];
|
@@ -1036,12 +1038,12 @@ EOT;
|
|
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
|
1040 |
else
|
1041 |
-
$video_url = htmlspecialchars( "$root_url/v/$file?wmode=transparent&fs=1&hl=en&$ap$ll
|
1042 |
|
1043 |
if ( $playlist ) {
|
1044 |
-
$video_url = htmlspecialchars( "$root_url/embed/videoseries?list=$file&fs=1&hl=en$ap$ll
|
1045 |
$yte_tag = <<<EOT
|
1046 |
<span class="youtube"><iframe class="youtube-player" src="$video_url" width="$width" height="$height" frameborder="0" allowfullscreen></iframe></span>
|
1047 |
EOT;
|
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.6
|
8 |
Author URI: http://www.prelovac.com/vladimir/
|
9 |
|
10 |
|
490 |
<div style="margin: 0 0 0 4px; clear: both;">
|
491 |
<input type="checkbox" id="autoplay_checkbox" name="autoplay" <?php echo $disp_autoplay; ?> /><label for="autoplay_checkbox"><?php _e( 'Autoplay videos', 'smart-youtube' ); ?></label><br />
|
492 |
<input type="checkbox" id="autoplay_first_checkbox" name="autoplay_first" <?php echo $disp_autoplay_first; ?> /><label for="autoplay_first_checkbox"><?php _e( 'Autoplay only first video on page', 'smart-youtube' ); ?></label><br />
|
493 |
+
<input type="checkbox" id="loop_checkbox" name="loop" <?php echo $disp_loop; ?> /><label for="loop_checkbox"><?php _e( 'Loop videos', 'smart-youtube' ); ?></label><br />
|
494 |
<input type="checkbox" id="disp_search" name="disp_search" <?php echo $disp_search; ?> /><label for="disp_search"><?php _e( 'Display search box', 'smart-youtube' ); ?></label><br />
|
495 |
<input type="checkbox" id="thumb_checkbox" name="thumb" <?php echo $thumb; ?> /><label for="thumb_checkbox"><?php _e( 'Display thumbnails on home/archive pages', 'smart-youtube' ); ?></label><br />
|
496 |
<input type="checkbox" id="cbox_checkbox" name="colorbox" <?php echo $colorbox; ?> /><label for="cbox_checkbox"><?php _e( 'Show video in colorbox', 'smart-youtube' ); ?></label><br />
|
526 |
<label for="tag"><?php _e( 'Custom code', 'smart-youtube' ); ?></label>
|
527 |
|
528 |
<h3><?php _e( 'WiziApp support', 'smart-youtube' ); ?></h3>
|
529 |
+
<p><?php _e( 'This will integrate your video seamlessly with WiziApp', 'smart-youtube' ); ?></p>
|
530 |
<input id="wiziapp" type="checkbox" name="wiziapp" <?php echo $wiziapp; ?> />
|
531 |
<label for="wiziapp"><?php _e( 'Enable WiziApp support', 'smart-youtube' ); ?></label>
|
532 |
<h3><?php _e( 'xHTML validation', 'smart-youtube' ); ?></h3>
|
936 |
$disp_ann = $this->options['ann'] == 'on' ? '&iv_load_policy=3' : '';
|
937 |
$template = trim( $this->options['template'] ) == '' ? '{video}' : $this->options['template'];
|
938 |
$valid = $this->options['valid'];
|
939 |
+
if ($this->options['loop'])
|
940 |
+
$loop="&loop=1&playlist=$file";
|
941 |
+
else $loop='';
|
942 |
$thumb = $this->options['thumb'];
|
943 |
$colorbox = $this->options['colorbox'];
|
944 |
$logoless = $this->options['logoless'];
|
1038 |
}
|
1039 |
} else {
|
1040 |
if ( $this->options['iframe'] == 'on' )
|
1041 |
+
$video_url = htmlspecialchars( "$root_url/embed/$file?wmode=transparent&fs=1&hl=en$ap$ll$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel&theme=$theme", ENT_QUOTES ) . $high . $time;
|
1042 |
else
|
1043 |
+
$video_url = htmlspecialchars( "$root_url/v/$file?wmode=transparent&fs=1&hl=en&$ap$ll$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel&theme=$theme", ENT_QUOTES ) . $high . $time;
|
1044 |
|
1045 |
if ( $playlist ) {
|
1046 |
+
$video_url = htmlspecialchars( "$root_url/embed/videoseries?list=$file&fs=1&hl=en$ap$ll$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel&theme=$theme", ENT_QUOTES ) . $high . $time;
|
1047 |
$yte_tag = <<<EOT
|
1048 |
<span class="youtube"><iframe class="youtube-player" src="$video_url" width="$width" height="$height" frameborder="0" allowfullscreen></iframe></span>
|
1049 |
EOT;
|