BP_Customizer_Control_Range::render_content()
Render the control.
Description Description
Source Source
File: bp-core/classes/class-bp-customizer-control-range.php
public function render_content() { $id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) ); $class = 'customize-control customize-control-' . $this->type; ?><li id="<?php echo esc_attr( $id ); ?>" class="<?php echo esc_attr( $class ); ?>"> <?php if ( $this->label ) : ?> <label for="<?php echo esc_attr( "{$id}-range" ); ?>"> <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> </label> <?php endif; ?> <input type="range" id="<?php echo esc_attr( "{$id}-range" ); ?>" <?php $this->link(); $this->input_attrs(); ?> value="<?php echo esc_attr( $this->value() ); ?>" /> <output for="<?php echo esc_attr( "{$id}-range" ); ?>"><?php echo esc_html( $this->value() ); ?></output> <?php if ( $this->description ) : ?> <p><span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span></p> <?php endif; ?> </li><?php }
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |