Layers_Customize_Checkbox_Control

The Layers Layers Customize Checkbox Control class.

Defined (1)

The class is defined in the following location(s).

/core/customizer/controls/checkbox.php  
  1. class Layers_Customize_Checkbox_Control extends Layers_Customize_Control { 
  2.  
  3. public $type = 'layers-checkbox'; 
  4.  
  5. public function render_content() { 
  6.  
  7. $form_elements = new Layers_Form_Elements(); 
  8.  
  9. $values = false; ?> 
  10.  
  11. <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(); ?> > 
  12.  
  13. <?php $this->render_history_actions(); ?> 
  14.  
  15. <?php if ( '' != $this->heading_divider ) { ?> 
  16. <?php $this->render_heading_divider( $this->heading_divider ); ?> 
  17. <?php } ?> 
  18.  
  19. <div class="layers-form-item layers-checkbox-wrapper"> 
  20. <?php echo $form_elements->input( 
  21. array( 
  22. 'type' => 'checkbox',  
  23. 'label' => $this->label,  
  24. 'name' => '',  
  25. 'id' => $this->id,  
  26. 'data' => $this->get_customize_data(),  
  27. ); ?> 
  28. </div> 
  29.  
  30. <?php if ( '' != $this->description ) : ?> 
  31. <div class="description customize-control-description"> 
  32. <?php echo $this->description; ?> 
  33. </div> 
  34. <?php endif; ?> 
  35.  
  36. </div> 
  37.  
  38. </div> 
  39. <?php