PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.6.1
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.6.1
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 4.6.1, at views/admin/customizer/controls/toggle.php

29 lines 977 B
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 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 </div>
25 <?php if ( ! empty( $control->description ) ) : ?>
26 <span class="description customize-control-description"><?php echo esc_html( $control->description ); ?></span>
27 <?php endif; ?>
28 </label>
29