PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.4.0
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.4.0
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 3.5.2 All 199 releases
betterdocs / views / admin / customizer / controls / toggle.php

toggle.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 3.4.0, at views/admin/customizer/controls/toggle.php

29 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // If this file is called directly, abort.
3 if ( ! defined( 'WPINC' ) ) {
4 die;
5 }
6 ?>
7 <label>
8 <div class="betterdocs-customizer-toggle">
9 <span class="customize-control-title betterdocs-customize-control-title betterdocs-customizer-toggle-title">
10 <?php echo esc_html( $control->label ); ?>
11 </span>
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>
24 </div>
25 <?php if ( ! empty( $control->description ) ): ?>
26 <span class="description customize-control-description"><?php echo $control->description; ?></span>
27 <?php endif;?>
28 </label>
29