Description
Implements the [bw_iframe] shortcode
Usage
$string = bw_iframe( $atts, $content, $tag );Parameters
- $atts
- ( array ) optional – parameters to the shortcode
- $content
- ( string ) optional – content for the shortcode
- $tag
- ( string ) optional – shortcode tag
Returns
string the expanded <iframe> tag for something like this. <iframe src="https://madmimi.com/signups/67172/iframe_embed" scrolling="no" frameborder="0" height="294" width="245"></iframe>Source
File name: oik/shortcodes/oik-iframe.phpLines:
1 to 20 of 20
function bw_iframe( $atts=null, $content=null, $tag=null ) { $url = bw_array_get( $atts, "url", null ); $src = bw_array_get( $atts, "src", $url ); $width = bw_array_get( $atts, "width", null ); $height = bw_array_get( $atts, "height", null ); $scrolling = bw_array_get( $atts, "scrolling", "no" ); $frameborder = bw_array_get( $atts, "frameborder", 0 ); $type = bw_array_get( $atts, "type", "text/html" ); $class = bw_array_get( $atts, "class", null ); $id = bw_array_get( $atts, "id", null ); $parms = kv( "src", $src ); $parms .= kv( "width", $width ); $parms .= kv( "height", $height ); $parms .= kv( "type", $type ); $parms .= kv( "scrolling", $scrolling ); $parms .= kv( "frameborder", $frameborder ); stag( "iframe", $class, $id, $parms ); etag( "iframe" ); return( bw_ret()); }View on GitHub View on Trac
Called by
Invoked by
Calls
1 to 5 of 5
