HEX
Server: Apache/2.4.65 (Debian)
System: Linux wordpress-7cb4c6b6f6-nmkdc 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: www-data (33)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/jet-engine/templates/forms/common/field-label.php
<?php
/**
 * Field label template
 */

if ( 'heading' === $args['type'] ) {
	$class = 'jet-form__heading';
} else {
	$class = 'jet-form__label';
}

if ( ! empty( $this->args['label_tag'] ) && 'label' === $this->args['label_tag'] ) {
	$tag = 'label';
	$for = 'for="' . $this->get_field_id( $args ) . '"';
} else {
	$tag = 'span';
	$for = '';
}

?>
<div class="<?php echo $class; ?>">
	<<?php echo $tag; ?> class="jet-form__label-text" <?php echo $for; ?>><?php
	echo $args['label'];

	if ( ! in_array( $args['type'], array( 'heading', 'wysiwyg' ) ) && $this->get_required_val( $args ) && ! empty( $this->args['required_mark'] ) ) {
		printf( '<span class="jet-form__required">%s</span>', $this->args['required_mark'] );
	}

	?></<?php echo $tag; ?>>
	<?php
	if ( 'hidden' !== $args['type'] ) {
		include jet_engine()->get_template( 'forms/common/prev-page-button.php' );
	}
?></div>