if ($this->id != '') { $id = ' id="' . $this->id . '"'; } if ($this->name != '') { $name = ' name="' . $this->name . '"'; } if ($this->rows != '') { $rows = ' rows="' . $this->rows . '"'; }
* * @param string $name Name of textarea * @param array $args Array of [ $id Id, $name Name, $extra Extra textarea code, $rows Number of rows in textarea, $cols Number of columns in textarea, $before_textarea Code before textarea, $after_textarea Code after textarea ] */ function tk_wp_form_textarea($name, $args = array()) { $this->__construct($name, $args); } /** * PHP 5 constructor * * @package Themekraft Framework * @since 0.1.0 * * @param string $name Name of textfield * @param array $args Array of [ $id Id, $name Name, $value Value, $extra Extra textarea code, $rows Number of rows in textarea, $cols Number of columns in textarea, $before_textarea Code before textarea, $after_textarea Code after textarea ] */ function __construct($name, $args = array()) { global $post, $tk_form_instance_option_group; $defaults = array('id' => '', 'extra' => '', 'rows' => '', 'cols' => '', 'option_group' => $tk_form_instance_option_group);