"" ); update_option('add_email_signature_options', $arr); } } # Various functions for outputing each of the options fields function add_email_signature_options_signature() { $options = get_option('add_email_signature_options'); ?>

Add Email Signature Options

${ws_advert}

Version: $pver
Maintained by David Anderson (Homepage | WordShell - WordPress command line | Donate | FAQs)

Enter the signature which you wish to use here. Do not add the "--", as it is assumed. If you wish to temporarily turn off the adding of signatures, then just disable the plugin (your settings will not be deleted).

ENDHERE; settings_fields('add_email_signature_options'); do_settings_sections('add_email_signature'); echo <<

ENDHERE; } function add_email_signature_wordshell_random_advert($urls) { $url_start = ($urls) ? '' : ""; $url_end = ($urls) ? '' : " (www.wordshell.net)"; if (rand(0,1) == 0) { return "Like automating WordPress operations? Use the CLI? ${url_start}You will love WordShell${url_end} - saves time and money fast."; } else { return "${url_start}Check out WordShell${url_end} - manage WordPress from the command line - huge time-saver"; } } function add_email_signature_action_links($links, $file) { if ( $file == ADDEMAILSIG_SLUG."/".ADDEMAILSIG_SLUG.".php" ){ array_unshift( $links, 'Settings', 'Donate' ); } return $links; } add_filter( 'plugin_action_links', 'add_email_signature_action_links', 10, 2 ); ?>