Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
yith-woocommerce-compare
/
plugin-fw
/
templates
/
fields
:
checkbox.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Template for displaying the checkbox field * * @var array $field The field. * @package YITH\PluginFramework\Templates\Fields */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. list ( $field_id, $name, $class, $std, $value, $data, $custom_attributes, $desc_inline ) = yith_plugin_fw_extract( $field, 'id', 'name', 'class', 'std', 'value', 'data', 'custom_attributes', 'desc-inline' ); ?> <input type="checkbox" id="<?php echo esc_attr( $field_id ); ?>" name="<?php echo esc_attr( $name ); ?>" value="1" class="<?php echo ! empty( $class ) ? esc_attr( $class ) : ''; ?>" <?php if ( isset( $std ) ) : ?> data-std="<?php echo esc_attr( $std ); ?>" <?php endif; ?> <?php checked( true, yith_plugin_fw_is_true( $value ) ); ?> <?php yith_plugin_fw_html_attributes_to_string( $custom_attributes, true ); ?> <?php yith_plugin_fw_html_data_to_string( $data, true ); ?> /> <?php if ( isset( $desc_inline ) ) : ?> <span class='description inline'><?php echo wp_kses_post( $desc_inline ); ?></span> <?php endif; ?>