Description
Display the signup form for the squeeze page This version doesn't let other plugins play ?
Usage
oiksp_display_squeeze_form( $atts );Parameters
- $atts
- ( mixed ) optional –
Returns
voidSource
File name: oik-squeeze/shortcodes/oik-squeeze.phpLines:
1 to 28 of 28
function oiksp_display_squeeze_form( $atts=null ) { oik_require( "bobbforms.inc" ); $class = bw_array_get( $atts, "class", "bw_squeeze" ); sdiv( $class ); if ( !bw_array_get( $atts, 'confirm_key_required', false ) ) { oiksp_display_opted_in_excerpt( $atts ); } bw_form( get_permalink( $atts['oiksp_id']) ); stag( "table", $class ); /** * Cater for names with single quotes. Workaround that doesn't change bw_textfield. */ $name = stripslashes( bw_array_get( $_REQUEST, 'oiksp_name', '' ) ); bw_textfield( "oiksp_name", 30, "Name", $name, "textBox", "required" ); bw_emailfield( "oiksp_email", 30, "Email", null, "textBox", "required" ); if ( bw_array_get( $atts, 'confirm_key_required', false ) ) { bw_textfield( "oiksp_confirm", 30, "Confirmation key *", null, "textBox", "required" ); } etag( "table" ); e( ihidden( "oiksp_from", $atts['oiksp_from'] ) ); e( isubmit( "oiksp_squeeze", $atts['text'], null, $class ) ); e( wp_nonce_field( "_oik_squeeze_post_form", "_oik_squeeze_post_nonce", false, false ) ); oik_require_lib( "oik-honeypot" ); do_action( "oik_add_honeypot" ); etag( "form" ); oiksp_privacy_policy_link( $atts ); ediv(); }View on GitHub
Called by
1 to 2 of 2
Invoked by
Calls
1 to 11 of 11
- bw_array_get() – Return the array[index] or array->index (for an object) or a default value if not set
- bw_emailfield() – Form an "email" field
- bw_form() – Start a form
- bw_textfield() – Form a text field
- ediv() – End a div
- etag() – Output an end tag
- ihidden() – Return a hidden input field for a form
- isubmit() – Create a submit button
- oiksp_privacy_policy_link() – Display a link to the privacy policy
- sdiv() – Start a div
- stag() – Output an HTML opening tag
