| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for field checkbox |
| 4 |
* |
| 5 |
* @package Wow_Plugin |
| 6 |
* @copyright Copyright (c) 2018, Dmytro Lobov |
| 7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 8 |
* @since 1.0 |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit; |
| 13 |
} |
| 14 |
|
| 15 |
$select = ! empty( $val ) ? ' checked="checked"' : ''; |
| 16 |
$id = ( $id === null ) ? '' : ' id="' . esc_attr( $id ) . '"'; |
| 17 |
|
| 18 |
?> |
| 19 |
<input type="checkbox" <?php echo wp_kses_post( $id . $select . $class ); ?>> |
| 20 |
<input type="hidden" name="<?php echo esc_attr( $name ); ?>" value=""> |