iframe - Version 2.1

Version Description

  • added (frameborder="0") by default;
Download this release

Release Info

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

Code changes from version 2.0 to 2.1

Files changed (2) hide show
  1. iframe.php +4 -3
  2. readme.txt +7 -4
iframe.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: iframe
4
  Plugin URI: http://web-profile.com.ua/wordpress/plugins/iframe/
5
  Description: Plugin shows iframe with [iframe src="http://player.vimeo.com/video/3261363" width="100%" height="480"] shortcode.
6
- Version: 2.0
7
  Author: webvitaly
8
  Author Email: webvitaly(at)gmail.com
9
  Author URI: http://web-profile.com.ua/wordpress/
@@ -21,7 +21,8 @@ if ( !function_exists( 'iframe_embed_shortcode' ) ) :
21
  'width' => '100%',
22
  'height' => '480',
23
  'scrolling' => 'no',
24
- 'class' => 'iframe-class'
 
25
  );
26
  // add defaults
27
  foreach ($defaults as $default => $value) {
@@ -66,7 +67,7 @@ if ( !function_exists( 'iframe_embed_shortcode' ) ) :
66
  ';
67
  }
68
  }
69
- $html .= "\n".'<!-- powered by Iframe plugin ver.2.0 (wordpress.org/extend/plugins/iframe/) -->'."\n";
70
  $html .= '<iframe';
71
  foreach ($atts as $attr => $value) {
72
  if( $attr != 'same_height_as' ){ // remove some attributes
3
  Plugin Name: iframe
4
  Plugin URI: http://web-profile.com.ua/wordpress/plugins/iframe/
5
  Description: Plugin shows iframe with [iframe src="http://player.vimeo.com/video/3261363" width="100%" height="480"] shortcode.
6
+ Version: 2.1
7
  Author: webvitaly
8
  Author Email: webvitaly(at)gmail.com
9
  Author URI: http://web-profile.com.ua/wordpress/
21
  'width' => '100%',
22
  'height' => '480',
23
  'scrolling' => 'no',
24
+ 'class' => 'iframe-class',
25
+ 'frameborder' => '0'
26
  );
27
  // add defaults
28
  foreach ($defaults as $default => $value) {
67
  ';
68
  }
69
  }
70
+ $html .= "\n".'<!-- Iframe plugin v.2.1 (wordpress.org/extend/plugins/iframe/) -->'."\n";
71
  $html .= '<iframe';
72
  foreach ($atts as $attr => $value) {
73
  if( $attr != 'same_height_as' ){ // remove some attributes
readme.txt CHANGED
@@ -4,8 +4,8 @@ Plugin URI: http://web-profile.com.ua/wordpress/plugins/iframe/
4
  Tags: iframe, embed, youtube, vimeo, google-map, google-maps
5
  Author URI: http://web-profile.com.ua/wordpress/
6
  Requires at least: 3.0
7
- Tested up to: 3.3
8
- Stable tag: 2.0
9
 
10
  You can embed iframe with [iframe src="http://vimeo.com/123" width="100%" height="480"] shortcode.
11
 
@@ -20,7 +20,7 @@ So you can embed iframe code using this shortcode `[iframe src="http://player.vi
20
  * **width** - width in pixels or in percents `[iframe width="100%" src="http://player.vimeo.com/video/3261363"]` or `[iframe width="640" src="http://player.vimeo.com/video/3261363"]` (by default width="100%");
21
  * **height** - height in pixels `[iframe height="480" src="http://player.vimeo.com/video/3261363"]` (by default height="480");
22
  * **scrolling** - parameter `[iframe scrolling="yes"]` (by default scrolling="no");
23
- * **frameborder** - parameter `[iframe frameborder="0"]` (removed by default);
24
  * **marginheight** - parameter `[iframe marginheight="0"]` (removed by default);
25
  * **marginwidth** - parameter `[iframe marginwidth="0"]` (removed by default);
26
  * **allowtransparency** - allows to set transparency of the iframe `[iframe allowtransparency="true"]` (removed by default);
@@ -37,6 +37,9 @@ So you can embed iframe code using this shortcode `[iframe src="http://player.vi
37
 
38
  == Changelog ==
39
 
 
 
 
40
  = 2.0 =
41
  * plugin core rebuild (thanks to Gregg Tavares);
42
  * remove not setted params except the defaults;
@@ -73,5 +76,5 @@ So you can embed iframe code using this shortcode `[iframe src="http://player.vi
73
 
74
  == Installation ==
75
 
76
- 1. Install plugin and activate it on the Plugins page;
77
  2. Add shortcode `[iframe src="http://player.vimeo.com/video/3261363" width="100%" height="480"]` to page content;
4
  Tags: iframe, embed, youtube, vimeo, google-map, google-maps
5
  Author URI: http://web-profile.com.ua/wordpress/
6
  Requires at least: 3.0
7
+ Tested up to: 3.3.1
8
+ Stable tag: 2.1
9
 
10
  You can embed iframe with [iframe src="http://vimeo.com/123" width="100%" height="480"] shortcode.
11
 
20
  * **width** - width in pixels or in percents `[iframe width="100%" src="http://player.vimeo.com/video/3261363"]` or `[iframe width="640" src="http://player.vimeo.com/video/3261363"]` (by default width="100%");
21
  * **height** - height in pixels `[iframe height="480" src="http://player.vimeo.com/video/3261363"]` (by default height="480");
22
  * **scrolling** - parameter `[iframe scrolling="yes"]` (by default scrolling="no");
23
+ * **frameborder** - parameter `[iframe frameborder="0"]` (by default frameborder="0");
24
  * **marginheight** - parameter `[iframe marginheight="0"]` (removed by default);
25
  * **marginwidth** - parameter `[iframe marginwidth="0"]` (removed by default);
26
  * **allowtransparency** - allows to set transparency of the iframe `[iframe allowtransparency="true"]` (removed by default);
37
 
38
  == Changelog ==
39
 
40
+ = 2.1 =
41
+ * added (frameborder="0") by default;
42
+
43
  = 2.0 =
44
  * plugin core rebuild (thanks to Gregg Tavares);
45
  * remove not setted params except the defaults;
76
 
77
  == Installation ==
78
 
79
+ 1. Install and activate the plugin on the Plugins page;
80
  2. Add shortcode `[iframe src="http://player.vimeo.com/video/3261363" width="100%" height="480"]` to page content;