# iframe/1.1.0/iframe.php

iframe, version 1.1.0. 31 lines.

- Page: https://pluginprobe.com/plugins/iframe/1.1.0/code/iframe.php
- Raw: https://pluginprobe.com/plugins/iframe/1.1.0/raw/iframe.php
- Modified: 2011-05-07T18:35:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/iframe/1.1.0/code/iframe.php#L10-L20`.

```php
<?php

/*
Plugin Name: Iframe
Plugin URI: http://web-profile.com.ua/wordpress/plugins/iframe/
Description: Plugin shows iframe with [iframe width="640" height="480" src="http://player.vimeo.com/video/3261363"] shortcode.
Version: 1.1.0
Author: webvitaly
Author Email: webvitaly(at)gmail.com
Author URI: http://web-profile.com.ua/
*/


if ( !function_exists( 'iframe_embed_shortcode' ) ) {
	function iframe_embed_shortcode($atts, $content = null) {
		extract(shortcode_atts(array(
			'width' => '640',
			'height' => '480',
			'src' => '',
			'frameborder' => '0',
			'scrolling' => 'no',
			'marginheight' => '0',
			'marginwidth' => '0',
			'allowtransparency' => 'true'
		), $atts));
		return '<iframe width="'.$width.'" height="'.$height.'" frameborder="'.$frameborder.'" scrolling="'.$scrolling.'" marginheight="'.$marginheight.'" marginwidth="'.$marginwidth.'" allowtransparency="'.$allowtransparency.'" src="'.$src.'"></iframe>';
		// &amp;output=embed
	}
	add_shortcode('iframe', 'iframe_embed_shortcode');
}

```
