| Server IP : 213.132.222.41 / Your IP : 216.73.216.185 Web Server : Apache System : Linux plesk4.nlhosting.net 6.1.0-52-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.180-1 (2026-08-03) x86_64 User : thecovenant ( 10927) PHP Version : 8.3.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/thecovenant.nl/httpdocs/wp-content/themes/neve/inc/customizer/controls/ |
Upload File : |
<?php
/**
* Customizer Heading.
*
* @since 1.0.0
* @package Neve\Customizer\Controls
*/
namespace Neve\Customizer\Controls;
/**
* Checkbox control
*/
class Checkbox extends \WP_Customize_Control {
/**
* The control type.
*
* @access public
* @var string
*/
public $type = 'checkbox-toggle';
/**
* Send to _js json.
*
* @return array
*/
public function json() {
$json = parent::json();
$json['id'] = $this->id;
$json['link'] = $this->get_link();
return $json;
}
/**
* Render control.
*/
protected function content_template() {
?>
<div class="checkbox-toggle-wrap">
<span>{{data.label}}</span>
<input {{{data.link}}} type="checkbox" id="{{data.id}}"/><label for="{{data.id}}"></label> <?php // phpcs:ignore WordPressVIPMinimum.Security.Mustache.OutputNotation ?>
</div>
<?php
}
}