| @@ -1,40 +1,40 @@ | ||
| 1 | 1 | <?php |
| 2 | - // If this file is called directly, abort. | |
| 3 | - if ( ! defined( 'WPINC' ) ) { | |
| 4 | - die; | |
| 5 | - } | |
| 2 | + // If this file is called directly, abort. | |
| 3 | +if ( ! defined( 'WPINC' ) ) { | |
| 4 | + die; | |
| 5 | +} | |
| 6 | 6 | ?> |
| 7 | 7 | |
| 8 | -<?php if ( ! empty( $control->label ) ): ?> | |
| 9 | - <span class="customize-control-title betterdocs-customize-control-title"> | |
| 10 | - <?php echo esc_html( $control->label ); ?> | |
| 11 | - </span> | |
| 12 | - <a | |
| 13 | - href="#" | |
| 14 | - title="<?php echo __( 'Reset', 'betterdocs' ) ?>" | |
| 15 | - class="<?php echo esc_html( $control->type ); ?> betterdocs-customizer-reset"> | |
| 16 | - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="20px"><path d="M 25 2 C 12.321124 2 2 12.321124 2 25 C 2 37.678876 12.321124 48 25 48 C 37.678876 48 48 37.678876 48 25 A 2.0002 2.0002 0 1 0 44 25 C 44 35.517124 35.517124 44 25 44 C 14.482876 44 6 35.517124 6 25 C 6 14.482876 14.482876 6 25 6 C 30.475799 6 35.391893 8.3080175 38.855469 12 L 35 12 A 2.0002 2.0002 0 1 0 35 16 L 46 16 L 46 5 A 2.0002 2.0002 0 0 0 43.970703 2.9726562 A 2.0002 2.0002 0 0 0 42 5 L 42 9.5253906 C 37.79052 4.9067015 31.727675 2 25 2 z"></path></svg> | |
| 17 | - </a> | |
| 18 | -<?php endif;?> | |
| 19 | - <div | |
| 20 | - class="betterdcos-range-slider" | |
| 21 | - data-default-val="<?php echo $control->settings['default']->value(); ?>" | |
| 22 | - style="width:100%; display:flex;flex-direction: row;justify-content: flex-start;"> | |
| 8 | +<?php if ( ! empty( $control->label ) ) : ?> | |
| 9 | + <span class="customize-control-title betterdocs-customize-control-title"> | |
| 10 | + <?php echo esc_html( $control->label ); ?> | |
| 11 | + </span> | |
| 12 | + <a | |
| 13 | + href="#" | |
| 14 | + title="<?php echo esc_html__( 'Reset', 'betterdocs' ); ?>" | |
| 15 | + class="<?php echo esc_html( $control->type ); ?> betterdocs-customizer-reset"> | |
| 16 | + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="20px"><path d="M 25 2 C 12.321124 2 2 12.321124 2 25 C 2 37.678876 12.321124 48 25 48 C 37.678876 48 48 37.678876 48 25 A 2.0002 2.0002 0 1 0 44 25 C 44 35.517124 35.517124 44 25 44 C 14.482876 44 6 35.517124 6 25 C 6 14.482876 14.482876 6 25 6 C 30.475799 6 35.391893 8.3080175 38.855469 12 L 35 12 A 2.0002 2.0002 0 1 0 35 16 L 46 16 L 46 5 A 2.0002 2.0002 0 0 0 43.970703 2.9726562 A 2.0002 2.0002 0 0 0 42 5 L 42 9.5253906 C 37.79052 4.9067015 31.727675 2 25 2 z"></path></svg> | |
| 17 | + </a> | |
| 18 | +<?php endif; ?> | |
| 19 | + <div | |
| 20 | + class="betterdcos-range-slider" | |
| 21 | + data-default-val="<?php echo esc_attr( $control->settings['default']->value() ); ?>" | |
| 22 | + style="width:100%; display:flex;flex-direction: row;justify-content: flex-start;"> | |
| 23 | 23 | <span style="width:100%; flex: 1 0 0; vertical-align: middle;"> |
| 24 | - <input | |
| 25 | - type="range" | |
| 26 | - class="betterdcos-range-slider__range" | |
| 27 | - value="<?php esc_attr_e( $control->value() );?>" | |
| 28 | - <?php | |
| 29 | - $control->input_attrs(); | |
| 30 | - $control->link(); | |
| 31 | - ?> | |
| 32 | - /> | |
| 33 | - <span class="betterdcos-range-slider__value">0</span> | |
| 34 | - </span> | |
| 35 | - </div> | |
| 36 | -<?php if ( ! empty( $control->description ) ): ?> | |
| 37 | - <span class="description customize-control-description"> | |
| 38 | - <?php echo $control->description; ?> | |
| 39 | - </span> | |
| 40 | -<?php endif;?> | |
| 24 | + <input | |
| 25 | + type="range" | |
| 26 | + class="betterdcos-range-slider__range" | |
| 27 | + value="<?php echo esc_attr( $control->value() ); ?>" | |
| 28 | + <?php | |
| 29 | + $control->input_attrs(); | |
| 30 | + $control->link(); | |
| 31 | + ?> | |
| 32 | + /> | |
| 33 | + <span class="betterdcos-range-slider__value">0</span> | |
| 34 | + </span> | |
| 35 | + </div> | |
| 36 | +<?php if ( ! empty( $control->description ) ) : ?> | |
| 37 | + <span class="description customize-control-description"> | |
| 38 | + <?php echo esc_html( $control->description ); ?> | |
| 39 | + </span> | |
| 40 | +<?php endif; ?> | |