iframe - Version 4.3

Version Description

  • 2016-03-24 =
  • minor refactoring.
Download this release

Release Info

Developer webvitaly
Plugin Icon wp plugin iframe
Version 4.3
Comparing to
See all releases

Code changes from version 4.2 to 4.3

Files changed (2) hide show
  1. iframe.php +12 -10
  2. readme.txt +10 -7
iframe.php CHANGED
@@ -3,14 +3,15 @@
3
  Plugin Name: iframe
4
  Plugin URI: http://wordpress.org/plugins/iframe/
5
  Description: [iframe src="http://www.youtube.com/embed/4qsGTXLnmKs" width="100%" height="500"] shortcode
6
- Version: 4.2
7
  Author: webvitaly
8
- Author URI: http://web-profile.com.ua/wordpress/plugins/
9
  License: GPLv3
10
  */
11
 
 
12
 
13
- function iframe_unqprfx_embed_shortcode( $atts ) {
14
  $defaults = array(
15
  'src' => 'http://www.youtube.com/embed/4qsGTXLnmKs',
16
  'width' => '100%',
@@ -26,7 +27,7 @@ function iframe_unqprfx_embed_shortcode( $atts ) {
26
  }
27
  }
28
 
29
- $html = "\n".'<!-- iframe plugin v.4.2 wordpress.org/plugins/iframe/ -->'."\n";
30
  $html .= '<iframe';
31
  foreach( $atts as $attr => $value ) {
32
  if ( strtolower($attr) != 'same_height_as' AND strtolower($attr) != 'onload'
@@ -55,18 +56,19 @@ function iframe_unqprfx_embed_shortcode( $atts ) {
55
 
56
  return $html;
57
  }
58
- add_shortcode( 'iframe', 'iframe_unqprfx_embed_shortcode' );
59
 
60
 
61
- function iframe_unqprfx_plugin_meta( $links, $file ) { // add links to plugin meta row
62
  if ( $file == plugin_basename( __FILE__ ) ) {
63
  $row_meta = array(
64
- 'support' => '<a href="http://web-profile.com.ua/wordpress/plugins/iframe/" target="_blank"><span class="dashicons dashicons-editor-help"></span> ' . __( 'Iframe', 'iframe' ) . '</a>',
65
- 'donate' => '<a href="http://web-profile.com.ua/donate/" target="_blank"><span class="dashicons dashicons-heart"></span> ' . __( 'Donate', 'iframe' ) . '</a>',
66
- 'pro' => '<a href="http://codecanyon.net/item/advanced-iframe-pro/5344999?ref=webvitalii" target="_blank"><span class="dashicons dashicons-star-filled"></span> ' . __( 'Advanced iFrame Pro', 'iframe' ) . '</a>'
 
67
  );
68
  $links = array_merge( $links, $row_meta );
69
  }
70
  return (array) $links;
71
  }
72
- add_filter( 'plugin_row_meta', 'iframe_unqprfx_plugin_meta', 10, 2 );
3
  Plugin Name: iframe
4
  Plugin URI: http://wordpress.org/plugins/iframe/
5
  Description: [iframe src="http://www.youtube.com/embed/4qsGTXLnmKs" width="100%" height="500"] shortcode
6
+ Version: 4.3
7
  Author: webvitaly
8
+ Author URI: http://web-profile.net/wordpress/plugins/
9
  License: GPLv3
10
  */
11
 
12
+ define('IFRAME_PLUGIN_VERSION', '4.3');
13
 
14
+ function iframe_plugin_add_shortcode_cb( $atts ) {
15
  $defaults = array(
16
  'src' => 'http://www.youtube.com/embed/4qsGTXLnmKs',
17
  'width' => '100%',
27
  }
28
  }
29
 
30
+ $html = "\n".'<!-- iframe plugin v.'.IFRAME_PLUGIN_VERSION.' wordpress.org/plugins/iframe/ -->'."\n";
31
  $html .= '<iframe';
32
  foreach( $atts as $attr => $value ) {
33
  if ( strtolower($attr) != 'same_height_as' AND strtolower($attr) != 'onload'
56
 
57
  return $html;
58
  }
59
+ add_shortcode( 'iframe', 'iframe_plugin_add_shortcode_cb' );
60
 
61
 
62
+ function iframe_plugin_row_meta_cb( $links, $file ) {
63
  if ( $file == plugin_basename( __FILE__ ) ) {
64
  $row_meta = array(
65
+ 'support' => '<a href="http://web-profile.net/wordpress/plugins/iframe/" target="_blank"><span class="dashicons dashicons-editor-help"></span> ' . __( 'Iframe', 'iframe' ) . '</a>',
66
+ 'donate' => '<a href="http://web-profile.net/donate/" target="_blank"><span class="dashicons dashicons-heart"></span> ' . __( 'Donate', 'iframe' ) . '</a>',
67
+ 'iframe_pro' => '<a href="http://codecanyon.net/item/advanced-iframe-pro/5344999?ref=webvitalii" target="_blank"><span class="dashicons dashicons-star-filled"></span> ' . __( 'Advanced iFrame Pro', 'iframe' ) . '</a>',
68
+ 'pro' => '<a href="http://codecanyon.net/item/silver-bullet-pro/15171769?ref=webvitalii" target="_blank" title="Speedup and protect WordPress in a smart way"><span class="dashicons dashicons-star-filled"></span> ' . __( 'Silver Bullet Pro', 'iframe' ) . '</a>'
69
  );
70
  $links = array_merge( $links, $row_meta );
71
  }
72
  return (array) $links;
73
  }
74
+ add_filter( 'plugin_row_meta', 'iframe_plugin_row_meta_cb', 10, 2 );
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === iframe ===
2
  Contributors: webvitaly
3
- Donate link: http://web-profile.com.ua/donate/
4
  Tags: iframe, embed, youtube, vimeo, google-map, google-maps
5
  Requires at least: 3.0
6
- Tested up to: 4.7
7
- Stable tag: 4.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
@@ -12,10 +12,10 @@ License URI: http://www.gnu.org/licenses/gpl.html
12
 
13
  == Description ==
14
 
 
15
  > **[Advanced iFrame Pro](http://codecanyon.net/item/advanced-iframe-pro/5344999?ref=webvitalii "Advanced iFrame Pro")** |
16
- > **[iframe](http://web-profile.com.ua/wordpress/plugins/iframe/ "Plugin page")** |
17
- > **[All iframe params](http://wordpress.org/plugins/iframe/other_notes/)** |
18
- > **[Donate](http://web-profile.com.ua/donate/ "Support the development")** |
19
  > **[GitHub](https://github.com/webvitalii/iframe "Fork")**
20
 
21
  [iframe src="http://www.youtube.com/embed/4qsGTXLnmKs" width="100%" height="500"] shortcode
@@ -25,7 +25,7 @@ should show something like this:
25
 
26
 
27
  WordPress removes iframe html tags because of security reasons.
28
- Iframe shortcode is the replacement of the iframe html tag and accepts the same [params as iframe](http://wordpress.org/plugins/iframe/other_notes/) html tag does.
29
  You may use iframe shortcode to embed content from YouTube, Vimeo, Google Maps or from any external page.
30
 
31
  If you need to embed content from YouTube, Vimeo, SlideShare, SoundCloud, Twitter via direct link, you may use `[embed]http://www.youtube.com/watch?v=4qsGTXLnmKs[/embed]` shortcode.
@@ -60,6 +60,9 @@ If you need to embed content from YouTube, Vimeo, SlideShare, SoundCloud, Twitte
60
 
61
  == Changelog ==
62
 
 
 
 
63
  = 4.2 - 2015-08-16 =
64
  * minor bugfixing.
65
 
1
  === iframe ===
2
  Contributors: webvitaly
3
+ Donate link: http://web-profile.net/donate/
4
  Tags: iframe, embed, youtube, vimeo, google-map, google-maps
5
  Requires at least: 3.0
6
+ Tested up to: 5.0
7
+ Stable tag: 4.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
12
 
13
  == Description ==
14
 
15
+ > **[Speedup WordPress](http://codecanyon.net/item/silver-bullet-pro/15171769?ref=webvitalii "Speedup and protect WordPress in a smart way")** |
16
  > **[Advanced iFrame Pro](http://codecanyon.net/item/advanced-iframe-pro/5344999?ref=webvitalii "Advanced iFrame Pro")** |
17
+ > **[iframe](http://web-profile.net/wordpress/plugins/iframe/ "Plugin page")** |
18
+ > **[Donate](http://web-profile.net/donate/ "Support the development")** |
 
19
  > **[GitHub](https://github.com/webvitalii/iframe "Fork")**
20
 
21
  [iframe src="http://www.youtube.com/embed/4qsGTXLnmKs" width="100%" height="500"] shortcode
25
 
26
 
27
  WordPress removes iframe html tags because of security reasons.
28
+ Iframe shortcode is the replacement of the iframe html tag and accepts the same **[params as iframe html tag](http://wordpress.org/plugins/iframe/other_notes/)** does.
29
  You may use iframe shortcode to embed content from YouTube, Vimeo, Google Maps or from any external page.
30
 
31
  If you need to embed content from YouTube, Vimeo, SlideShare, SoundCloud, Twitter via direct link, you may use `[embed]http://www.youtube.com/watch?v=4qsGTXLnmKs[/embed]` shortcode.
60
 
61
  == Changelog ==
62
 
63
+ = 4.3 - 2016-03-24 =
64
+ * minor refactoring.
65
+
66
  = 4.2 - 2015-08-16 =
67
  * minor bugfixing.
68