LLMS_Metabox_Number_Field::output()

outputs the Html for the given field


Return Return

(void)


Top ↑

Source Source

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

	public function output() {

		global $post;

		parent::output(); ?>

		<input type="number"
		<?php
		if ( isset( $this->field['min'] ) ) {
			echo 'min="' . $this->field['min'] . '"';
		}
		if ( isset( $this->field['max'] ) ) {
			echo 'max="' . $this->field['max'] . '"';
		}
		?>
			name="<?php echo $this->field['id']; ?>"
			id="<?php echo $this->field['id']; ?>"
			class="<?php echo esc_attr( $this->field['class'] ); ?>"
			value="<?php echo $this->meta; ?>" size="30"
			<?php if ( isset( $this->field['step'] ) ) : ?>
			step="<?php echo $this->field['step']; ?>"
			<?php endif; ?>
			<?php if ( isset( $this->field['required'] ) && $this->field['required'] ) : ?>
			required="required"
			<?php endif; ?>
		/>

		<?php
		parent::close_output();
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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