Layers_Customize_RTE_Control

The Layers Layers Customize RTE Control class.

Defined (1)

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

/core/customizer/controls/rte.php  
  1. class Layers_Customize_RTE_Control extends Layers_Customize_Control { 
  2.  
  3. public $type = 'layers-rte'; 
  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"> 
  34. <?php echo $form_elements->input( 
  35. array( 
  36. 'type' => 'rte',  
  37. 'label' => ( isset( $this->label ) ? $this->label : '' ),  
  38. 'name' => '' ,  
  39. 'id' => $this->id,  
  40. 'value' => stripslashes( $this->value() ),  
  41. 'data' => $this->get_customize_data(),  
  42. 'placeholder' => $this->placeholder,  
  43. ); ?> 
  44. </div> 
  45.  
  46. </div> 
  47. <?php