| @@ -1,28 +1,28 @@ | ||
| 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 | <label> |
| 8 | 8 | <div class="betterdocs-customizer-toggle"> |
| 9 | 9 | <span class="customize-control-title betterdocs-customize-control-title betterdocs-customizer-toggle-title"> |
| 10 | - <?php echo esc_html( $control->label ); ?> | |
| 11 | - </span> | |
| 10 | + <?php echo esc_html( $control->label ); ?> | |
| 11 | + </span> | |
| 12 | 12 | <input |
| 13 | - type="checkbox" | |
| 14 | - id="cb<?php echo $control->instance_number ?>" | |
| 15 | - data-default-val="<?php echo $control->settings['default']->value(); ?>" | |
| 16 | - class="tgl tgl-<?php echo $control->type; ?>" | |
| 17 | - value="<?php esc_attr_e( $control->value() );?>" | |
| 18 | - <?php | |
| 19 | - $control->link(); | |
| 20 | - checked( $control->value() ); | |
| 21 | - ?> | |
| 22 | - /> | |
| 23 | - <label for="cb<?php echo $control->instance_number ?>" class="tgl-btn"></label> | |
| 13 | + type="checkbox" | |
| 14 | + id="cb<?php echo esc_attr( $control->instance_number ); ?>" | |
| 15 | + data-default-val="<?php echo esc_attr( $control->settings['default']->value() ); ?>" | |
| 16 | + class="tgl tgl-<?php echo esc_attr( $control->type ); ?>" | |
| 17 | + value="<?php echo esc_attr( $control->value() ); ?>" | |
| 18 | + <?php | |
| 19 | + $control->link(); | |
| 20 | + checked( $control->value() ); | |
| 21 | + ?> | |
| 22 | + /> | |
| 23 | + <label for="cb<?php echo esc_attr( $control->instance_number ); ?>" class="tgl-btn"></label> | |
| 24 | 24 | </div> |
| 25 | - <?php if ( ! empty( $control->description ) ): ?> | |
| 26 | - <span class="description customize-control-description"><?php echo $control->description; ?></span> | |
| 27 | - <?php endif;?> | |
| 25 | + <?php if ( ! empty( $control->description ) ) : ?> | |
| 26 | + <span class="description customize-control-description"><?php echo esc_html( $control->description ); ?></span> | |
| 27 | + <?php endif; ?> | |
| 28 | 28 | </label> |