Layers_Customize_Code_Control

The Layers Layers Customize Code Control class.

Defined (1)

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

/core/customizer/controls/code.php  
  1. class Layers_Customize_Code_Control extends Layers_Customize_Control { 
  2.  
  3. public $type = 'layers-code'; 
  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 $this->description; ?> 
  26. </div> 
  27. <?php endif; ?> 
  28.  
  29. <?php if ( '' != $this->subtitle ) : ?> 
  30. <label class="layers-form-row"><?php echo $this->subtitle; ?></label> 
  31. <?php endif; ?> 
  32.  
  33. <div class="layers-form-item layers-code-wrapper"> 
  34. <?php echo $form_elements->input( 
  35. array( 
  36. 'type' => 'textarea',  
  37. 'label' => $this->label,  
  38. 'name' => '',  
  39. 'id' => $this->id,  
  40. 'data' => $this->get_customize_data(),  
  41. 'placeholder' => $this->placeholder,  
  42. ); ?> 
  43. </div> 
  44.  
  45. </div> 
  46. <?php