You appear to be a bot. Output may be restricted
Description
Dynamically generate oik responsive web design class definitions for the class names givenIf classes are given then we create responsive definitions for these else we enable class interception for any future shortcode. Note: In this case there's no need to do anything else for this shortcode instance.
Usage
$string = bw_rwd( $atts, $content, $tag );
Parameters
- $atts
- ( array ) optional – expected to either contain "class" or uses the index 0 value(s)
- $content
- ( string ) optional – not expected
- $tag
- ( string ) optional – the shortcode used
Returns
string nothing is generated directly by this shortcodeSource
File name: oik-rwd/shortcodes/oik-rwd.phpLines:
1 to 10 of 10
function bw_rwd( $atts=null, $content=null, $tag=null ) { $class = bw_array_get_from( $atts, "class,0", null ); if ( $class ) { $classes = oik_rwd_class( $class ); } else { add_action( "oik_shortcode_atts", "oik_rwd_shortcode_atts", 10, 3 ); } return( bw_ret() ); }View on GitHub