# bubble-menu/3.0.4/admin/fields/checkbox.php

Bubble Menu – Floating Button Menu with Sticky Navigation, version 3.0.4. 20 lines.

- Page: https://pluginprobe.com/plugins/bubble-menu/3.0.4/code/admin/fields/checkbox.php
- Raw: https://pluginprobe.com/plugins/bubble-menu/3.0.4/raw/admin/fields/checkbox.php
- Modified: 2023-05-18T16:01:48+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/bubble-menu/3.0.4/code/admin/fields/checkbox.php#L10-L20`.

```php
<?php
/**
 * Template for field checkbox
 *
 * @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;
}

$select = ! empty( $val ) ? ' checked="checked"' : '';
$id     = ( $id === null ) ? '' : ' id="' . esc_attr( $id ) . '"';

?>
<input type="checkbox" <?php echo wp_kses_post( $id . $select . $class ); ?>>
<input type="hidden" name="<?php echo esc_attr( $name ); ?>" value="">
```
