Version Description
- Sometimes video won't show because template option is empty - now made sure that default template is used
Download this release
Release Info
Developer | freediver |
Plugin | Smart YouTube PRO |
Version | 3.8.2 |
Comparing to | |
See all releases |
Code changes from version 3.8 to 3.8.2
- readme.txt +5 -1
- smartyoutube.class.php +6 -5
- smartyoutube.php +1 -1
readme.txt
CHANGED
@@ -37,7 +37,11 @@ Plugin by Vladimir Prelovac. Looking for <a href="http://www.prelovac.com/vladim
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
-
= 3.8 =
|
|
|
|
|
|
|
|
|
41 |
* Support for new IFRAME embed code
|
42 |
* Support for HD playlists (httpvhp://)
|
43 |
* Support for new play formats (1280x745 & 960x745)
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
= 3.8.2 =
|
41 |
+
* Sometimes video won't show because template option is empty - now made sure that default template is used
|
42 |
+
|
43 |
+
|
44 |
+
= 3.8.1 =
|
45 |
* Support for new IFRAME embed code
|
46 |
* Support for HD playlists (httpvhp://)
|
47 |
* Support for new play formats (1280x745 & 960x745)
|
smartyoutube.class.php
CHANGED
@@ -14,7 +14,7 @@ class SmartYouTube
|
|
14 |
|
15 |
function __construct()
|
16 |
{
|
17 |
-
$this->local_version = '3.8'; // TODO: Change this number???
|
18 |
$this->custom_colors = array(
|
19 |
'blank' => array('d6d6d6', 'f0f0f0'),
|
20 |
'storm' => array('3a3a3a', '999999'),
|
@@ -33,7 +33,8 @@ class SmartYouTube
|
|
33 |
|
34 |
$this->key = 'smart_youtube';
|
35 |
|
36 |
-
|
|
|
37 |
|
38 |
$this->add_filters_and_hooks();
|
39 |
}
|
@@ -436,14 +437,14 @@ END;
|
|
436 |
function tag($file, $high = 'v', $time = '', $side = 0)
|
437 |
{
|
438 |
$playlist = 0;
|
439 |
-
|
440 |
$disp_border = $this->options['border'];
|
441 |
$disp_color = $this->options['color'];
|
442 |
$autoplay = $this->options['autoplay'];
|
443 |
$disp_search = $this->options['search'] == 'on' ? 1 : 0;
|
444 |
$disp_info = $this->options['info'] == 'on' ? '&showinfo=0' : '';
|
445 |
$disp_ann = $this->options['ann'] == 'on' ? '&iv_load_policy=3' : '';
|
446 |
-
$template = $this->options['template'];
|
447 |
$valid = $this->options['valid'];
|
448 |
|
449 |
switch ($high)
|
@@ -599,7 +600,7 @@ EOT;
|
|
599 |
}
|
600 |
|
601 |
if (get_option($this->key)) {
|
602 |
-
|
603 |
}
|
604 |
/*
|
605 |
// upgrade the options format (as all-in-one, not single entries)
|
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'),
|
33 |
|
34 |
$this->key = 'smart_youtube';
|
35 |
|
36 |
+
if (get_option($this->key))
|
37 |
+
$this->options=$this->get_options();
|
38 |
|
39 |
$this->add_filters_and_hooks();
|
40 |
}
|
437 |
function tag($file, $high = 'v', $time = '', $side = 0)
|
438 |
{
|
439 |
$playlist = 0;
|
440 |
+
$disp_rel = $this->options['rel'];
|
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' : '';
|
447 |
+
$template = trim($this->options['template']) == '' ? '{video}' : $this->options['template'];
|
448 |
$valid = $this->options['valid'];
|
449 |
|
450 |
switch ($high)
|
600 |
}
|
601 |
|
602 |
if (get_option($this->key)) {
|
603 |
+
$this->options=$this->get_options();
|
604 |
}
|
605 |
/*
|
606 |
// upgrade the options format (as all-in-one, not single entries)
|
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
|
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.2
|
8 |
Author URI: http://www.prelovac.com/vladimir/
|
9 |
|
10 |
|