File: /home/slyfwmm/dallavitae/OLD_WP/wp-content/themes/layerswp/core/customizer/controls/checkbox.php
<?php
/**
* Checkbox
*
* This file is used to register and display the custom Layers Checkbox.
*
* @package Layers
* @since Layers 1.0.0
*/
if( !class_exists( 'Layers_Customize_Checkbox_Control' ) ) {
class Layers_Customize_Checkbox_Control extends Layers_Customize_Control {
public $type = 'layers-checkbox';
public function render_content() {
$form_elements = new Layers_Form_Elements();
$values = false; ?>
<div id="layers-customize-control-<?php echo esc_attr( $this->id ); ?>" class="l_option-customize-control l_option-customize-control-<?php echo esc_attr( str_replace( 'layers-', '', $this->type ) ); ?> <?php echo esc_attr( $this->class ); ?>" <?php echo $this->get_linked_data(); ?> >
<?php do_action( 'layers-control-inside', $this ); ?>
<?php if ( '' != $this->heading_divider ) { ?>
<?php $this->render_heading_divider( $this->heading_divider ); ?>
<?php } ?>
<div class="layers-form-item layers-checkbox-wrapper">
<?php echo $form_elements->input(
array(
'type' => 'checkbox',
'label' => $this->label,
'name' => '',
'id' => $this->id,
'data' => $this->get_customize_data(),
)
); ?>
</div>
<?php if ( '' != $this->description ) : ?>
<div class="description customize-control-description">
<?php echo $this->description; ?>
</div>
<?php endif; ?>
</div>
</div>
<?php
}
}
}