# floating-button/5.0/admin/fields/input.php

Floating Button – Easily Create Sticky, Fixed &amp; Floating Buttons, version 5.0. 26 lines.

- Page: https://pluginprobe.com/plugins/floating-button/5.0/code/admin/fields/input.php
- Raw: https://pluginprobe.com/plugins/floating-button/5.0/raw/admin/fields/input.php
- Modified: 2021-09-20T13:38:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/floating-button/5.0/code/admin/fields/input.php#L10-L20`.

```php
<?php
/**
 * Template for field input
 *
 * @package     Wow_Plugin
 * @copyright   Copyright (c) 2018, Dmytro Lobov
 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
 * @since       1.0
 */

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

$option = '';
if ( is_array( $options ) ) {
	foreach ( $options as $key => $value ) {
		$option .= ' ' . $key . '="' . $value . '"';
	}
}
$id = ( $id === null ) ? '' : ' id="' . $id . '"';
?>
<div class="control is-expanded">
    <input type="<?php echo esc_attr( $type ); ?>" name="<?php echo esc_attr( $name ); ?>"
           value="<?php echo esc_attr( $val ); ?>" <?php echo wp_kses_post( $id . $func . $option . $class ); ?>>
</div>
```
