minileven_configuration_screen

The Jetpack by WordPress.com minileven configuration screen function.

Description

minileven_configuration_screen(); 

Usage

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

Defined (1)

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

/modules/minileven.php  
  1. function minileven_configuration_screen() { 
  2. $excerpts = ( 0 == get_option( 'wp_mobile_excerpt' ) ) ? 0 : 1; 
  3. $featured_images = ( 0 == get_option( 'wp_mobile_featured_images' ) ) ? 0 : 1; 
  4. $promos = ( '1' == get_option( 'wp_mobile_app_promos' ) ) ? 1 : 0; 
  5.  
  6. ?> 
  7. <form method="post"> 
  8. <input type="hidden" name="action" value="save_options" /> 
  9. <?php wp_nonce_field( 'minileven' ); ?> 
  10. <table id="menu" class="form-table"> 
  11. <tr valign="top"> 
  12. <th scope="row"><?php _e( 'Excerpts', jetpack ); ?></th> 
  13. <td> 
  14. <label> 
  15. <input name="wp_mobile_excerpt" type="radio" value="1" class="code" <?php checked( 1, $excerpts, true ); ?> /> 
  16. <?php _e( 'Enable excerpts on front page and on archive pages', jetpack ); ?> 
  17. </label> 
  18. <br /> 
  19. <label> 
  20. <input name="wp_mobile_excerpt" type="radio" value="0" class="code" <?php checked( 0, $excerpts, true ); ?> /> 
  21. <?php _e( 'Show full posts on front page and on archive pages', jetpack ); ?> 
  22. </label> 
  23. </td> 
  24. </tr> 
  25. <tr valign="top"> 
  26. <th scope="row"><?php _e( 'Featured Images', jetpack ); ?></th> 
  27. <td> 
  28. <label> 
  29. <input name="wp_mobile_featured_images" type="radio" value="0" class="code" <?php checked( 0, $featured_images, true ); ?> /> 
  30. <?php _e( 'Hide all featured images', jetpack ); ?> 
  31. </label> 
  32. <br /> 
  33. <label> 
  34. <input name="wp_mobile_featured_images" type="radio" value="1" class="code" <?php checked( 1, $featured_images, true ); ?> /> 
  35. <?php _e( 'Display featured images', jetpack ); ?> 
  36. </label> 
  37. </td> 
  38. </tr> 
  39. <tr valign="top"> 
  40. <th scope="row"><?php _e( 'Mobile App Promos', jetpack ); ?></th> 
  41. <td> 
  42. <label> 
  43. <input name="wp_mobile_app_promos" type="checkbox" value="1" <?php checked( 1, $promos, true ); ?> /> 
  44. <?php _e ( 'Show a promo for the WordPress mobile apps in the footer of the mobile theme.', jetpack ); ?> 
  45. </label> 
  46. </td> 
  47. </tr> 
  48. </table> 
  49. <p class="submit"> 
  50. <input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save configuration', jetpack ); ?>" /> 
  51. </p> 
  52. </form> 
  53. <h3><?php _e( 'Mobile Apps', jetpack ); ?></h3> 
  54. <p><?php _e( 'Take WordPress with you.', jetpack ); ?></p> 
  55. <a href="http://wordpress.org/extend/mobile/"><img src="<?php echo plugin_dir_url( __FILE__ ); ?>/minileven/images/wp-app-devices.png" width="332" height="73" /></a> 
  56. <p><?php printf( __( 'We have apps for <a href="%s">iOS (iPhone, iPad, iPod Touch)</a>, <a href="%s">Android</a>, <a href="%s">BlackBerry</a>, and <a href="%s">more</a>!', jetpack ), 'http://ios.wordpress.org/', 'http://android.wordpress.org/', 'http://blackberry.wordpress.org/', 'http://wordpress.org/mobile/' ); ?></p> 
  57. <?php