Description
Display the oik-email-signature settings page
Usage
bw_email_signature_do_page();Parameters
Returns
voidSource
File name: oik-email-signature/oik-email-signature.phpLines:
1 to 66 of 66
function bw_email_signature_do_page() { do_action( "oik_add_shortcodes" ); oik_require( "bobbforms.inc" ); sdiv( "wrap" ); h2( "email signature" ); e( '<form method="post" action="options.php">' ); $options = get_option('bw_email_signature'); stag( 'table class="form-table"' ); bw_flush(); settings_fields('bw_email_signature_options'); $instructions = "<br />Type the HTML and oik shortcodes you want to use in your email signature and click on Save changes"; $instructions .= "<br />You may also need to add some CSS style information."; p( $instructions ); textarea( "bw_email_signature[text]" , 80, "Email signature [bw_email_signature]", $options['text'] ); tablerow( "", "<input type=\"submit\" name=\"ok\" value=\"Save changes\" />" ); etag( "table" ); etag( "form" ); ediv(); sediv( "clear" ); bw_flush(); sdiv("wrap"); h2( "email signature preview" ); p("This is a preview of the HTML for your email signature"); //hr(); // Note: We haven't yet created a [bw_email_signature] shortcode. // It's not needed for this code. Here we expand the shortcodes in the text field bw_flush(); $text = $options['text']; $formatted_text = do_shortcode( $text ); e( $formatted_text ); // Even though we might want to do this it's very silly as we go recursive! // $formatted_text = apply_filters( 'settings_page_bw_email_signature', $example ); bw_flush(); // Now create the version that the user can copy and paste into a file ediv(); sdiv( "wrap" ); h2( " email signature HTML"); p( "This is the HTML to copy and paste into your email signature file."); p( "Note: you may also need to include some CSS styling in order to make your email signature match what you see above"); // p( "This will be part of a future version of " . bw_oik() ); $escaped_text = esc_html( $formatted_text ); e( $escaped_text ); h2("More about " . bw_oik()); p("For more information:" ); art_button( "http://www.oik-plugins.com/oik", bw_oik() . " documentation", "Read the documentation for the oik plugin" ); ediv(); bw_flush(); }
Called by
Invoked by
Calls
1 to 10 of 10
- bw_flush() – Use bw_flush() to echo the contents of $bwecho then empty it
- ediv() – End a div
- etag() – Output an end tag
- h2() –
- p() – Output a paragraph of translatable text
- sdiv() – Start a div
- sediv() – Create a dummy div which may be used for placing graphics using background images in CSS
- stag() – Output an HTML opening tag
- tablerow() – Create a simple table row
- textarea() – Create a textarea field
Call hooks
API Letters:
