<?php
declare(strict_types=1);
if ( ! defined( 'ABSPATH' ) ) { exit; }

class WTE_Toggle_Control extends \WP_Customize_Control {
	public $type = 'wte-toggle';
	public function render_content(): void { ?>
		<label class="wte-toggle-control">
			<div class="wte-toggle-control__row">
				<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
				<span class="wte-toggle">
					<input type="checkbox" class="wte-toggle__input" value="1" <?php $this->link(); ?> <?php checked( $this->value() ); ?>>
					<span class="wte-toggle__track"><span class="wte-toggle__thumb"></span></span>
				</span>
			</div>
		</label>
	<?php }
}
