gglcptch_plugin_banner

The Google Captcha (reCAPTCHA) by BestWebSoft gglcptch plugin banner function.

Description

gglcptch_plugin_banner(); 

Usage

  1. if ( !function_exists( 'gglcptch_plugin_banner' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-captcha-recaptcha-by-bestwebsoft/google-captcha.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gglcptch_plugin_banner(); 
  7.  

Defined (1)

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

/google-captcha.php  
  1. function gglcptch_plugin_banner() { 
  2. global $hook_suffix, $gglcptch_plugin_info, $gglcptch_options; 
  3. if ( 'plugins.php' == $hook_suffix ) { 
  4. if ( empty( $gglcptch_options ) ) 
  5.  
  6. if ( empty( $gglcptch_options['public_key'] ) || empty( $gglcptch_options['private_key'] ) ) { ?> 
  7. <div class="error"> 
  8. <p> 
  9. <?php printf( 
  10. '<strong>%s <a target="_blank" href="https://www.google.com/recaptcha/admin#list">%s</a> %s <a target="_blank" href="%s">%s</a>.</strong>',  
  11. __( 'To use Google Captcha you must get the keys from', 'google-captcha' ),  
  12. __ ( 'here', 'google-captcha' ),  
  13. __ ( 'and enter them on the', 'google-captcha' ),  
  14. admin_url( '/admin.php?page=google-captcha.php' ),  
  15. __( 'plugin setting page', 'google-captcha' ) 
  16. ); ?> 
  17. </p> 
  18. </div> 
  19. <?php } 
  20. if ( isset( $gglcptch_options['first_install'] ) && strtotime( '-1 week' ) > $gglcptch_options['first_install'] ) 
  21. bws_plugin_banner( $gglcptch_plugin_info, 'gglcptch', 'google-captcha', '676d9558f9786ab41d7de35335cf5c4d', '109', '//ps.w.org/google-captcha/assets/icon-128x128.png' ); 
  22.  
  23. bws_plugin_banner_to_settings( $gglcptch_plugin_info, 'gglcptch_options', 'google-captcha', 'admin.php?page=google-captcha.php' ); 
  24.  
  25. if ( isset( $_GET['page'] ) && 'google-captcha.php' == $_GET['page'] ) { 
  26. bws_plugin_suggest_feature_banner( $gglcptch_plugin_info, 'gglcptch_options', 'google-captcha' );