<?php class ReduxFramework_textarea {

    /**
     * Field Constructor.
     *
     * Required - must call the parent constructor, then assign field and value to vars, and obviously call the render field function
     *
     * @since ReduxFramework 1.0.0
    */
    function __construct($field = array(), $value ='', $parent) {
        $this->field = $field;
		$this-&gt;value = $value;
		$this-&gt;args = $parent-&gt;args;
    }

    /**
     * Field Render Function.
     *
     * Takes the vars and outputs the HTML for the field in the settings
     *
     * @since ReduxFramework 1.0.0
    */




    function render() {

        $name = $this-&gt;args['opt_name'] . '[' . $this-&gt;field['id'] . ']';
        $this-&gt;field['placeholder'] = isset($this-&gt;field['placeholder']) ? $this-&gt;field['placeholder'] : "";
        $this-&gt;field['rows'] = isset($this-&gt;field['rows']) ? $this-&gt;field['rows'] : 6;

        ?&gt;<textarea name="&lt;?php echo $name; ?&gt;" id="&lt;?php echo $this-&gt;field['id']; ?&gt;-textarea" placeholder="&lt;?php echo esc_attr($this-&gt;field['placeholder']); ?&gt;" class="large-text &lt;?php echo $this-&gt;field['class']; ?&gt;" rows="&lt;?php echo $this-&gt;field['rows']; ?&gt;"><?php echo $this->value; ?&gt;</textarea><?php }
}
</body>