RWMB_Textarea_Field

The Evolved RWMB Textarea Field class.

Defined (1)

The class is defined in the following location(s).

/meta-box/inc/fields/textarea.php  
  1. class RWMB_Textarea_Field  
  2. /** 
  3. * Get field HTML 
  4. * @param string $html 
  5. * @param mixed $meta 
  6. * @param array $field 
  7. * @return string 
  8. */ 
  9. static function html( $html, $meta, $field )  
  10. $std = isset( $field['disabled'] ) ? $field['disabled'] : false; 
  11. $disabled = disabled( $std, true, false ); 
  12.  
  13. $cols = isset( $field['cols'] ) ? $field['cols'] : "60"; 
  14. $rows = isset( $field['rows'] ) ? $field['rows'] : "10"; 
  15. $name = "name='{$field['field_name']}'"; 
  16. $id = " id='{$field['id']}'"; 
  17. $html .= "<textarea class='rwmb-textarea large-text'{$name}{$id} cols='{$cols}' rows='{$rows}'{$disabled}>{$meta}</textarea>"; 
  18.  
  19. return $html;