Description
Returns the URL for accessing the mshot
Usage
$string = oikms_get_mshot_url( $atts );Parameters
- $atts
- ( array ) required – shortcode attributes
Returns
string the URL for the mshotSource
File name: oik-mshot/shortcodes/oik-mshot.phpLines:
1 to 13 of 13
function oikms_get_mshot_url( $atts ) { $mshot = bw_array_get( $atts, "mshot", 'http://s.wordpress.com/mshots/v1/' ); $url = bw_array_get( $atts, "url", "http://www.oik-plugins.com" ); $title = bw_array_get( $atts, "title", null ); $w = bw_array_get( $atts, "w", 768 ); $h = bw_array_get( $atts, "h", null ); $src = $mshot; $src .= urlencode( $url ); $src .= '?'; $src .= build_query( array( "w" => $w, "h" => $h )); return( $src ); }View on GitHub
Called by
1 to 2 of 2
Invoked by
Calls
Call hooks
API Letters:
