protected function singleInput( $type = 'checkbox' )
	{
		$optionKey = key( $this->args['options'] );

		$args = $this->multiInputArgs( $type, $optionKey, 1 );

		if( !$args )return;

		$atts = $this->normalize();
		$atts = wp_parse_args( $args['attributes'], $atts );

		$attributes = '';

		foreach( $atts as $key => $val ) {
			$attributes .= sprintf( '%s="%s" ', $key, $val );
		}

		return sprintf( '<label for="%s"><input %s%s/> %s</label>',
			$atts['id'],
			$attributes,
			checked( $args['value'], $atts['value'], false ),
			$args['label']
		);
	}
protected function singleInput( $type = 'checkbox' )
	{
		$optionKey = key( $this->args['options'] );

		$args = $this->multiInputArgs( $type, $optionKey, 1 );

		if( !$args )return;

		$atts = $this->normalize();
		$atts = wp_parse_args( $args['attributes'], $atts );

		$attributes = '';

		foreach( $atts as $key => $val ) {
			$attributes .= sprintf( '%s="%s" ', $key, $val );
		}

		return sprintf( '<label for="%s"><input %s%s/> %s</label>',
			$atts['id'],
			$attributes,
			checked( $args['value'], $atts['value'], false ),
			$args['label']
		);
	}
protected function singleInput ( $ type = 'checkbox' ) { $ optionKey = key ( $ this -> args [ 'options' ] ) ; $ args = $ this -> multiInputArgs ( $ type , $ optionKey , 1 ) ; if ( ! $ args ) return ; $ atts = $ this -> normalize ( ) ; $ atts = wp_parse_args ( $ args [ 'attributes' ] , $ atts ) ; $ attributes = '' ; foreach ( $ atts as $ key => $ val ) { $ attributes .= sprintf ( '%s="%s" ' , $ key , $ val ) ; } return sprintf ( '<label for="%s"><input %s%s/> %s</label>' , $ atts [ 'id' ] , $ attributes , checked ( $ args [ 'value' ] , $ atts [ 'value' ] , false ) , $ args [ 'label' ] ) ; }
Generate a single checkbox

@param string $type

@return null|string
Generate a single checkbox