wp_back/wp-content/plugins/webp-converter-for-media/templates/components/fields/input.php

28 lines
637 B
PHP
Raw Normal View History

2024-05-20 15:37:46 +03:00
<?php
/**
* Field displayed in plugin settings form.
*
* @var mixed[] $option Data of field.
* @var string $index Index of field.
*
* @package Converter for Media
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<?php if ( $option['info'] ) : ?>
<p><?php echo wp_kses_post( $option['info'] ); ?></p>
<?php endif; ?>
<div class="webpcInput">
<input type="text"
name="<?php echo esc_attr( $option['name'] ); ?>"
value="<?php echo esc_attr( $option['value'] ); ?>"
id="<?php echo esc_attr( $option['name'] ); ?>"
placeholder="<?php echo esc_attr( $option['placeholder'] ?: '' ); ?>"
class="webpcInput__field"
>
</div>