Sindbad~EG File Manager

Current Path : /home/xiedrke/entrepot/wp-content/plugins/realpress/views/admin/fields/
Upload File :
Current File : /home/xiedrke/entrepot/wp-content/plugins/realpress/views/admin/fields/text.php

<?php
/**
 * Template Field type Text
 * @version 1.0.0
 */

use RealPress\Helpers\Fields\Text;
use RealPress\Helpers\General;
/**
 * @var $field Text
 */
if ( ! isset( $field ) ) {
	return;
}

$required = $field->required ? ' required' : '';
?>
<div class="<?php echo esc_attr( ltrim( $field->class . ' ' . 'realpress-field-wrapper realpress-input-wrapper' ) ); ?>">
	<?php
	if ( ! empty( $field->title ) ) {
		?>
		<div class="realpress-title-wrapper">
			<label for="<?php echo esc_attr( $field->id ); ?>"><?php echo esc_html( $field->title ); ?></label>
		</div>
		<?php
	}
	?>
	<div class="realpress-input-content">
		<input type="text" id="<?php echo esc_attr( $field->id ); ?>"
				name="<?php echo esc_attr( $field->name ); ?>"
				value="<?php echo esc_attr( $field->value ?? '' ); ?>"
			<?php
			echo empty( $field->pattern ) ? '' : 'pattern = "' . esc_attr( $field->pattern ) . '"';
			echo empty( $field->placeholder ) ? '' : 'placeholder = "' . esc_attr( $field->placeholder ) . '"';
			echo esc_attr( $required );
			?>
		/>
		<?php
		if ( ! empty( $field->description ) ) {
			?>
			<p class="realpress-description"><?php echo General::ksesHTML( $field->description ); ?></p>
			<?php
		}
		?>
	</div>
</div>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists