<?php
/**
 * @var $id string
 * @var $val string
 * @var $slug string
 */
$class = '';
if (strpos($id, 'sync') !== false) {
    $class = 'sync-checkbox-group';
}
?>
<input type="checkbox" class="<?= $class ?>" id="<?= $slug ?>_<?= $id ?>" <?= checked('on', esc_attr($val)) ?> name="<?= $slug ?>[<?= $id ?>]" />
<?php if (!empty($description)) { ?>
    <p class="description" id="<?= $id ?>-description"><?= $description ?></p>
<?php } ?>

