AnsPress_Form::label()

Description #

Form field label.

Changelog #

VersionDescription
2.0.1Introduced.

Source #

File: includes/class/form.php

	private function label() {

		if ( $this->field['label'] && ! $this->field['show_desc_tip'] ) {
			$this->output .= '<label class="ap-form-label" for="'. @$this->field['name'] .'">'. @$this->field['label'].'</label>';
		} elseif ( $this->field['label'] ) {
			$this->output .= '<label class="ap-form-label" for="'. @$this->field['name'] .'">'. @$this->field['label'];
			$this->desc();
			$this->output .= '</label>';
		}
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment