Version Description
- Made og:image tag optional
Download this release
Release Info
| Developer | freediver |
| Plugin | |
| Version | 4.2.4 |
| Comparing to | |
| See all releases | |
Code changes from version 4.2.3 to 4.2.4
- readme.txt +5 -1
- smartyoutube.php +7 -2
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.
|
| 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.
|
|
@@ -49,6 +49,10 @@ For updates, you can check out [my blog](http://www.prelovac.com/vladimir/) or f
|
|
| 49 |
|
| 50 |
== Changelog ==
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
= 4.2.3 =
|
| 53 |
* Fixed Facebook sharing compatibility (correct image displayed)
|
| 54 |
|
| 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.9.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, comments and in your RSS feed. The plugin is designed to be small and fast and not use any external resources.
|
| 49 |
|
| 50 |
== Changelog ==
|
| 51 |
|
| 52 |
+
= 4.2.4 =
|
| 53 |
+
* Made og:image tag optional
|
| 54 |
+
|
| 55 |
+
|
| 56 |
= 4.2.3 =
|
| 57 |
* Fixed Facebook sharing compatibility (correct image displayed)
|
| 58 |
|
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.2.
|
| 8 |
Author URI: http://www.prelovac.com/vladimir/
|
| 9 |
|
| 10 |
|
|
@@ -115,7 +115,8 @@ class SmartYouTube_PRO {
|
|
| 115 |
add_action( 'plugins_loaded', array( $this, 'install' ) );
|
| 116 |
add_action( 'admin_menu', array( $this, 'add_menu_items' ) );
|
| 117 |
add_action( 'admin_head', array( $this, 'plugin_header' ) );
|
| 118 |
-
|
|
|
|
| 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' ) );
|
|
@@ -266,6 +267,7 @@ class SmartYouTube_PRO {
|
|
| 266 |
$this->options['excerpt'] = ! isset( $_POST['excerpt'] ) ? '' : $_POST['excerpt'];
|
| 267 |
$this->options['excerpt_align'] = ! isset( $_POST['excerpt_align'] ) ? '' : $_POST['excerpt_align'];
|
| 268 |
$this->options['logoless'] = ! isset( $_POST['logoless'] ) ? 'off' : 'on';
|
|
|
|
| 269 |
$this->options['theme'] = ! isset( $_POST['theme'] ) ? '' : $_POST['theme'];
|
| 270 |
|
| 271 |
update_option( $this->key, $this->options );
|
|
@@ -312,6 +314,7 @@ class SmartYouTube_PRO {
|
|
| 312 |
$tag = $this->options['tag'];
|
| 313 |
$wiziapp = $this->options['wiziapp'] == 'on' ? 'checked="checked"' : '';
|
| 314 |
$logoless = $this->options['logoless'] == 'on' ? 'checked="checked"' : '';
|
|
|
|
| 315 |
$theme = isset( $this->options['theme'] ) ? $this->options['theme'] : '';
|
| 316 |
|
| 317 |
if ( ! $disp_width ) {
|
|
@@ -495,6 +498,7 @@ class SmartYouTube_PRO {
|
|
| 495 |
<input type="checkbox" id="disp_info" name="disp_info" <?php echo $disp_info; ?> /><label for="disp_info"><?php _e( 'Remove Titles & Ratings', 'smart-youtube' ); ?></label><br />
|
| 496 |
<input type="checkbox" id="disp_ann" name="disp_ann" <?php echo $disp_ann; ?> /><label for="disp_ann"><?php _e( 'Remove Annotations', 'smart-youtube' ); ?></label><br />
|
| 497 |
<input type="checkbox" id="logoless" name="logoless" <?php echo $logoless; ?> /><label for="logoless"><?php _e( 'Hide YouTube Logo', 'smart-youtube' ); ?></label><br />
|
|
|
|
| 498 |
<label for="theme"><?php _e( 'Theme (YouTube only):', 'smart-youtube' ); ?></label>
|
| 499 |
<select id="theme" name="theme" />
|
| 500 |
<option value="dark" <?php echo ( ( $theme == 'dark' ) ? 'selected="yes"' : '' ); ?>><?php _e( 'Dark', 'smart-youtube' ); ?></option>
|
|
@@ -1407,6 +1411,7 @@ EOT;
|
|
| 1407 |
'excerpt' => 'not',
|
| 1408 |
'logoless' => 'on',
|
| 1409 |
'wiziapp' => 'off',
|
|
|
|
| 1410 |
'theme' => 'dark'
|
| 1411 |
);
|
| 1412 |
$saved = get_option( $this->key );
|
| 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.4
|
| 8 |
Author URI: http://www.prelovac.com/vladimir/
|
| 9 |
|
| 10 |
|
| 115 |
add_action( 'plugins_loaded', array( $this, 'install' ) );
|
| 116 |
add_action( 'admin_menu', array( $this, 'add_menu_items' ) );
|
| 117 |
add_action( 'admin_head', array( $this, 'plugin_header' ) );
|
| 118 |
+
if ( $this->options['ogimage'] == 'on' )
|
| 119 |
+
add_action( 'wp_head', array( $this, 'post_header' ) );
|
| 120 |
add_action( 'wp_print_scripts', array( $this, 'load_scripts' ) );
|
| 121 |
add_action( 'wp_print_styles', array( $this, 'load_styles' ) );
|
| 122 |
add_action( 'template_redirect', array( $this, 'mark_first_post_on_archive' ) );
|
| 267 |
$this->options['excerpt'] = ! isset( $_POST['excerpt'] ) ? '' : $_POST['excerpt'];
|
| 268 |
$this->options['excerpt_align'] = ! isset( $_POST['excerpt_align'] ) ? '' : $_POST['excerpt_align'];
|
| 269 |
$this->options['logoless'] = ! isset( $_POST['logoless'] ) ? 'off' : 'on';
|
| 270 |
+
$this->options['ogimage'] = ! isset( $_POST['ogimage'] ) ? 'off' : 'on';
|
| 271 |
$this->options['theme'] = ! isset( $_POST['theme'] ) ? '' : $_POST['theme'];
|
| 272 |
|
| 273 |
update_option( $this->key, $this->options );
|
| 314 |
$tag = $this->options['tag'];
|
| 315 |
$wiziapp = $this->options['wiziapp'] == 'on' ? 'checked="checked"' : '';
|
| 316 |
$logoless = $this->options['logoless'] == 'on' ? 'checked="checked"' : '';
|
| 317 |
+
$ogimage = $this->options['ogimage'] == 'on' ? 'checked="ogimage"' : '';
|
| 318 |
$theme = isset( $this->options['theme'] ) ? $this->options['theme'] : '';
|
| 319 |
|
| 320 |
if ( ! $disp_width ) {
|
| 498 |
<input type="checkbox" id="disp_info" name="disp_info" <?php echo $disp_info; ?> /><label for="disp_info"><?php _e( 'Remove Titles & Ratings', 'smart-youtube' ); ?></label><br />
|
| 499 |
<input type="checkbox" id="disp_ann" name="disp_ann" <?php echo $disp_ann; ?> /><label for="disp_ann"><?php _e( 'Remove Annotations', 'smart-youtube' ); ?></label><br />
|
| 500 |
<input type="checkbox" id="logoless" name="logoless" <?php echo $logoless; ?> /><label for="logoless"><?php _e( 'Hide YouTube Logo', 'smart-youtube' ); ?></label><br />
|
| 501 |
+
<input type="checkbox" id="ogimage" name="ogimage" <?php echo $ogimage; ?> /><label for="ogimage"><?php _e( 'Output og:image tag with the Youtube image', 'smart-youtube' ); ?></label><br />
|
| 502 |
<label for="theme"><?php _e( 'Theme (YouTube only):', 'smart-youtube' ); ?></label>
|
| 503 |
<select id="theme" name="theme" />
|
| 504 |
<option value="dark" <?php echo ( ( $theme == 'dark' ) ? 'selected="yes"' : '' ); ?>><?php _e( 'Dark', 'smart-youtube' ); ?></option>
|
| 1411 |
'excerpt' => 'not',
|
| 1412 |
'logoless' => 'on',
|
| 1413 |
'wiziapp' => 'off',
|
| 1414 |
+
'ogimage' => 'off',
|
| 1415 |
'theme' => 'dark'
|
| 1416 |
);
|
| 1417 |
$saved = get_option( $this->key );
|
