BP_Customizer_Control_Range::render_content()
Render the control.
Description
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; ?> <?php if ( $this->description ) : ?> <span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span> <?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> </li><?php }
Changelog
Version | Description |
---|---|
BuddyPress 2.5.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.