HEX
Server: Apache/2
System: Linux server-80-13-140-150.da.direct 5.14.0-362.24.1.el9_3.0.1.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 4 22:31:43 UTC 2024 x86_64
User: cpt (1004)
PHP: 8.1.24
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/cpt/public_html/wp-content/plugins/wpforms/pro/templates/admin/entry-print/field.php
<?php
/**
 * Field template for the Entry Print page.
 *
 * @var object $entry     Entry.
 * @var array  $form_data Form data and settings.
 * @var array  $field     Entry field..
 */

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

$field_description = isset( $form_data['fields'][ $field['id'] ]['description'] ) ? $form_data['fields'][ $field['id'] ]['description'] : '';
$is_toggled_field  = in_array( $field['type'], [ 'divider', 'pagebreak', 'html', 'content' ], true );
$is_choices_field  = in_array( $field['type'], [ 'radio', 'checkbox', 'payment-checkbox', 'payment-multiple' ], true );
$is_empty_field    = $is_choices_field ? wpforms_is_empty_string( $field['value'] ) : wpforms_is_empty_string( $field['formatted_value'] );
$field_class       = [ 'print-item', 'field', 'wpforms-field-' . $field['type'] ];

if ( ! $is_toggled_field && $is_empty_field ) {
	$field_class[] = 'wpforms-field-empty';
}
?>

<div class="<?php echo wpforms_sanitize_classes( $field_class, true ); ?>">
	<p class="print-item-title field-name">
		<?php
		echo empty( $field['formatted_label'] )
			? sprintf( /* translators: %d - field ID. */
				esc_html__( 'Field ID #%d', 'wpforms' ),
				absint( $field['id'] )
			)
			: esc_html( wp_strip_all_tags( $field['formatted_label'] ) );
		?>
		<span class="print-item-description field-description"><?php echo esc_html( $field_description ); ?></span>
	</p>
	<?php if ( ! in_array( $field['type'], [ 'divider', 'pagebreak' ], true ) ) { ?>
		<div class="print-item-value field-value">
			<?php
			echo $is_empty_field && ! $is_choices_field
				? esc_html__( 'Empty', 'wpforms' )
				// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
				: $field['formatted_value'];
			?>
		</div>
	<?php } ?>
</div>