iframe - Version 1.3.0

Version Description

  • Adding "id" and "class" parameters;
Download this release

Release Info

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

Code changes from version 1.2.0 to 1.3.0

Files changed (2) hide show
  1. iframe.php +5 -3
  2. readme.txt +6 -1
iframe.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Iframe
5
  Plugin URI: http://web-profile.com.ua/wordpress/plugins/iframe/
6
  Description: Plugin shows iframe with [iframe width="640" height="480" src="http://player.vimeo.com/video/3261363"] shortcode.
7
- Version: 1.2.0
8
  Author: webvitaly
9
  Author Email: webvitaly(at)gmail.com
10
  Author URI: http://web-profile.com.ua/
@@ -20,7 +20,9 @@ if ( !function_exists( 'iframe_embed_shortcode' ) ) {
20
  'scrolling' => 'no',
21
  'marginheight' => '0',
22
  'marginwidth' => '0',
23
- 'allowtransparency' => 'true'
 
 
24
  ), $atts));
25
  $src_cut = substr($src, 0, 35);
26
  if(strpos($src_cut, 'maps.google' )){
@@ -28,7 +30,7 @@ if ( !function_exists( 'iframe_embed_shortcode' ) ) {
28
  }else{
29
  $google_map_fix = '';
30
  }
31
- return '<iframe width="'.$width.'" height="'.$height.'" frameborder="'.$frameborder.'" scrolling="'.$scrolling.'" marginheight="'.$marginheight.'" marginwidth="'.$marginwidth.'" allowtransparency="'.$allowtransparency.'" src="'.$src.$google_map_fix.'"></iframe>';
32
  // &amp;output=embed
33
  }
34
  add_shortcode('iframe', 'iframe_embed_shortcode');
4
  Plugin Name: Iframe
5
  Plugin URI: http://web-profile.com.ua/wordpress/plugins/iframe/
6
  Description: Plugin shows iframe with [iframe width="640" height="480" src="http://player.vimeo.com/video/3261363"] shortcode.
7
+ Version: 1.3.0
8
  Author: webvitaly
9
  Author Email: webvitaly(at)gmail.com
10
  Author URI: http://web-profile.com.ua/
20
  'scrolling' => 'no',
21
  'marginheight' => '0',
22
  'marginwidth' => '0',
23
+ 'allowtransparency' => 'true',
24
+ 'id' => 'iframe-id',
25
+ 'class' => 'iframe-class'
26
  ), $atts));
27
  $src_cut = substr($src, 0, 35);
28
  if(strpos($src_cut, 'maps.google' )){
30
  }else{
31
  $google_map_fix = '';
32
  }
33
+ return '<iframe id="'.$id.'" class="'.$class.'" width="'.$width.'" height="'.$height.'" frameborder="'.$frameborder.'" scrolling="'.$scrolling.'" marginheight="'.$marginheight.'" marginwidth="'.$marginwidth.'" allowtransparency="'.$allowtransparency.'" src="'.$src.$google_map_fix.'"></iframe>';
34
  // &amp;output=embed
35
  }
36
  add_shortcode('iframe', 'iframe_embed_shortcode');
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: iframe, embed
5
  Author URI: http://web-profile.com.ua/wordpress/
6
  Requires at least: 3.0
7
  Tested up to: 3.2
8
- Stable tag: 1.2.0
9
 
10
  You can embed iframe with [iframe width="640" height="480" src="http://vimeo.com/123"] shortcode.
11
 
@@ -24,6 +24,8 @@ So you can embed iframe code using this shortcode `[iframe width="640" height="4
24
  * marginheight - marginheight parameter of the iframe `[iframe marginheight="0" src="http://player.vimeo.com/video/3261363"]` (by default marginheight="0");
25
  * marginwidth - marginwidth parameter of the iframe `[iframe marginwidth="0" src="http://player.vimeo.com/video/3261363"]` (by default marginwidth="0");
26
  * allowtransparency - allowing transparency of the iframe `[iframe allowtransparency="true" src="http://player.vimeo.com/video/3261363"]` (by default allowtransparency="true");
 
 
27
 
28
  [Iframe plugin page](http://web-profile.com.ua/wordpress/plugins/iframe/)
29
 
@@ -31,6 +33,9 @@ So you can embed iframe code using this shortcode `[iframe width="640" height="4
31
 
32
  == Changelog ==
33
 
 
 
 
34
  = 1.2.0 =
35
  * Adding "output=embed" to Google Map;
36
 
5
  Author URI: http://web-profile.com.ua/wordpress/
6
  Requires at least: 3.0
7
  Tested up to: 3.2
8
+ Stable tag: 1.3.0
9
 
10
  You can embed iframe with [iframe width="640" height="480" src="http://vimeo.com/123"] shortcode.
11
 
24
  * marginheight - marginheight parameter of the iframe `[iframe marginheight="0" src="http://player.vimeo.com/video/3261363"]` (by default marginheight="0");
25
  * marginwidth - marginwidth parameter of the iframe `[iframe marginwidth="0" src="http://player.vimeo.com/video/3261363"]` (by default marginwidth="0");
26
  * allowtransparency - allowing transparency of the iframe `[iframe allowtransparency="true" src="http://player.vimeo.com/video/3261363"]` (by default allowtransparency="true");
27
+ * id - allowing to add the id of the iframe `[iframe id="my-id" src="http://player.vimeo.com/video/3261363"]` (by default id="iframe-id");
28
+ * class - allowing to add the class of the iframe `[iframe class="my-class" src="http://player.vimeo.com/video/3261363"]` (by default class="iframe-class");
29
 
30
  [Iframe plugin page](http://web-profile.com.ua/wordpress/plugins/iframe/)
31
 
33
 
34
  == Changelog ==
35
 
36
+ = 1.3.0 =
37
+ * Adding "id" and "class" parameters;
38
+
39
  = 1.2.0 =
40
  * Adding "output=embed" to Google Map;
41