gglcptch_additional_settings_banner

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

Description

gglcptch_additional_settings_banner(); 

Usage

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

Defined (1)

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

/includes/pro_banners.php  
  1. function gglcptch_additional_settings_banner() { 
  2. global $gglcptch_options; 
  3. $gglcptch_sizes_v2 = array( 
  4. 'normal' => __( 'Normal', 'google-captcha' ),  
  5. 'compact' => __( 'Compact', 'google-captcha' ) 
  6. ); ?> 
  7. <table class="form-table bws_pro_version"> 
  8. <tr valign="top"> 
  9. <th scope="row"><?php _e( 'reCAPTCHA Language', 'google-captcha' ); ?></th> 
  10. <td> 
  11. <select disabled="disabled"> 
  12. <option selected="selected">English (US)</option> 
  13. </select> 
  14. <div style="margin: 5px 0 0;"> 
  15. <input disabled="disabled" id="gglcptch_use_multilanguage_locale" type="checkbox" /> 
  16. <label for="gglcptch_use_multilanguage_locale"><?php _e( 'Use the current site language', 'google-captcha' ); ?></label> <span class="bws_info">(<?php _e( 'Using', 'google-captcha' ); ?> Multilanguage by BestWebSoft)</span> 
  17. </div> 
  18. </td> 
  19. </tr> 
  20. <tr valign="top"> 
  21. <th scope="row"> 
  22. <?php _e( 'reCAPTCHA Size', 'google-captcha' ); ?> 
  23. <br/><span class="bws_info">(<?php _e( 'for version', 'google-captcha' ); ?> 2)</span> 
  24. </th> 
  25. <td><fieldset> 
  26. <?php foreach ( $gglcptch_sizes_v2 as $value => $name ) { 
  27. $link = plugins_url( 'google-captcha/images' ); 
  28. $link .= $value == 'normal' ? '/recaptcha_v2_normal' : '/recaptcha_v2_compact'; 
  29. $tooltip = bws_add_help_box( 
  30. '<img src="' . $link . '_light.png" class="gglcptch_size_sample gglcptch_size_sample_light' . ( 'light' == $gglcptch_options['theme_v2'] ? '"' : ' hidden"' ) . ' />' . 
  31. '<img src="' . $link . '_dark.png" class="gglcptch_size_sample gglcptch_size_sample_dark' . ( 'dark' == $gglcptch_options['theme_v2'] ? '"' : ' hidden"' ) . ' />',  
  32. 'bws-auto-width' 
  33. ); 
  34. printf( 
  35. '<div class="gglcptch_size_v2"><label><input disabled="disabled" type="radio" %s> %s</label>%s</div>',  
  36. $name == 'Normal' ? ' checked="checked"' : '',  
  37. $name,  
  38. $tooltip 
  39. ); 
  40. } ?> 
  41. </fieldset> 
  42. </td> 
  43. </tr> 
  44. </table> 
  45. <?php }