1 line
1.2 KiB
PHP
1 line
1.2 KiB
PHP
<?php
|
|
/**
|
|
* Shows the text field on event listing forms.
|
|
*
|
|
* This template can be overridden by copying it to yourtheme/wp-event-manager/form-fields/text-field.php.
|
|
*
|
|
* @see https://www.wp-eventmanager.com/documentation/template-files-override/
|
|
* @author WP Event Manager
|
|
* @package WP Event Manager
|
|
* @category Template
|
|
* @version 1.8
|
|
*/
|
|
?>
|
|
<input type="text" class="input-text <?php echo esc_attr( isset( $field['class'] ) ? $field['class'] : $key ); ?>" name="<?php echo esc_attr( isset( $field['name'] ) ? $field['name'] : $key ); ?>" id="<?php echo isset( $field['id'] ) ? esc_attr( $field['id'] ) : esc_attr( $key ); ?>" placeholder="<?php echo empty( $field['placeholder'] ) ? '' : esc_attr( $field['placeholder'] ); ?>" attribute="<?php echo esc_attr( isset( $field['attribute'] ) ? $field['attribute'] : '' ); ?>" value="<?php echo isset( $field['value'] ) ? esc_attr( $field['value'] ) : ''; ?>" maxlength="<?php echo ! empty( $field['maxlength'] ) ? $field['maxlength'] : ''; ?>" <?php if ( ! empty( $field['required'] ) ) echo 'required'; ?> />
|
|
<?php if ( ! empty( $field['description'] ) ) : ?><small class="description"><?php echo $field['description']; ?></small><?php endif; ?>
|