field_type_label( $key['name'], $key['_id'] ) . $this->input( $attr, $key );
}
/**
* Create the Field Text
*
* @access public
* @param array $key The key of field's array to create the HTML field.
* @param string $out The HTML form output.
* @return string Return the HTML Field Text
*/
public function field_type_hidden( array $key, $out = '' ) {
$attr = array(
'type' => 'hidden',
'desc' => '',
);
return $this->field_type_label( $key['name'], $key['_id'] ) . $this->input( $attr, $key );
}
/**
* Create the field number
*
* @access public
* @param array $key The key of field's array to create the HTML field.
* @param string $out The HTML form output.
* @return string Return the HTML field number
*/
public function field_type_number( array $key, $out = '' ) {
$attr = array(
'type' => 'number',
);
return $this->field_type_label( $key['name'], $key['_id'] ) . $this->input( $attr, $key );
}
/**
* Create the field email
*
* @access public
* @param array $key The key of field's array to create the HTML field.
* @param string $out The HTML form output.
* @return string Return the HTML field email
*/
public function field_type_email( array $key, $out = '' ) {
$attr = array(
'type' => 'email',
);
return $this->field_type_label( $key['name'], $key['_id'] ) . $this->input( $attr, $key );
}
/**
* Create the field url
*
* @access public
* @param array $key The key of field's array to create the HTML field.
* @param string $out The HTML form output.
* @return string Return the HTML field url
*/
public function field_type_url( array $key, $out = '' ) {
$attr = array(
'type' => 'url',
);
return $this->field_type_label( $key['name'], $key['_id'] ) . $this->input( $attr, $key );
}
/**
* Create the field tel
*
* @access public
* @param array $key The key of field's array to create the HTML field.
* @param string $out The HTML form output.
* @return string Return the HTML field tel
*/
public function field_type_tel( array $key, $out = '' ) {
$attr = array(
'type' => 'tel',
);
return $this->field_type_label( $key['name'], $key['_id'] ) . $this->input( $attr, $key );
}
/**
* Create the field file
*
* @access public
* @param array $key The key of field's array to create the HTML field.
* @param string $out The HTML form output.
* @return string Return the HTML field file
*/
public function field_type_file( array $key, $out = '' ) {
$attr = array(
'type' => 'file',
);
return $this->field_type_label( $key['name'], $key['_id'] ) . $this->input( $attr, $key );
}
/**
* Create the Field Media
* This field add a single image
*
* @access public
* @param array $key The key of field's array to create the HTML field.
* @param string $out The HTML form output.
* @return string Return the HTML Field Text
*/
public function field_type_media( array $key, $out = '' ) {
$attr = array(
'type' => 'text',
);
$out = $this->field_type_label( $key['name'], $key['_id'] ) . $this->input( $attr, $key );
$value = isset( $key['value'] ) ? esc_attr( $key['value'] ) : '';
ob_start();
?>