LLMS_Metabox_Textarea_Field

LLMS_Metabox_Textarea_Field class


Source Source

File: includes/admin/post-types/meta-boxes/fields/llms.class.meta.box.textarea.php

class LLMS_Metabox_Textarea_Field extends LLMS_Metabox_Field implements Meta_Box_Field_Interface {

	/**
	 * Class constructor
	 *
	 * @param array $_field Array containing information about field
	 */
	public function __construct( $_field ) {

		$this->field = $_field;
	}

	/**
	 * outputs the Html for the given field
	 *
	 * @return void
	 */
	public function output() {

		global $post;

		parent::output(); ?>

		<textarea name="<?php echo $this->field['id']; ?>" id="<?php echo $this->field['id']; ?>" cols="60" rows="4"
								   <?php
									if ( isset( $this->field['required'] ) && $this->field['required'] ) :
										?>
			required="required"<?php endif; ?>><?php echo $this->meta; ?></textarea>

		<?php
		parent::close_output();
	}
}


Top ↑

Methods Methods


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.