display_textbox() public method

public display_textbox ( $args = '' )
Ejemplo n.º 1
0
 /**
  * Show rtmedia textbox in admin options.
  *
  * @access static
  *
  * @param  array $args
  *
  * @return void
  */
 public static function textbox($args)
 {
     global $rtmedia;
     $options = $rtmedia->options;
     $defaults = array('key' => '', 'desc' => '');
     $args = wp_parse_args($args, $defaults);
     extract($args);
     if (!isset($value)) {
         trigger_error(esc_html__('Please provide a "value" in the argument.', 'buddypress-media'));
         return;
     }
     if (!empty($key)) {
         $args['name'] = 'rtmedia-options[' . $key . ']';
     }
     $args['value'] = $value;
     $numObj = new rtForm();
     $numObj->display_textbox($args);
 }