PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.8.9
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.8.9
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
betterdocs / views / admin / customizer / controls / alpha-color.php

alpha-color.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 3.8.9, at views/admin/customizer/controls/alpha-color.php

37 lines 1.3 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 <div class="betterdocs-alpha-color-picker">
8 <?php
9 // Output the label and description if they were passed in.
10 if ( isset( $control->label ) && '' !== $control->label ) {
11 echo '<span class="customize-control-title betterdocs-customize-control-title">' . esc_html( $control->label ) . '</span>';
12 }
13 if ( isset( $control->description ) && '' !== $control->description ) {
14 echo '<span class="description customize-control-description">' . esc_html( $control->label ) . '</span>';
15 }
16
17 // Process the palette
18 if ( is_array( $control->palette ) ) {
19 $palette = implode( '|', $control->palette );
20 } else {
21 // Default to true.
22 $palette = ( false === $control->palette || 'false' === $control->palette ) ? 'false' : 'true';
23 }
24 // Support passing show_opacity as string or boolean. Default to true.
25 $show_opacity = ( false === $control->show_opacity || 'false' === $control->show_opacity ) ? 'false' : 'true';
26 // Begin the output.
27 ?>
28 <input
29 type="text"
30 class="betterdocs-alpha-color-control"
31 data-show-opacity="<?php echo esc_attr( $show_opacity ); ?>"
32 data-palette="<?php echo esc_attr( $palette ); ?>"
33 data-default-color="<?php echo esc_attr( $control->settings['default']->default ); ?>"
34 <?php esc_attr( $control->link() ); ?>
35 />
36 </div>
37