PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.2
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.2
4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 All 200 releases
← All changes | views/admin/customizer/controls/toggle.php +20 -20 3.4.04.9.2 View file →
@@ -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>