Smart YouTube PRO - Version 4.3

Version Description

  • Fixed notice with enquue scripts
  • Modern YouYube embed method made default
  • Multiple small fixes
Download this release

Release Info

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

Code changes from version 4.2.6 to 4.3

Files changed (4) hide show
  1. i/mwp250_2.png +0 -0
  2. patch1.diff +0 -77
  3. readme.txt +10 -8
  4. smartyoutube.php +38 -80
i/mwp250_2.png ADDED
Binary file
patch1.diff DELETED
@@ -1,77 +0,0 @@
1
- From e6c2891d7ba1176e8a99d18d81b5363c320e6fc2 Mon Sep 17 00:00:00 2001
2
- From: Mainboarder <git@mainboarder.de>
3
- Date: Wed, 30 Jul 2014 08:56:25 +0200
4
- Subject: [PATCH] Dynamic protocol decision
5
-
6
- ---
7
- smartyoutube.php | 16 ++++++++--------
8
- 1 file changed, 8 insertions(+), 8 deletions(-)
9
-
10
- diff --git a/smartyoutube.php b/smartyoutube.php
11
- index 59c89a8..118897b 100644
12
- --- a/smartyoutube.php
13
- +++ b/smartyoutube.php
14
- @@ -1021,10 +1021,10 @@ EOT;
15
- $ll = '';
16
- }
17
-
18
- - $root_url = $this->options['privacy'] ? 'https://www.youtube-nocookie.com' : 'https://www.youtube.com';
19
- + $root_url = $this->options['privacy'] ? '//www.youtube-nocookie.com' : '//www.youtube.com';
20
-
21
- if ( $excerpt == 'thm' ) {
22
- - $img_url = htmlspecialchars( "https://img.youtube.com/vi/$file/0.jpg" );
23
- + $img_url = htmlspecialchars( "//img.youtube.com/vi/$file/0.jpg" );
24
- global $post;
25
- $post_url = get_permalink( $post->ID );
26
- $yte_tag = <<<EOT
27
- @@ -1033,7 +1033,7 @@ EOT;
28
- }
29
-
30
- if ( ( ( is_home() || is_front_page() || is_archive() ) && $context == 'post' && $thumb == 'on' ) || ( $context == 'thumb' ) || ( $context == 'excerpt' && $excerpt == 'thm' ) ) {
31
- - $img_url = htmlspecialchars( "https://img.youtube.com/vi/$file/0.jpg" );
32
- + $img_url = htmlspecialchars( "//img.youtube.com/vi/$file/0.jpg" );
33
- if ( $context == 'excerpt' && $excerpt == 'thm' ) {
34
- global $post;
35
- $post_url = get_permalink( $post->ID );
36
- @@ -1058,7 +1058,7 @@ EOT;
37
- EOT;
38
- } elseif ( $valid == 'off' || strpos( $_SERVER['HTTP_USER_AGENT'], 'iPhone' ) === TRUE || strpos( $_SERVER['HTTP_USER_AGENT'], 'iPod' ) === TRUE || strpos( $_SERVER['HTTP_USER_AGENT'], 'iPad' ) === TRUE ) {
39
- if ( $context == 'post' && $colorbox == 'on' ) {
40
- - $img_url = htmlspecialchars( "https://img.youtube.com/vi/$file/0.jpg" );
41
- + $img_url = htmlspecialchars( "//img.youtube.com/vi/$file/0.jpg" );
42
- $yte_tag = <<<EOT
43
- <a class="colorbox_video" href="$video_url"><img width="$width" height="$height" src="$img_url" /></a></span>
44
- EOT;
45
- @@ -1073,7 +1073,7 @@ EOT;
46
- EOT;
47
- } else {
48
- if ( $context == 'post' && $colorbox == 'on' ) {
49
- - $img_url = htmlspecialchars( "https://img.youtube.com/vi/$file/0.jpg" );
50
- + $img_url = htmlspecialchars( "//img.youtube.com/vi/$file/0.jpg" );
51
- $yte_tag = <<<EOT
52
- <a class="colorbox_video" href="$video_url"><img width="$width" height="$height" src="$img_url" /></a></span>
53
- EOT;
54
- @@ -1095,9 +1095,9 @@ EOT;
55
- $high = '&fmt=18';
56
- }
57
- if ( $playlist )
58
- - $url = 'https://www.youtube.com/playlist?list=';
59
- + $url = '//www.youtube.com/playlist?list=';
60
- else
61
- - $url = 'https://www.youtube.com/watch?v=';
62
- + $url = '//www.youtube.com/watch?v=';
63
-
64
- $yte_tag = '';
65
- if ( $this->options['link'] == 'on' ) {
66
- @@ -1105,7 +1105,7 @@ EOT;
67
- }
68
-
69
- if ( $this->options['img'] == 'on' ) {
70
- - $yte_tag .= '<p><a href="' . $url . $file . $high. '"><img src="https://img.youtube.com/vi/' . $file . '/default.jpg" width="130" height="97" border=0></a></p>';
71
- + $yte_tag .= '<p><a href="' . $url . $file . $high. '"><img src="//img.youtube.com/vi/' . $file . '/default.jpg" width="130" height="97" border=0></a></p>';
72
- }
73
-
74
- if ($this->options['link'] == 'off' && $this->options['img'] == 'off')
75
- --
76
- 1.8.3.msysgit.0
77
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -2,11 +2,11 @@
2
  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: 4.0
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.
10
 
11
  == Description ==
12
 
@@ -37,18 +37,20 @@ 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.2.6 =
53
  * Better support for https sites
54
 
2
  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.3
6
+ Tested up to: 4.1
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 from all major video services. The plugin is designed to be small and fast and not use any external resources.
10
 
11
  == Description ==
12
 
37
 
38
  **Related plugins:**
39
 
40
+ * [SEO Friendly Images](http://wordpress.org/extend/plugins/seo-image/)
 
41
 
42
+ Feel free to check out my [my blog](http://www.prelovac.com/vladimir/).
 
 
43
 
44
 
45
 
46
 
47
  == Changelog ==
48
 
49
+ = 4.3 =
50
+ * Fixed notice with enquue scripts
51
+ * Modern YouYube embed method made default
52
+ * Multiple small fixes
53
+
54
  = 4.2.6 =
55
  * Better support for https sites
56
 
smartyoutube.php CHANGED
@@ -4,67 +4,9 @@ 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.2.6
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
-
11
- To-Do:
12
-
13
- - Is there a way to have smart youtube display multiple thumbnails of youtube videos in this fashion:
14
- http://wordpress.org/extend/plugins/my-youtube-playlist/
15
-
16
- The author of this plugin has done a good job in birthing the concept, but is unable to really do much by way of support or add features, e.g. highlight thumbnail currently playing, flexible grouping styles of thumbnails (horizontal, vertical listing) etc.
17
-
18
- - Wondering if there's a way to have smartyoutube generate a thumbnail of the youtube video that shows up as one of the thumbnail options for the article when someone shares the blog post?
19
-
20
- - Would it be possible to overwrite the global autoplay param in a post, something like httpv://www.youtube.com/watch?v=00000000&autoplay=true; I tried to add autoplay=1 but unfortunately in the resuling html it adds autoplay=0 (the global option) and also autoplay=1
21
- The result is no autoplay :(
22
-
23
- - Instead of editing the shortcut, we have copied from youtube.
24
- I would love to have a button,
25
- like insert Smart YouTube Video
26
- A dialogue box would pop up,
27
- and allow me to just simply paste the link.
28
- Then having check boxes on the side,
29
- which allow me to choose whether you would like HD or not.
30
- thus editing the link correctly.
31
-
32
- I find this would greatly help, especiall when I help create video blogs for community provider who have very little computer background.
33
-
34
- - Please add support for it on the BuddyPress Acitivity page, currently it just shows the url (which won't work because of the httpv and httpvh)
35
-
36
- - Was wondering if it was possible for you to have the plugin take the URL for the Youtube thumbnail for the video and place it into a user defined custom field. The plugin "YoutubeThumb2CustomField" but no longer works in WP 3.0 (network).
37
-
38
- - love to see vimeo support! i have video intensive site...love Vimeo
39
-
40
- Only issue is I would LOVE to add the widget into another sidebar and I do not see this possibility. Can you have multiple Smart YouTubes?
41
-
42
- - 1. Adding few possibilities for posting videos into post � I have great production of videos but before end of 2009 all was in 320 x 240 and after end of 2009 I start publishing video in 640 x 480 resolution. I have adjusted player video for 640 x 480 but now 320 x 240 videos are stretched across all of player window.
43
-
44
- For changes to be easy implemented � I suggest adding 2 or even 3 possibilities for playing videos � like this:
45
- Your original code httpv://www.youtube.com/********************
46
- Another version of httpv#1://www.youtube.com/********************
47
- Another version of httpv#2://www.youtube.com/********************
48
- Another version of httpv#3://www.youtube.com/********************
49
-
50
- Adding #1 after v will allow us to predefine what will be size of player for #1 or number #2 or number #3 � I think it is good idea
51
-
52
- If you don�t put #1, #2, #3 player will be those which is default (without number) � in my case that is 640 x 480.
53
-
54
- 2. If some video is for �personal use� which mean somebody must be log into you tube to see it, than I suggest making possibility for login for authors of those videos � If I put all my materials to be private (up to 25 people can see it) � than I cant publish them trough this way � and allowing authors to write theirs username and password will allow that those vides can be seen on my posts. That way I can protect all my archive of video on youtube, but allow those video can be visible on my blog � which can increase hits, visits and others possibility � that possibility is visible on this plug in http://tubepress.org/ where people can use its username and password for publishing all vides from if they have account on youtube
55
-
56
-
57
- - marinas javascript suggestion for hq videos
58
- - add editor button
59
- - The plugin places a preview image in the RSS feed which is great, but it links to the video on http://www.youtube.com. I would like to change it so the image links to the blog post so I can generate some traffic on my blog.
60
- - localization
61
- - the images appear under the embedded Smart Youtube videos. Is there any way to edit the z-index for Smart Youtube CSS? I
62
- - would like to use multiple instances of the Smart YouTube plugin. I saw the reply that said to simply use multiple calls in one instance of the widget, but that doesn't let me choose different videos for different pages.
63
- - was wondering if it's possible to get a vid and playlist in a custom page template?? Is it possible to add a preview image to search results?
64
- - I wondered if there were a way to bring the video to the forefront layer (perhaps z-index)? I know this actually breaks good design practice in my intended use, but have a look here:
65
- - However, on one page I have two videos and therefore I want to add a a parameter to the second video embed URL to _not_ start automatically. Something like httpv://www.youtube.com/watch?v=xyz123&autostart=off
66
- - Single videos work well from wordpress on the Iphone/ipod. Is there a way to make the playlists work, just getting the ? cube instead of image.
67
- - I would like to "inject" automatically this preview image url in a custom field, in each post, to auto-generate the thumb on my homepage with this image.
68
  */
69
 
70
 
@@ -86,7 +28,7 @@ class SmartYouTube_PRO {
86
  }
87
 
88
  function __construct() {
89
- $this->local_version = '1.0'; // TODO: Change this number???
90
 
91
  $this->plugin_url = trailingslashit(plugins_url(null,__FILE__));
92
 
@@ -116,8 +58,8 @@ class SmartYouTube_PRO {
116
  add_action( 'admin_head', array( $this, 'plugin_header' ) );
117
  if ( $this->options['ogimage'] == 'on' )
118
  add_action( 'wp_head', array( $this, 'post_header' ) );
119
- add_action( 'wp_print_scripts', array( $this, 'load_scripts' ) );
120
- add_action( 'wp_print_styles', array( $this, 'load_styles' ) );
121
  add_action( 'template_redirect', array( $this, 'mark_first_post_on_archive' ) );
122
 
123
  register_activation_hook(__FILE__, array($this, 'install' ) );
@@ -256,7 +198,7 @@ class SmartYouTube_PRO {
256
 
257
  $this->options['posts'] = ! isset( $_POST['disp_posts'] ) ? 'off' : 'on';
258
  $this->options['comments'] = ! isset( $_POST['disp_comments'] ) ? 'off' : 'on';
259
- $this->options['iframe'] = ! isset( $_POST['iframe'] ) ? 'off' : 'on';
260
  $this->options['www'] = ! isset( $_POST['www'] ) ? 'off' : 'on';
261
  $this->options['http'] = ! isset( $_POST['http'] ) ? 'off' : 'on';
262
 
@@ -303,7 +245,7 @@ class SmartYouTube_PRO {
303
  $disp_comments = $this->options['comments'] == 'on' ? 'checked="checked"' : '';
304
 
305
  $disp_privacy = $this->options['privacy'] ? 'checked="checked"' : '';
306
- $iframe = $this->options['iframe'] =='on' ? 'checked="checked"' : '';
307
  $www = $this->options['www'] =='on' ? 'checked="checked"' : '';
308
  $http = $this->options['http'] =='on' ? 'checked="checked"' : '';
309
  $disp_loop = $this->options['loop'] ? 'checked="checked"' : '';
@@ -348,11 +290,24 @@ class SmartYouTube_PRO {
348
  <a href="admin.php?page=syt_settings"><?php _e( 'Settings', 'smart-youtube' ); ?></a> &nbsp;|&nbsp; <a href="admin.php?page=syt_colorbox_options"><?php _e( 'Colorbox Options', 'smart-youtube' ); ?></a> &nbsp;|&nbsp; <a href="admin.php?page=syt_about"><?php _e( 'About', 'smart-youtube' ); ?></a>
349
  <div id="poststuff" style="margin-top:10px;">
350
  <div id="sideblock" style="float:right;width:270px;margin-left:10px;">
351
- <iframe width=270 height=800 frameborder="0" src="http://www.prelovac.com/plugin/news.php?id=0&utm_source=plugin&utm_medium=plugin&utm_campaign=Smart%2BYoutube"></iframe>
 
 
352
  </div>
353
  <div id="mainblock" style="width:710px">
354
  <div class="dbx-content">
355
- <h2 id="usageHeader"><?php _e( 'Usage <span style="font-size:small">[<a href="#">view instructions</a>]</span>', 'smart-youtube' ); ?></h2>
 
 
 
 
 
 
 
 
 
 
 
356
  <div id="usage" style="display:none">
357
  <p><?php _e( 'To use the video in your posts, paste YouTube video URL with <strong>httpv://</strong> (notice the \'v\').', 'smart-youtube' ); ?> </p>
358
  <p><?php _e( '<strong>Important:</strong> The URL should just be copied into your post normally and the letter \'v\' added, do not create a clickable link!', 'smart-youtube' ); ?></p>
@@ -376,8 +331,7 @@ class SmartYouTube_PRO {
376
  <input type="hidden" id="_wpnonce" name="_wpnonce" value="<?php echo $nonce; ?>" />
377
  <h2><?php _e( 'Options', 'smart-youtube' ); ?></h2>
378
  <p><?php _e( 'Smart Youtube is powerful and free WordPress plugin for embeding videos into your blog. ', 'smart-youtube' ); ?></p>
379
-
380
- <p><?php _e( 'From the same author: <a href="http://managewp.com" target="_blank">ManageWP.com</a> - Wordpress service that helps you manage all your WordPress sites from one location.', 'smart-youtube' ); ?></p>
381
  <p><?php _e( 'You can adjust the way your embeded youtube videos behave in the options below.', 'smart-youtube' ); ?></p>
382
  <h3><?php _e( 'Video settings', 'smart-youtube' ); ?></h3>
383
  <div>
@@ -389,10 +343,7 @@ class SmartYouTube_PRO {
389
  <label for="check4"><?php _e( 'Display videos in comments', 'smart-youtube' ); ?></label>
390
  </div>
391
  <br />
392
- <div>
393
- <input id="iframe" type="checkbox" name="iframe" <?php echo $iframe; ?> />
394
- <label for="iframe"><?php _e( 'Use IFRAME embed code', 'smart-youtube' ); ?></label> [<a target="_blank" href="http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html">?</a>]
395
- </div>
396
  <h3><?php _e( 'Video Appearence', 'smart-youtube' ); ?></h3>
397
  <p class="instruct">
398
  <?php _e( 'Video template. Default is just {video}.', 'smart-youtube' ); ?><br />
@@ -530,10 +481,7 @@ class SmartYouTube_PRO {
530
  <input id="tag" type="text" name="tag" value="<?php echo $tag; ?>" />
531
  <label for="tag"><?php _e( 'Custom code', 'smart-youtube' ); ?></label>
532
 
533
- <h3><?php _e( 'WiziApp support', 'smart-youtube' ); ?></h3>
534
- <p><?php _e( 'This will integrate your video seamlessly with WiziApp', 'smart-youtube' ); ?></p>
535
- <input id="wiziapp" type="checkbox" name="wiziapp" <?php echo $wiziapp; ?> />
536
- <label for="wiziapp"><?php _e( 'Enable WiziApp support', 'smart-youtube' ); ?></label>
537
  <h3><?php _e( 'xHTML validation', 'smart-youtube' ); ?></h3>
538
  <p class="instruct"><?php _e( 'Enabling the option below will change default YouTube code to be xHTML valid. (videos may not work for Iphone users)', 'smart-youtube' ); ?></p>
539
  <input id="valid" type="checkbox" name="valid" <?php echo $valid; ?> />
@@ -545,6 +493,10 @@ class SmartYouTube_PRO {
545
  <label for="check2"><?php _e( 'Display video link in RSS feed', 'smart-youtube' ); ?></label><br />
546
  <input id="check1" type="checkbox" name="disp_img" <?php echo $disp_img; ?> />
547
  <label for="check1"><?php _e( 'Display video preview image in RSS feed', 'smart-youtube' ); ?></label>
 
 
 
 
548
  <div class="submit"><input type="submit" name="Submit" value="<?php _e( 'Update options', 'smart-youtube' ); ?>" /></div>
549
  </form>
550
  </div>
@@ -578,12 +530,15 @@ class SmartYouTube_PRO {
578
  <a href="admin.php?page=syt_settings"><?php _e( 'Settings', 'smart-youtube' ); ?></a> &nbsp;|&nbsp; <a href="admin.php?page=syt_colorbox_options"><?php _e( 'Colorbox Options', 'smart-youtube' ); ?></a> &nbsp;|&nbsp; <a href="admin.php?page=syt_about"><?php _e( 'About', 'smart-youtube' ); ?></a>
579
  <div id="poststuff" style="margin-top:10px;">
580
  <div id="sideblock" style="float:right;width:270px;margin-left:10px;">
581
- <iframe width=270 height=800 frameborder="0" src="http://www.prelovac.com/plugin/news.php?id=2&utm_source=plugin&utm_medium=plugin&utm_campaign=SEO%2BFriendly%2BImages%2BPRO"></iframe>
 
 
582
  </div>
583
  </div>
584
  <div id="mainblock" class="submit">
585
  <div class="dbx-content">
586
  <h2><?php _e( 'Colorbox Options', 'smart-youtube' ); ?></h2>
 
587
  <br />
588
  <form name="sytform" action="<?php echo $actionurl; ?>" method="post">
589
  <input type="hidden" name="submitted" value="1" />
@@ -596,7 +551,7 @@ class SmartYouTube_PRO {
596
  </select>
597
  </div>
598
  <div>
599
- <label for="screenshot_image"><?php _e( 'Theme screenshot:', 'smart-youtube' ); ?></label>
600
  <div id="screenshot_image">
601
  <img src="<?php echo $this->plugin_url . '/screenshots/screenshot-' . $this->options['colorbox_theme'] . '.jpg'; ?>" />
602
  </div>
@@ -620,7 +575,7 @@ class SmartYouTube_PRO {
620
  $actionurl = stripslashes(htmlentities(strip_tags($_SERVER['REQUEST_URI'])));
621
  $nonce = wp_create_nonce( 'smart-youtube' );
622
 
623
- $lic_msg = '<p>Welcome to ' . __( 'Smart YouTube PRO', 'smart-youtube' ) . '.</p>';
624
  ?>
625
  <div class="wrap">
626
  <?php screen_icon(); ?>
@@ -629,7 +584,9 @@ class SmartYouTube_PRO {
629
  <div id="poststuff" style="margin-top:10px;">
630
 
631
  <div id="sideblock" style="float:right;width:270px;margin-left:10px;">
632
- <iframe width=270 height=800 frameborder="0" src="http://www.prelovac.com/plugin/news.php?id=2&utm_source=plugin&utm_medium=plugin&utm_campaign=SEO%2BFriendly%2BImages%2BPRO"></iframe>
 
 
633
  </div>
634
  </div>
635
  <div id="mainblock" class="submit">
@@ -1422,6 +1379,7 @@ EOT;
1422
  foreach ( $saved as $key => $option ) {
1423
  $options[$key] = $option;
1424
  }
 
1425
  }
1426
 
1427
  if ( $saved != $options ) {
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.3
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  */
11
 
12
 
28
  }
29
 
30
  function __construct() {
31
+ $this->local_version = '4.3';
32
 
33
  $this->plugin_url = trailingslashit(plugins_url(null,__FILE__));
34
 
58
  add_action( 'admin_head', array( $this, 'plugin_header' ) );
59
  if ( $this->options['ogimage'] == 'on' )
60
  add_action( 'wp_head', array( $this, 'post_header' ) );
61
+ add_action( 'wp_enqueue_scripts', array( $this, 'load_scripts' ) );
62
+ add_action( 'wp_enqueue_scripts', array( $this, 'load_styles' ) );
63
  add_action( 'template_redirect', array( $this, 'mark_first_post_on_archive' ) );
64
 
65
  register_activation_hook(__FILE__, array($this, 'install' ) );
198
 
199
  $this->options['posts'] = ! isset( $_POST['disp_posts'] ) ? 'off' : 'on';
200
  $this->options['comments'] = ! isset( $_POST['disp_comments'] ) ? 'off' : 'on';
201
+ $this->options['iframe'] = 'on';//! isset( $_POST['iframe'] ) ? 'off' : 'on';
202
  $this->options['www'] = ! isset( $_POST['www'] ) ? 'off' : 'on';
203
  $this->options['http'] = ! isset( $_POST['http'] ) ? 'off' : 'on';
204
 
245
  $disp_comments = $this->options['comments'] == 'on' ? 'checked="checked"' : '';
246
 
247
  $disp_privacy = $this->options['privacy'] ? 'checked="checked"' : '';
248
+ $iframe = 'on';//$this->options['iframe'] =='on' ? 'checked="checked"' : '';
249
  $www = $this->options['www'] =='on' ? 'checked="checked"' : '';
250
  $http = $this->options['http'] =='on' ? 'checked="checked"' : '';
251
  $disp_loop = $this->options['loop'] ? 'checked="checked"' : '';
290
  <a href="admin.php?page=syt_settings"><?php _e( 'Settings', 'smart-youtube' ); ?></a> &nbsp;|&nbsp; <a href="admin.php?page=syt_colorbox_options"><?php _e( 'Colorbox Options', 'smart-youtube' ); ?></a> &nbsp;|&nbsp; <a href="admin.php?page=syt_about"><?php _e( 'About', 'smart-youtube' ); ?></a>
291
  <div id="poststuff" style="margin-top:10px;">
292
  <div id="sideblock" style="float:right;width:270px;margin-left:10px;">
293
+ <div class="ad">
294
+ <a href="https://managewp.com/?utm_source=Plugins&amp;utm_medium=Banner&amp;utm_content=mwp250_2&amp;utm_campaign=SmartYoutube" title="ManageWP.com - Manage your sites from one dashboard"><img src="<?php echo plugins_url('/i/mwp250_2.png', __FILE__) ?>" alt="ManageWP.com - Manage Multiple WordPress Sites"></a>
295
+ </div>
296
  </div>
297
  <div id="mainblock" style="width:710px">
298
  <div class="dbx-content">
299
+ <h2 id="usageHeader"><?php _e( 'Usage <span>[<a href="#">View full instructions</a>]</span>', 'smart-youtube' ); ?></h2>
300
+
301
+ <h3>Basic Usage</h3>
302
+ <p>The plugin offers more features than built-in WordPress video embed feature.</p>
303
+ <p>In order for the plugin to work you must change the pasted URL to either <strong>httpv://</strong> or <strong>httpvh://</strong> (HD video)</p>
304
+
305
+ <p>For example: <br/>
306
+ httpv://www.youtube.com/watch?v=OWfksMD4PAg
307
+ </p>
308
+
309
+
310
+
311
  <div id="usage" style="display:none">
312
  <p><?php _e( 'To use the video in your posts, paste YouTube video URL with <strong>httpv://</strong> (notice the \'v\').', 'smart-youtube' ); ?> </p>
313
  <p><?php _e( '<strong>Important:</strong> The URL should just be copied into your post normally and the letter \'v\' added, do not create a clickable link!', 'smart-youtube' ); ?></p>
331
  <input type="hidden" id="_wpnonce" name="_wpnonce" value="<?php echo $nonce; ?>" />
332
  <h2><?php _e( 'Options', 'smart-youtube' ); ?></h2>
333
  <p><?php _e( 'Smart Youtube is powerful and free WordPress plugin for embeding videos into your blog. ', 'smart-youtube' ); ?></p>
334
+
 
335
  <p><?php _e( 'You can adjust the way your embeded youtube videos behave in the options below.', 'smart-youtube' ); ?></p>
336
  <h3><?php _e( 'Video settings', 'smart-youtube' ); ?></h3>
337
  <div>
343
  <label for="check4"><?php _e( 'Display videos in comments', 'smart-youtube' ); ?></label>
344
  </div>
345
  <br />
346
+
 
 
 
347
  <h3><?php _e( 'Video Appearence', 'smart-youtube' ); ?></h3>
348
  <p class="instruct">
349
  <?php _e( 'Video template. Default is just {video}.', 'smart-youtube' ); ?><br />
481
  <input id="tag" type="text" name="tag" value="<?php echo $tag; ?>" />
482
  <label for="tag"><?php _e( 'Custom code', 'smart-youtube' ); ?></label>
483
 
484
+
 
 
 
485
  <h3><?php _e( 'xHTML validation', 'smart-youtube' ); ?></h3>
486
  <p class="instruct"><?php _e( 'Enabling the option below will change default YouTube code to be xHTML valid. (videos may not work for Iphone users)', 'smart-youtube' ); ?></p>
487
  <input id="valid" type="checkbox" name="valid" <?php echo $valid; ?> />
493
  <label for="check2"><?php _e( 'Display video link in RSS feed', 'smart-youtube' ); ?></label><br />
494
  <input id="check1" type="checkbox" name="disp_img" <?php echo $disp_img; ?> />
495
  <label for="check1"><?php _e( 'Display video preview image in RSS feed', 'smart-youtube' ); ?></label>
496
+ <h3><?php _e( 'WiziApp support', 'smart-youtube' ); ?></h3>
497
+ <p><?php _e( 'This will integrate your video seamlessly with WiziApp', 'smart-youtube' ); ?></p>
498
+ <input id="wiziapp" type="checkbox" name="wiziapp" <?php echo $wiziapp; ?> />
499
+ <label for="wiziapp"><?php _e( 'Enable WiziApp support', 'smart-youtube' ); ?></label>
500
  <div class="submit"><input type="submit" name="Submit" value="<?php _e( 'Update options', 'smart-youtube' ); ?>" /></div>
501
  </form>
502
  </div>
530
  <a href="admin.php?page=syt_settings"><?php _e( 'Settings', 'smart-youtube' ); ?></a> &nbsp;|&nbsp; <a href="admin.php?page=syt_colorbox_options"><?php _e( 'Colorbox Options', 'smart-youtube' ); ?></a> &nbsp;|&nbsp; <a href="admin.php?page=syt_about"><?php _e( 'About', 'smart-youtube' ); ?></a>
531
  <div id="poststuff" style="margin-top:10px;">
532
  <div id="sideblock" style="float:right;width:270px;margin-left:10px;">
533
+ <div class="ad">
534
+ <a href="https://managewp.com/?utm_source=Plugins&amp;utm_medium=Banner&amp;utm_content=mwp250_2&amp;utm_campaign=SmartYoutube" title="ManageWP.com - Manage your sites from one dashboard"><img src="<?php echo plugins_url('/i/mwp250_2.png',__FILE__) ?>" alt="ManageWP.com - Manage Multiple WordPress Sites"></a>
535
+ </div>
536
  </div>
537
  </div>
538
  <div id="mainblock" class="submit">
539
  <div class="dbx-content">
540
  <h2><?php _e( 'Colorbox Options', 'smart-youtube' ); ?></h2>
541
+ <p>If you enable Show video in Colorbox on the settings screen, your videos can be displayed in a beautiful ColorBox overlay. Choose a theme here.</p>
542
  <br />
543
  <form name="sytform" action="<?php echo $actionurl; ?>" method="post">
544
  <input type="hidden" name="submitted" value="1" />
551
  </select>
552
  </div>
553
  <div>
554
+ <label for="screenshot_image"><?php _e( 'Theme preview', 'smart-youtube' ); ?></label>
555
  <div id="screenshot_image">
556
  <img src="<?php echo $this->plugin_url . '/screenshots/screenshot-' . $this->options['colorbox_theme'] . '.jpg'; ?>" />
557
  </div>
575
  $actionurl = stripslashes(htmlentities(strip_tags($_SERVER['REQUEST_URI'])));
576
  $nonce = wp_create_nonce( 'smart-youtube' );
577
 
578
+ $lic_msg = '<p>Welcome to ' . __( 'Smart YouTube PRO', 'smart-youtube' ) . '.</p><p>Thank you for using my plugin, if you find it useful please <a href="https://wordpress.org/plugins/smart-youtube/">rate it</a>.</p>';
579
  ?>
580
  <div class="wrap">
581
  <?php screen_icon(); ?>
584
  <div id="poststuff" style="margin-top:10px;">
585
 
586
  <div id="sideblock" style="float:right;width:270px;margin-left:10px;">
587
+ <div class="ad">
588
+ <a href="https://managewp.com/?utm_source=Plugins&amp;utm_medium=Banner&amp;utm_content=mwp250_2&amp;utm_campaign=SmartYoutube" title="ManageWP.com - Manage your sites from one dashboard"><img src="<?php echo plugins_url('/i/mwp250_2.png',__FILE__) ?>" alt="ManageWP.com - Manage Multiple WordPress Sites"></a>
589
+ </div>
590
  </div>
591
  </div>
592
  <div id="mainblock" class="submit">
1379
  foreach ( $saved as $key => $option ) {
1380
  $options[$key] = $option;
1381
  }
1382
+ $options['iframe']='on';
1383
  }
1384
 
1385
  if ( $saved != $options ) {