Layers_Customize_TRBL_Control

The Layers Layers Customize TRBL Control class.

Defined (1)

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

/core/customizer/controls/trbl.php  
  1. class Layers_Customize_TRBL_Control extends Layers_Customize_Control { 
  2.  
  3. public $type = 'layers-trbl-fields'; 
  4.  
  5. public $fields = array(); 
  6.  
  7. public function render_content() { 
  8.  
  9. $form_elements = new Layers_Form_Elements(); 
  10.  
  11. $values = false; ?> 
  12.  
  13. <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(); ?> > 
  14.  
  15. <?php $this->render_history_actions(); ?> 
  16.  
  17. <?php if ( '' != $this->heading_divider ) { ?> 
  18. <?php $this->render_heading_divider( $this->heading_divider ); ?> 
  19. <?php } ?> 
  20.  
  21. <?php if ( '' != $this->label ) { ?> 
  22. <span class="customize-control-title"><?php echo $this->label; ?></span> 
  23. <?php } ?> 
  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. <?php if ( '' != $this->subtitle ) : ?> 
  32. <label class="layers-form-row"><?php echo $this->subtitle; ?></label> 
  33. <?php endif; ?> 
  34.  
  35. <div class="layers-form-item <?php echo ( $this->colspan ) ? esc_attr( "layers-column-flush layers-span-{$this->colspan}" ) : '' ?>"> 
  36. <?php echo $form_elements->input( 
  37. array( 
  38. 'type' => 'trbl-fields',  
  39. 'name' => '',  
  40. 'id' => $this->id,  
  41. 'value' => array( 
  42. 'top' => get_option( "{$this->id}-top" ),  
  43. 'right' => get_option( "{$this->id}-right" ),  
  44. 'bottom' => get_option( "{$this->id}-bottom" ),  
  45. 'left' => get_option( "{$this->id}-left" ),  
  46. ),  
  47. 'fields' => $this->fields,  
  48. ); ?> 
  49. </div> 
  50.  
  51. </div> 
  52. <?php