Smart YouTube PRO - Version 3.8.6

Version Description

Download this release

Release Info

Developer freediver
Plugin Icon 128x128 Smart YouTube PRO
Version 3.8.6
Comparing to
See all releases

Code changes from version 3.8.5 to 3.8.6

Files changed (3) hide show
  1. readme.txt +1 -1
  2. smartyoutube.class.php +7 -3
  3. smartyoutube.php +1 -1
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
5
  Requires at least: 2.0
6
- Tested up to: 3.1
7
  Stable tag: trunk
8
 
9
  Smart Youtube plugin allows you to insert full featured YouTube videos into your post, comments and in RSS feed.
3
  Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=520781390
4
  Tags: youtube, video, play, media, Post, posts, admin
5
  Requires at least: 2.0
6
+ Tested up to: 3.1.1
7
  Stable tag: trunk
8
 
9
  Smart Youtube plugin allows you to insert full featured YouTube videos into your post, comments and in RSS feed.
smartyoutube.class.php CHANGED
@@ -14,7 +14,7 @@ class SmartYouTube
14
 
15
  function __construct()
16
  {
17
- $this->local_version = '3.8.1'; // TODO: Change this number???
18
  $this->custom_colors = array(
19
  'blank' => array('d6d6d6', 'f0f0f0'),
20
  'storm' => array('3a3a3a', '999999'),
@@ -106,6 +106,7 @@ class SmartYouTube
106
  $this->options['border'] = !isset($_POST['embedBorder']) ? 0 : 1;
107
  $this->options['color'] = !isset($_POST['embedColor']) ? 'blank' : $_POST['embedColor'];
108
  $this->options['autoplay'] = !isset($_POST['autoplay']) ? 0 : 1;
 
109
  $this->options['privacy'] = !isset($_POST['disp_privacy']) ? 0 : 1;
110
 
111
  $this->options['posts'] = !isset($_POST['disp_posts']) ? 'off' : 'on';
@@ -144,6 +145,7 @@ class SmartYouTube
144
  $disp_heightside = $this->options['heightside'];
145
 
146
  $disp_autoplay = $this->options['autoplay'] ? 'checked="checked"' : '';
 
147
  $disp_rel = $this->options['rel'] ? 'checked="checked"' : '';
148
  $disp_rel2 = $this->options['rel'] ? '' : 'checked="checked"';
149
  $disp_border = $this->options['border'] ? 'checked="checked"' : '';
@@ -341,6 +343,7 @@ class SmartYouTube
341
  <div style="margin: 0 0 0 4px; clear: both;">
342
  <input type="checkbox" onchange="onUpdatePreviewImage();" id="show_border_checkbox" name="embedBorder" $disp_border /><label for="show_border_checkbox"> Show Border</label><br />
343
  <input type="checkbox" id="autoplay_checkbox" name="autoplay" $disp_autoplay /><label for="autoplay_checkbox"> Autoplay videos</label><br />
 
344
  <input type="checkbox" id="disp_search" name="disp_search" $disp_search /><label for="disp_search"> Display search box</label><br />
345
  <input type="checkbox" id="disp_info" name="disp_info" $disp_info /><label for="disp_info"> Remove Titles & Ratings</label><br />
346
  <input type="checkbox" id="disp_ann" name="disp_ann" $disp_ann /><label for="disp_ann"> Remove Annotations</label><br />
@@ -441,6 +444,7 @@ END;
441
  $disp_border = $this->options['border'];
442
  $disp_color = $this->options['color'];
443
  $autoplay = $this->options['autoplay'];
 
444
  $disp_search = $this->options['search'] == 'on' ? 1 : 0;
445
  $disp_info = $this->options['info'] == 'on' ? '&showinfo=0' : '';
446
  $disp_ann = $this->options['ann'] == 'on' ? '&iv_load_policy=3' : '';
@@ -497,9 +501,9 @@ END;
497
  $root_url = $this->options['privacy'] ? 'http://www.youtube-nocookie.com' : 'http://www.youtube.com';
498
 
499
  if ($this->options['iframe']=='on')
500
- $video_url = htmlspecialchars("$root_url/embed/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en&autoplay=$autoplay{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel", ENT_QUOTES) . $high . $time;
501
  else
502
- $video_url = htmlspecialchars("$root_url/v/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en&autoplay=$autoplay{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel", ENT_QUOTES) . $high . $time;
503
 
504
  if ($playlist)
505
  {
14
 
15
  function __construct()
16
  {
17
+ $this->local_version = '3.8.6'; // TODO: Change this number???
18
  $this->custom_colors = array(
19
  'blank' => array('d6d6d6', 'f0f0f0'),
20
  'storm' => array('3a3a3a', '999999'),
106
  $this->options['border'] = !isset($_POST['embedBorder']) ? 0 : 1;
107
  $this->options['color'] = !isset($_POST['embedColor']) ? 'blank' : $_POST['embedColor'];
108
  $this->options['autoplay'] = !isset($_POST['autoplay']) ? 0 : 1;
109
+ $this->options['loop'] = !isset($_POST['loop']) ? 0 : 1;
110
  $this->options['privacy'] = !isset($_POST['disp_privacy']) ? 0 : 1;
111
 
112
  $this->options['posts'] = !isset($_POST['disp_posts']) ? 'off' : 'on';
145
  $disp_heightside = $this->options['heightside'];
146
 
147
  $disp_autoplay = $this->options['autoplay'] ? 'checked="checked"' : '';
148
+ $disp_loop = $this->options['loop'] ? 'checked="checked"' : '';
149
  $disp_rel = $this->options['rel'] ? 'checked="checked"' : '';
150
  $disp_rel2 = $this->options['rel'] ? '' : 'checked="checked"';
151
  $disp_border = $this->options['border'] ? 'checked="checked"' : '';
343
  <div style="margin: 0 0 0 4px; clear: both;">
344
  <input type="checkbox" onchange="onUpdatePreviewImage();" id="show_border_checkbox" name="embedBorder" $disp_border /><label for="show_border_checkbox"> Show Border</label><br />
345
  <input type="checkbox" id="autoplay_checkbox" name="autoplay" $disp_autoplay /><label for="autoplay_checkbox"> Autoplay videos</label><br />
346
+ <input type="checkbox" id="loop_checkbox" name="loop" $disp_loop /><label for="loop_checkbox"> Loop videos</label><br />
347
  <input type="checkbox" id="disp_search" name="disp_search" $disp_search /><label for="disp_search"> Display search box</label><br />
348
  <input type="checkbox" id="disp_info" name="disp_info" $disp_info /><label for="disp_info"> Remove Titles & Ratings</label><br />
349
  <input type="checkbox" id="disp_ann" name="disp_ann" $disp_ann /><label for="disp_ann"> Remove Annotations</label><br />
444
  $disp_border = $this->options['border'];
445
  $disp_color = $this->options['color'];
446
  $autoplay = $this->options['autoplay'];
447
+ $loop = $this->options['loop'];
448
  $disp_search = $this->options['search'] == 'on' ? 1 : 0;
449
  $disp_info = $this->options['info'] == 'on' ? '&showinfo=0' : '';
450
  $disp_ann = $this->options['ann'] == 'on' ? '&iv_load_policy=3' : '';
501
  $root_url = $this->options['privacy'] ? 'http://www.youtube-nocookie.com' : 'http://www.youtube.com';
502
 
503
  if ($this->options['iframe']=='on')
504
+ $video_url = htmlspecialchars("$root_url/embed/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en&autoplay=$autoplay&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel", ENT_QUOTES) . $high . $time;
505
  else
506
+ $video_url = htmlspecialchars("$root_url/v/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en&autoplay=$autoplay&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel", ENT_QUOTES) . $high . $time;
507
 
508
  if ($playlist)
509
  {
smartyoutube.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Smart Youtube
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: 3.8.5
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
 
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: 3.8.6
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10