You appear to be a bot. Output may be restricted
Description
Implement [bw_mshot] shortcode
Use cache to cause the shortcode to cache the mshot as an attachment
Usage
oikms_mshot( $atts, $content, $tag );
Parameters
- $atts
- ( mixed ) optional –
- $content
- ( mixed ) optional –
- $tag
- ( mixed ) optional –
Returns
void
Source
File name: oik-mshot/shortcodes/oik-mshot.php
Lines:
1 to 13 of 13
function oikms_mshot( $atts=null, $content=null, $tag=null ) { $cache = bw_array_get( $atts, "cache", null ); if ( $cache ) { $atts['url'] = $cache; $src = oikms_load_mshot( $atts ); } else { $src = oikms_get_mshot_url( $atts ); } $title = bw_array_get( $atts, "title", null ); $image = retimage( "mshot", $src, $title ); e( $image ); return( bw_ret() ); }