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 / WpCustomControlHandleButtonMobile.php

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

24 lines 968 B
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 WpCustomControlHandleButtonMobile extends \WP_Customize_Control
7 {
8 public $type = 'njtHandleButtonMobile';
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 <label class="njt-handle-button-mobile-switch njt-nofi-button-switch" for="_customize-input-njt_nofi_handle_button_mobile">
15 <input id="_customize-input-njt_nofi_handle_button_mobile" name="_customize-input-njt_nofi_handle_button_mobile" type="checkbox" <?php if($this->value() == 1) echo('checked')?> data-customize-setting-link="njt_nofi_handle_button_mobile">
16 <div class="slider round"></div>
17 </label>
18 <?php } ?>
19 </div>
20 <?php
21 }
22 }
23
24