Layers_Customize_Select_Control

The Layers Layers Customize Select Control class.

Defined (1)

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

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