rlp_settings_page

The bbP last post rlp settings page function.

Description

rlp_settings_page(); 

Usage

  1. if ( !function_exists( 'rlp_settings_page' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbp-last-post/includes/settings.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = rlp_settings_page(); 
  7.  

Defined (1)

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

/includes/settings.php  
  1. function rlp_settings_page() 
  2. global $rlp_options; 
  3.  
  4. ?> 
  5. <div class="wrap"> 
  6. <div id="upb-wrap" class="upb-help"> 
  7. <h2><?php _e('Last Post Heading Setting', 'bbp-last-post'); ?></h2> 
  8. <?php 
  9. if ( ! isset( $_REQUEST['updated'] ) ) 
  10. $_REQUEST['updated'] = false; 
  11. ?> 
  12. <?php if ( false !== $_REQUEST['updated'] ) : ?> 
  13. <div class="updated fade"><p><strong><?php _e( 'Name saved', 'bbp-last-post'); ?> ); ?></strong></p></div> 
  14. <?php endif; ?> 
  15.  
  16.  
  17. <table class="form-table"> 
  18. <tr> 
  19.  
  20. <td> 
  21. <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> 
  22. <input type="hidden" name="cmd" value="_s-xclick"> 
  23. <input type="hidden" name="hosted_button_id" value="9NKN2K8SXGS9Q"> 
  24. <input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal * The safer, easier way to pay online."> 
  25. <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1"> 
  26. </form> 
  27. </td><td> 
  28. <?php _e("If you find this plugin useful, please consider donating just a couple of pounds to help me develop and maintain it. You support will be appreciated", 'bbp-last-post'); ?> 
  29.  
  30. </td> 
  31. </tr> 
  32. </table>  
  33.  
  34. <form method="post" action="options.php"> 
  35.  
  36. <?php settings_fields( 'rlp_settings_group' ); ?> 
  37.  
  38. <table class="form-table"> 
  39.  
  40. <tr valign="top"> 
  41. <th colspan="2"><p> <?php _e('This plugin changes the freshness (eg. 4 hours ago) display on forums and topics to date and time of last post. 
  42. The name below sets the heading of this column.', 'bbp-last-post') ?> </p></th> 
  43. </tr> 
  44.  
  45. <tr> 
  46.  
  47. <!-------------------------------Heading----------------------------------------> 
  48.  
  49. <tr valign="top"> 
  50. <th colspan="2"><h3><?php _e('Heading', 'bbp-last-post'); ?></h3></th> 
  51. </tr> 
  52.  
  53.  
  54.  
  55. <tr valign="top"> 
  56. <th><?php _e('Heading Name', 'bbp-last-post'); ?></th> 
  57. <td> 
  58. <input id="rlp_settings[heading_label]" class="large-text" name="rlp_settings[heading_label]" type="text" value="<?php echo isset( $rlp_options['heading_label'] ) ? esc_html( $rlp_options['heading_label'] ) : '';?>" /><br/> 
  59. <label class="description" for="rlp_settings[heading_label]"><?php _e( 'Enter the heading description eg "Last Post", "Last updated", "Freshness" "Last activity" etc.', 'bbp-last-post' ); ?></label><br/> 
  60. </td> 
  61. </tr> 
  62.  
  63.  
  64.  
  65. </table> 
  66.  
  67. <!-- save the options --> 
  68. <p class="submit"> 
  69. <input type="submit" class="button-primary" value="<?php _e( 'Save Heading Name', 'bbp-last-post' ); ?>" /> 
  70. </p> 
  71.  
  72.  
  73. </form> 
  74. </div><!--end sf-wrap--> 
  75. </div><!--end wrap--> 
  76.  
  77. <?php