gglcptch_login_display

The Google Captcha (reCAPTCHA) by BestWebSoft gglcptch login display function.

Description

gglcptch_login_display(); 

Usage

  1. if ( !function_exists( 'gglcptch_login_display' ) ) { 
  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_login_display(); 
  7.  

Defined (1)

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

/google-captcha.php  
  1. function gglcptch_login_display() { 
  2. global $gglcptch_options; 
  3. if ( isset( $gglcptch_options['recaptcha_version'] ) && in_array( $gglcptch_options['recaptcha_version'], array( 'v1', 'v2' ) ) ) { 
  4. if ( 'v2' == $gglcptch_options['recaptcha_version'] ) { 
  5. $from_width = 302; 
  6. } else { 
  7. $from_width = 320; 
  8. if ( 'clean' == $gglcptch_options['theme'] ) 
  9. $from_width = 450; 
  10. } ?> 
  11. <style type="text/css" media="screen"> 
  12. .login-action-login #loginform,  
  13. .login-action-lostpassword #lostpasswordform,  
  14. .login-action-register #registerform { 
  15. width: <?php echo $from_width; ?>px !important; 
  16. #login_error,  
  17. .message { 
  18. width: <?php echo $from_width + 20; ?>px !important; 
  19. .login-action-login #loginform .gglcptch,  
  20. .login-action-lostpassword #lostpasswordform .gglcptch,  
  21. .login-action-register #registerform .gglcptch { 
  22. margin-bottom: 10px; 
  23. </style> 
  24. <?php } 
  25. echo gglcptch_display(); 
  26. return true;