AtD_display_options_form

Display the various AtD options.

Description

AtD_display_options_form(); 

Usage

  1. if ( !function_exists( 'AtD_display_options_form' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/after-the-deadline/config-options.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = AtD_display_options_form(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/modules/after-the-deadline/config-options.php  
  1. function AtD_display_options_form() { 
  2.  
  3. /** grab our user and validate their existence */ 
  4. $user = wp_get_current_user(); 
  5. if ( ! $user || $user->ID == 0 ) 
  6. return; 
  7.  
  8. $options_show_types = AtD_get_options( $user->ID, 'AtD_options' ); 
  9. $options_check_when = AtD_get_options( $user->ID, 'AtD_check_when' ); 
  10. $options_guess_lang = AtD_get_options( $user->ID, 'AtD_guess_lang' ); 
  11. ?> 
  12. <table class="form-table"> 
  13. <tr valign="top"> 
  14. <th scope="row"> <a id="atd"></a> <?php _e( 'Proofreading', jetpack ); ?></th> 
  15. <td> 
  16. <p><?php _e( 'Automatically proofread content when:', jetpack ); ?> 
  17.  
  18. <p><?php 
  19. AtD_print_option( 'onpublish', __('a post or page is first published', jetpack), $options_check_when ); 
  20. echo '<br />'; 
  21. AtD_print_option( 'onupdate', __('a post or page is updated', jetpack), $options_check_when ); 
  22. ?></p> 
  23.  
  24. <p style="font-weight: bold"><?php _e('English Options', jetpack); ?></font> 
  25.  
  26. <p><?php _e('Enable proofreading for the following grammar and style rules when writing posts and pages:', jetpack); ?></p> 
  27.  
  28. <p><?php 
  29. AtD_print_option( 'Bias Language', __('Bias Language', jetpack), $options_show_types ); 
  30. echo '<br />'; 
  31. AtD_print_option( 'Cliches', __('Clichés', jetpack), $options_show_types ); 
  32. echo '<br />'; 
  33. AtD_print_option( 'Complex Expression', __('Complex Phrases', jetpack), $options_show_types ); 
  34. echo '<br />'; 
  35. AtD_print_option( 'Diacritical Marks', __('Diacritical Marks', jetpack), $options_show_types ); 
  36. echo '<br />'; 
  37. AtD_print_option( 'Double Negative', __('Double Negatives', jetpack), $options_show_types ); 
  38. echo '<br />'; 
  39. AtD_print_option( 'Hidden Verbs', __('Hidden Verbs', jetpack), $options_show_types ); 
  40. echo '<br />'; 
  41. AtD_print_option( 'Jargon Language', __('Jargon', jetpack), $options_show_types ); 
  42. echo '<br />'; 
  43. AtD_print_option( 'Passive voice', __('Passive Voice', jetpack), $options_show_types ); 
  44. echo '<br />'; 
  45. AtD_print_option( 'Phrases to Avoid', __('Phrases to Avoid', jetpack), $options_show_types ); 
  46. echo '<br />'; 
  47. AtD_print_option( 'Redundant Expression', __('Redundant Phrases', jetpack), $options_show_types ); 
  48. ?></p> 
  49. <p><?php printf( __( '<a href="%s">Learn more</a> about these options.', jetpack ), 'http://support.wordpress.com/proofreading/' ); 
  50. ?></p> 
  51.  
  52. <p style="font-weight: bold"><?php _e( 'Language', jetpack ); ?></font> 
  53.  
  54. <p><?php 
  55. _e( 'The proofreader supports English, French, German, Portuguese, and Spanish. Your user interface language (see above) is the default proofreading language.', jetpack ); 
  56. ?></p> 
  57.  
  58. <p><?php 
  59. AtD_print_option( 'true', __('Use automatically detected language to proofread posts and pages', jetpack ), $options_guess_lang ); 
  60. ?></p> 
  61.  
  62. <?php