PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.2.0
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.2.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 / includes / Admin / Customizer / Controls / RadioImageControl.php

RadioImageControl.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.2.0, at includes/Admin/Customizer/Controls/RadioImageControl.php

40 lines 765 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPDeveloper\BetterDocs\Admin\Customizer\Controls;
4
5 use WP_Customize_Control;
6
7 class RadioImageControl extends WP_Customize_Control {
8 /**
9 * Control name.
10 * @var string
11 */
12 public $type = 'betterdocs-radio-image';
13
14 /**
15 * Enqueue scripts/styles.
16 *
17 * @since 1.0.0
18 */
19 public function enqueue() {
20 wp_enqueue_script( 'jquery-ui-button' );
21 betterdocs()->assets->enqueue(
22 'betterdocs-customizer-radio-image-select',
23 'customizer/css/customizer-radio-image-select.css'
24 );
25 }
26
27 /**
28 * Render the control's content.
29 *
30 * @version 1.0.0
31 */
32 public function render_content() {
33 if ( empty( $this->choices ) ) {
34 return;
35 }
36
37 betterdocs()->views->get( 'admin/customizer/controls/radio-image', [ 'control' => $this ] );
38 }
39 }
40