Version Description
Download this release
Release Info
Developer | freediver |
Plugin | Smart YouTube PRO |
Version | 2.7 |
Comparing to | |
See all releases |
Code changes from version 2.6.1 to 2.7
- readme.txt +4 -2
- smartyoutube.php +31 -3
readme.txt
CHANGED
@@ -23,16 +23,18 @@ Main Features:
|
|
23 |
|
24 |
* Easily embeds YouTube videos
|
25 |
* Supports latest high quality video protocols (360p and HD quality 720p)
|
|
|
26 |
* Supports video deep linking (starting at desired point with &start=time parameter)
|
27 |
-
* Has an option to show video thumbnail picture in your RSS feed
|
28 |
* Works on iPod and iPhone
|
|
|
29 |
* Produces xHTML valid code
|
30 |
* Very fast and light, no extra scripts needed
|
31 |
-
* Allows full YouTube customization (colors, border, full screen...)
|
32 |
|
33 |
|
34 |
Change Log:
|
35 |
|
|
|
|
|
36 |
|
37 |
v2.6:
|
38 |
- Added option to disable search box
|
23 |
|
24 |
* Easily embeds YouTube videos
|
25 |
* Supports latest high quality video protocols (360p and HD quality 720p)
|
26 |
+
* Allows full YouTube customization (colors, border, full screen...)
|
27 |
* Supports video deep linking (starting at desired point with &start=time parameter)
|
|
|
28 |
* Works on iPod and iPhone
|
29 |
+
* Provides a sidebar widget for videos as well
|
30 |
* Produces xHTML valid code
|
31 |
* Very fast and light, no extra scripts needed
|
|
|
32 |
|
33 |
|
34 |
Change Log:
|
35 |
|
36 |
+
v2.7
|
37 |
+
- Added support for sidebar widget videos
|
38 |
|
39 |
v2.6:
|
40 |
- Added option to disable search box
|
smartyoutube.php
CHANGED
@@ -4,10 +4,11 @@ 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: 2.
|
8 |
Author URI: http://www.prelovac.com/vladimir/
|
9 |
|
10 |
Updates:
|
|
|
11 |
2.6 - Added option to remove search button
|
12 |
2.5 - Added DVD quality support (httpvq)
|
13 |
2.4.1 - Small fixes in embed and rss links
|
@@ -25,7 +26,7 @@ To-Doo:
|
|
25 |
- localization
|
26 |
*/
|
27 |
|
28 |
-
$yte_localversion="2.
|
29 |
|
30 |
$CustomColors=array (
|
31 |
"blank" => array("d6d6d6","f0f0f0"),
|
@@ -537,6 +538,34 @@ function yte_install(){
|
|
537 |
add_option('smart_yt_search', 'off');
|
538 |
}
|
539 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
540 |
}
|
541 |
|
542 |
if (isset($_GET['activate']) && $_GET['activate'] == 'true') {
|
@@ -551,7 +580,6 @@ if (get_option('smart_yt_posts')=='on') {
|
|
551 |
}
|
552 |
if (get_option('smart_yt_comments')=='on') {
|
553 |
add_filter('comment_text','yte_check', 100);
|
554 |
-
|
555 |
}
|
556 |
|
557 |
add_action( 'plugins_loaded', 'yte_install' );
|
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: 2.7
|
8 |
Author URI: http://www.prelovac.com/vladimir/
|
9 |
|
10 |
Updates:
|
11 |
+
2.7 - Supports a sidebar widget for videos
|
12 |
2.6 - Added option to remove search button
|
13 |
2.5 - Added DVD quality support (httpvq)
|
14 |
2.4.1 - Small fixes in embed and rss links
|
26 |
- localization
|
27 |
*/
|
28 |
|
29 |
+
$yte_localversion="2.7";
|
30 |
|
31 |
$CustomColors=array (
|
32 |
"blank" => array("d6d6d6","f0f0f0"),
|
538 |
add_option('smart_yt_search', 'off');
|
539 |
}
|
540 |
|
541 |
+
// register widget
|
542 |
+
register_sidebar_widget('Smart YouTube', 'yte_widget');
|
543 |
+
register_widget_control('Smart YouTube', 'yte_widgetcontrol');
|
544 |
+
|
545 |
+
|
546 |
+
}
|
547 |
+
|
548 |
+
function yte_widgetcontrol()
|
549 |
+
{
|
550 |
+
if ($_REQUEST['submit'])
|
551 |
+
{
|
552 |
+
update_option('smart_yt_wtext', htmlspecialchars($_REQUEST['text']));
|
553 |
+
}
|
554 |
+
$text=stripslashes(stripslashes(get_option('smart_yt_wtext')));
|
555 |
+
|
556 |
+
echo 'Insert HTML code below. In addition to normal text you may use httpv, httpvh and httpvhd links just like in your posts.<br/><textarea id="text" name="text" rows="10" cols="16" class="widefat">'.$text.'</textarea>';
|
557 |
+
echo '<input type="hidden" id="submit" name="submit" value="1" />';
|
558 |
+
}
|
559 |
+
|
560 |
+
|
561 |
+
function yte_widget($args = array() )
|
562 |
+
{
|
563 |
+
|
564 |
+
$text = yte_check(stripslashes(get_option('smart_yt_wtext')));
|
565 |
+
echo $before_widget;
|
566 |
+
echo $text;
|
567 |
+
echo $after_widget;
|
568 |
+
|
569 |
}
|
570 |
|
571 |
if (isset($_GET['activate']) && $_GET['activate'] == 'true') {
|
580 |
}
|
581 |
if (get_option('smart_yt_comments')=='on') {
|
582 |
add_filter('comment_text','yte_check', 100);
|
|
|
583 |
}
|
584 |
|
585 |
add_action( 'plugins_loaded', 'yte_install' );
|