ReduxFramework_textarea

The Gravity Forms Advanced File Uploader ReduxFramework textarea class.

Defined (1)

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

/inc/ReduxFramework/ReduxCore/inc/fields/textarea/field_textarea.php  
  1. class ReduxFramework_textarea { 
  2.  
  3. /** 
  4. * Field Constructor. 
  5. * @param $value Constructed by Redux class. Based on the passing in $field['defaults'] value and what is stored in the database. 
  6. * @param $parent ReduxFramework object is passed for easier pointing. 
  7. * @since ReduxFramework 1.0.0 
  8. * @type string $field [test] Description. Default <value>. Accepts <value>, <value>. 
  9. */ 
  10. function __construct( $field = array(), $value = '', $parent ) { 
  11. $this->parent = $parent; 
  12. $this->field = $field; 
  13. $this->value = $value; 
  14.  
  15. /** 
  16. * Field Render Function. 
  17. * Takes the vars and outputs the HTML for the field in the settings 
  18. * @since ReduxFramework 1.0.0 
  19. * @param array $arr (See above) 
  20. * @return Object A new editor object. 
  21. **/ 
  22. function render() { 
  23.  
  24. $this->field['placeholder'] = isset( $this->field['placeholder'] ) ? $this->field['placeholder'] : ""; 
  25. $this->field['rows'] = isset( $this->field['rows'] ) ? $this->field['rows'] : 6; 
  26.  
  27. ?> 
  28. <textarea name="<?php echo $this->field['name'] . $this->field['name_suffix']; ?>" 
  29. id="<?php echo $this->field['id']; ?>-textarea" 
  30. placeholder="<?php echo esc_attr( $this->field['placeholder'] ); ?>" 
  31. class="large-text <?php echo $this->field['class']; ?>" 
  32. rows="<?php echo $this->field['rows']; ?>"><?php echo $this->value; ?></textarea> 
  33. <?php