You appear to be a bot. Output may be restricted
Description
Implement the [bw_squeeze] shortcode
Usage
$string = bw_squeeze( $atts, $content, $tag );
Parameters
- $atts
- ( array ) optional – parameters to the shortcode id= post id of the opted_in page text = text for the submit button – defaults to "submit-text" option popup=N/Y
- $content
- ( string ) optional –
- $tag
- ( string ) optional –
Returns
string result of shortcode expansionSource
File name: oik-squeeze/shortcodes/oik-squeeze.phpLines:
1 to 18 of 18
function bw_squeeze( $atts=null, $content=null, $tag=null ) { $continue = oiksp_squeeze_is_active(); if ( $continue ) { $id = bw_array_get_dcb( $atts, "id", "opted-in", "oiksp_default" ); $post = get_post( $id ); if ( $post ) { $atts['text'] = bw_array_get_dcb( $atts, "text" , "submit-text", "oiksp_default" ); $atts['oiksp_id'] = $id; oik_require( "includes/bw_posts.php" ); $atts['oiksp_from'] = bw_array_get_dcb( $atts, "oiksp_from", null, "bw_global_post_id" ); bw_squeeze_form( $atts ); } else { p( "Error: shortcode $tag. Invalid parameter id=$id" ); } } return( bw_ret()); }