PluginProbe
iframe / 1.0.0
iframe v1.0.0
trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7 1.8 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 4.0 4.1 4.2 4.3 All 35 releases
iframe / iframe.php

iframe.php in iframe 1.0.0, at iframe.php

30 lines 966 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
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.0.0
8 Author: webvitaly
9 Author Email: webvitaly(at)gmail.com
10 Author URI: http://web-profile.com.ua/
11 */
12
13
14 if ( !function_exists( 'iframe_embed_sortcode' ) ) {
15 function iframe_embed_sortcode($atts, $content = null) {
16 extract(shortcode_atts(array(
17 'width' => '640',
18 'height' => '480',
19 'src' => '',
20 'frameborder' => '0',
21 'scrolling' => 'no',
22 'marginheight' => '0',
23 'marginwidth' => '0'
24 ), $atts));
25 return '<iframe width="'.$width.'" height="'.$height.'" frameborder="'.$frameborder.'" scrolling="'.$scrolling.'" marginheight="'.$marginheight.'" marginwidth="'.$marginwidth.'" src="'.$src.'" ></iframe>';
26 // &amp;output=embed
27 }
28 add_shortcode('iframe', 'iframe_embed_sortcode');
29 }
30