|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /html/relaunch-kmu/wp-content/plugins/wp-gdpr-compliance/Templates/Admin/Form/ |
Upload File : |
<?php
/**
* @var string $type
* @var string $name
* @var string $value
* @var string $class
* @var string $attr
*/
use WPGDPRC\Utils\AdminForm;
if ( empty( $id ) ) {
$id = sanitize_key( $name );
}
if ( empty( $type ) ) {
$type = 'text';
}
?>
<input type="<?php echo esc_attr( $type ); ?>" id="<?php echo esc_attr( $id ); ?>" class="<?php echo esc_attr( $class ); ?>" name="<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $value ); ?>"
<?php echo AdminForm::buildAttributes( $attr ); // PHPCS: XSS ok; ?> />
<?php if ( $type === 'color' ) : ?>
<input type="text" id="<?php echo esc_attr( $id ) . '-text'; ?>" class="<?php echo esc_attr( $class ) . '_text'; ?>" name="<?php echo esc_attr( $name ) . '_text'; ?>" value="<?php echo esc_attr( $value ); ?>"
<?php echo AdminForm::buildAttributes( $attr ); // PHPCS: XSS ok; ?> />
<?php endif; ?>