Layers_Customize_Color_Control

The Layers Layers Customize Color Control class.

Defined (1)

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

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