You appear to be a bot. Output may be restricted
Description
Load screenshot images for the selected plugin (or other plugin files)e.g [nivo post_type='screenshot:oik-nivo-slider'] or [nivo post_type='screenshot:oik'] This solution assumes that the screenshots are part of the plugin It does not load the files from the wordpress.org repository – where they may be stored in the assets folder
Usage
$array = bw_get_spt_screenshot( $atts );
Parameters
- $atts
- ( array ) required – array of shortcode parameters
Returns
arraySource
File name: oik-nivo-slider/nivo.phpLines:
1 to 9 of 9
function bw_get_spt_screenshot( $atts ) { $explode = explode( ':', $atts['post_type'] ); $type = bw_array_get( $explode, 0, "screenshot" ); $plugin = bw_array_get( $explode, 1, "oik-nivo-slider" ); $path = oik_path( $type, $plugin ); $files = glob( $path . "*" ); $urls = bw_file_to_url( $files, $atts ); return( $urls ); }View on GitHub View on Trac