Redux_Customizer_Control

The evolve Redux Customizer Control class.

Defined (1)

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

/library/admin/redux-framework/inc/extensions/customizer/inc/customizer_control.php  
  1. class Redux_Customizer_Control extends WP_Customize_Control { 
  2.  
  3. public function render() { 
  4. $this->redux_id = str_replace( 'customize-control-', '', 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) ) ); 
  5. $class = 'customize-control redux-group-tab redux-field customize-control-' . $this->type; 
  6. $opt_name = explode( '[', $this->id ); 
  7. $opt_name = $opt_name[0]; 
  8. ?> 
  9. <li id="<?php echo esc_attr( $this->redux_id ); ?>" class="<?php echo esc_attr( $class ); ?>"> 
  10. <?php if ( $this->type != "repeater" ): ?> 
  11. <input type="hidden" 
  12. data-id="<?php echo esc_attr( $this->id ); ?>" 
  13. data-key="<?php echo str_replace( $opt_name . '-', '', $this->redux_id ); ?>" 
  14. class="redux-customizer-input" 
  15. id="customizer_control_id_<?php echo esc_attr( $this->redux_id ); ?>" <?php echo esc_url( $this->link() ) ?> 
  16. value=""/> 
  17. <?php endif; ?> 
  18. <?php $this->render_content(); ?> 
  19. </li> 
  20. <?php 
  21.  
  22.  
  23. public function render_content() { 
  24. do_action( 'redux/advanced_customizer/control/render/' . $this->redux_id, $this ); 
  25.  
  26. public function label() { 
  27. // The label has already been sanitized in the Fields class, no need to re-sanitize it. 
  28. echo $this->label; 
  29.  
  30. public function description() { 
  31. if ( ! empty( $this->description ) ) { 
  32. // The description has already been sanitized in the Fields class, no need to re-sanitize it. 
  33. echo '<span class="description customize-control-description">' . $this->description . '</span>'; 
  34.  
  35. public function title() { 
  36. echo '<span class="customize-control-title">'; 
  37. $this->label(); 
  38. $this->description(); 
  39. echo '</span>';