Description
Display the opted-in settingsEach field is part of the bw_squeeze option:
- bw_squeeze['newsletter'] = default contacts system: Mad Mimi, InfusionSoft
- bw_squeeze['opted-in'] = default opted-in page ID
- bw_squeeze['submit-text'] = "Sign up now! "
- bw_squeeze['privacy'] = privacy policy page ID
- bw_squeeze['content_type'] = "text/html" / "text/plain";
Usage
oiksp_squeeze_options();Parameters
Returns
voidSource
File name: oik-squeeze/admin/oik-squeeze.phpLines:
1 to 16 of 16
function oiksp_squeeze_options() { $option = 'bw_squeeze'; $options = bw_form_start( $option, 'oik_squeeze' ); /** * Discover other active newsletters. */ add_filter( "oiksp_newsletters", "oiksp_newsletters_filter" ); bw_select_arr( $option, "Newsletter system", $options, 'newsletter', array( "#options" => oiksp_newsletters(), "#optional" => true) ); bw_form_field_noderef( "bw_squeeze[opted-in]", null, "Default opted-in page", $options['opted-in'], array( "#type" => "opted_in", "#optional" => true ) ); bw_textfield_arr( $option, "Sign up now! text (text=)", $options, 'submit-text', 40 ); bw_form_field_noderef( "bw_squeeze[privacy]", null, "Privacy policy page", $options['privacy'], array( "#type" => "page", "#optional" => true ) ); bw_select_arr( $option, "Email content type", $options, 'content_type', array( "#options" => oiksp_email_content_types() ) ); etag( "table" ); p( isubmit( "ok", "Save", null, "button-primary" ) ); etag( "form" ); }View on GitHub
Called by
Invoked by
Calls
1 to 8 of 8
- bw_form_start() – Start of a WordPress form for options fields
- bw_select_arr() – Create a select for an array options field
- bw_textfield_arr() – Create a textfield for an array options field
- etag() – Output an end tag
- isubmit() – Create a submit button
- oiksp_email_content_types() – Return the list of email content types
- oiksp_newsletters() – Determine the 3rd party newsletter software to integrate with
- p() – Output a paragraph of translatable text
