public static function textarea($name, $value = '', $attributes = array()) { $attributes['name'] = $name; if (!isset($attributes['rows'])) { $attributes['rows'] = 10; } if (!isset($attributes['cols'])) { $attributes['cols'] = 50; } return Html::element('textarea', $value, $attributes); }
function meta_acpt_slide_options() { $form = new form('slide', null); $form->image('image', array('label' => 'Image URL', 'help' => 'Upload an Image that is 940px by 350px for best results', 'button' => 'Add Your Slide')); $form->text('headline', array('label' => 'Headline')); $form->textarea('description', array('label' => 'Description')); $form->select('showText', array('Yes', 'No'), array('label' => 'Show Headline and Description')); }