Layers_Customize_CSS_Control

The Layers Layers Customize CSS Control class.

Defined (1)

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

/core/customizer/controls/css.php  
  1. class Layers_Customize_CSS_Control extends Layers_Customize_Control { 
  2.  
  3. public $type = 'layers-css'; 
  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. <?php if ( '' != $this->label ) { ?> 
  20. <span class="customize-control-title"><?php echo $this->label; ?></span> 
  21. <?php } ?> 
  22.  
  23. <?php if ( '' != $this->description ) : ?> 
  24. <div class="description customize-control-description"> 
  25. <?php echo esc_html( $this->description ); ?> 
  26. </div> 
  27. <?php endif; ?> 
  28.  
  29. <div class="layers-form-item layers-css-wrapper"> 
  30. <?php echo $form_elements->input( 
  31. array( 
  32. 'type' => 'textarea',  
  33. 'label' => $this->label,  
  34. 'name' => '',  
  35. 'id' => $this->id,  
  36. 'data' => $this->get_customize_data(),  
  37. 'placeholder' => $this->placeholder,  
  38. ); ?> 
  39. </div> 
  40.  
  41. </div> 
  42. <?php