PluginProbe
Notibar – Notification Bar for WordPress / trunk
Notibar – Notification Bar for WordPress vtrunk
3.2.2 3.2.1.1 3.2.1 3.1.5 3.1.4 3.1.1 3.1.0 trunk 1.9.2 1.9.3 2.0 2.1.1 2.1.4 2.1.5 2.1.6 2.1.8 2.1.9
notibar / includes / NotificationBar / WpCustomControlColorText.php

WpCustomControlColorText.php in Notibar – Notification Bar for WordPress trunk, at includes/NotificationBar/WpCustomControlColorText.php

35 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace NjtNotificationBar\NotificationBar;
3
4 defined('ABSPATH') || exit;
5
6 class WpCustomControlColorText extends \WP_Customize_Control
7 {
8 public $type = 'njtColorText';
9 public function render_content() {
10 ?>
11 <div class="simple-notice-custom-control">
12 <?php if( !empty( $this->label ) ) { ?>
13 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
14 <span id="nj_color_select_text">
15 <div class="wp-picker-container wp-picker-active nj_color_select_picker">
16 <button type="button" class="button nj_color_button_select_bg wp-color-result wp-picker-open" aria-expanded="true" style="<?php echo esc_html('background-color:'.$this->value()); ?>"><span class="nj-color-result-text wp-color-result-text"><?php echo esc_html__('Select Color', 'notibar');?></span></button>
17 <span class="wp-picker-input-wrap nj_color_display_picker njt_nofi_none">
18 <label class="nj_color_display_color">
19 <span class="screen-reader-text"><?php echo esc_html( $this->label ); ?></span>
20 <input id="_customize-input-njt_nofi_text_color" class="njt_nofi_dp_none nj-color-wp-color-picker wp-color-picker" type="text" value="<?php echo esc_html($this->value()); ?>" data-default="<?php echo esc_html($this->value()); ?>" data-customize-setting-link="njt_nofi_text_color">
21 </label>
22 <input type="button" class="button button-small nj_color_button_select_default wp-picker-default" value="<?php echo esc_html__('Default', 'notibar');?>" aria-label="Select default color" />
23 </span>
24 </div>
25 </span>
26 <?php } ?>
27 <?php if( !empty( $this->description ) ) { ?>
28 <span class="customize-control-description"><?php echo wp_kses_post( $this->description ); ?></span>
29 <?php } ?>
30 </div>
31 <?php
32 }
33 }
34
35