| 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 |
|