field = $field; $this->value = $value; $this->args = $parent->args; } /** * Field Render Function. * * Takes the vars and outputs the HTML for the field in the settings * * @since Vision_Options 1.0.0 */ function render() { $class = (isset($this->field['class'])) ? $this->field['class'] : ''; $settings = array( 'textarea_name' => $this->args['opt_name'] . '[' . $this->field['id'] . ']', 'editor_class' => $class, 'wpautop' => (isset($this->field['autop'])) ? $this->field['autop'] : true ); wp_editor($this->value, $this->field['id'], $settings ); echo (isset($this->field['desc']) && !empty($this->field['desc'])) ? '
' . $this->field['desc'] . '' : ''; } }