HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/globfdxw/www/wp-content/plugins/wpforms/pro/templates/admin/entries/single-entry/choice.php
<?php
/**
 * Choice template for the Entry view page.
 *
 * @var string $choice_type Checkbox or radio.
 * @var bool   $is_checked  Is the choice checked?
 * @var array  $choice      Choice data.
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

?>
<div class="field-value-choice field-value-choice-<?php echo esc_attr( $choice_type ); ?> <?php echo $is_checked ? ' field-value-choice-checked' : ''; ?>">
	<label>
		<input type="<?php echo esc_attr( $choice_type ); ?>"<?php echo $is_checked ? ' checked' : ''; ?> disabled>
		<?php
		// If this is the "Other" choice and a value exists, show it as "Label: Value".
		if ( ! empty( $choice['is_other'] ) && $is_checked && isset( $choice['other_value'] ) ) {
			echo wp_kses_post( $choice['label'] ) . ': ' . esc_html( $choice['other_value'] );
		} else {
			echo wp_kses_post( $choice['label'] );
		}
		?>
	</label>
</div>