Checkbox_Toggle.php
35 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Customizer Control: toggle. |
| 4 | * |
| 5 | * @package kirki-framework/checkbox |
| 6 | * @copyright Copyright (c) 2023, Themeum |
| 7 | * @license https://opensource.org/licenses/MIT |
| 8 | * @since 1.0 |
| 9 | */ |
| 10 | |
| 11 | namespace Kirki\Control; |
| 12 | |
| 13 | // Exit if accessed directly. |
| 14 | if ( ! defined( 'ABSPATH' ) ) { |
| 15 | exit; |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * Switch control (modified checkbox). |
| 20 | * |
| 21 | * @since 1.0 |
| 22 | */ |
| 23 | class Checkbox_Toggle extends Checkbox_Switch { |
| 24 | |
| 25 | /** |
| 26 | * The control type. |
| 27 | * |
| 28 | * @access public |
| 29 | * @since 1.0 |
| 30 | * @var string |
| 31 | */ |
| 32 | public $type = 'kirki-toggle'; |
| 33 | |
| 34 | } |
| 35 |