コード例 #1
0
 public static function add_recaptcha_setting_field_callback()
 {
     $options = SB_Option::get();
     $value = isset($options['global']['recaptcha']['site_key']) ? $options['global']['recaptcha']['site_key'] : '';
     $args = array('id' => 'sb_core_global_recaptcha_site_key', 'name' => SB_Option::build_sb_option_name(array('global', 'recaptcha', 'site_key')), 'value' => $value, 'description' => __('The Google reCaptcha Site key, you can use this in the HTML code your site serves to users.', 'sb-core'), 'container_class' => 'margin-bottom');
     SB_Field::text($args);
     $value = isset($options['global']['recaptcha']['secret_key']) ? $options['global']['recaptcha']['secret_key'] : '';
     $args = array('id' => 'sb_core_global_recaptcha_secret_key', 'name' => SB_Option::build_sb_option_name(array('global', 'recaptcha', 'secret_key')), 'value' => $value, 'description' => __('The reCaptcha Secret key, you can use this for communication between your site and Google.', 'sb-core'));
     SB_Field::text($args);
 }
コード例 #2
0
 public static function text($args = array())
 {
     if (!isset($args['before'])) {
         $args['before'] = '';
     }
     $id = isset($args['id']) ? $args['id'] : '';
     $label = isset($args['label']) ? $args['label'] : '';
     self::before($id, $label);
     $args['label'] = '';
     SB_Field::text($args);
     self::after();
 }
コード例 #3
0
 public static function text($args = array())
 {
     SB_Field::text($args);
 }