get_radio() public method

Get rtmedia html input type radio in admin options.
public get_radio ( string/array $attributes = '' ) : string
$attributes string/array
return string
 /**
  * Show rtmedia radio in admin options.
  *
  * @access static
  *
  * @param  array $args
  *
  * @return void
  */
 public static function radio($args)
 {
     global $rtmedia;
     $options = $rtmedia->options;
     $defaults = array('key' => '', 'radios' => array(), 'default' => '', 'show_desc' => false);
     $args = wp_parse_args($args, $defaults);
     extract($args);
     if (2 > count($radios)) {
         trigger_error(__('Need to specify atleast two radios, else use a checkbox instead', 'rtmedia'));
         return;
     }
     if (!empty($key)) {
         $args['name'] = 'rtmedia-options[' . $key . ']';
     }
     $args['rtForm_options'] = array();
     foreach ($radios as $value => $key) {
         $args['rtForm_options'][] = array($key => $value, 'checked' => $default == $value ? true : false);
     }
     $objRad = new rtForm();
     echo $objRad->get_radio($args);
 }