HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux newsites.squeezer-software.com 6.8.0-90-generic #91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 14:14:30 UTC 2025 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/sites/ileskneiss/wp-content/plugins/learnpress/inc/admin/meta-box/fields/checkbox.php
<?php

if ( ! isset( $value ) ) {
	return;
}

$option_value     = $value['value'];
$visibility_class = array();

if ( isset( $value['show_if_checked'] ) ) {
	$visibility_class[] = 'show_if_' . $value['show_if_checked'];

	if ( 'no' === LP_Settings::get_option( $value['show_if_checked'] ) ) {
		$visibility_class[] = 'lp-option-disabled';
	}
}
?>

<?php if ( ! isset( $value['checkboxgroup'] ) || 'start' === $value['checkboxgroup'] ) : ?>
	<tr class="<?php echo esc_attr( implode( ' ', $visibility_class ) ); ?>">
		<th scope="row" class="titledesc"><?php echo esc_html( $value['title'] ); ?></th>
		<td class="forminp forminp-checkbox">
			<fieldset>
<?php else : ?>
	<fieldset class="<?php echo esc_attr( implode( ' ', $visibility_class ) ); ?>">
<?php endif; ?>

<?php if ( ! empty( $value['title'] ) ) : ?>
	<legend class="screen-reader-text"><span><?php echo esc_html( $value['title'] ); ?></span></legend>
<?php endif; ?>

	<label for="<?php echo esc_attr( $value['id'] ); ?>">
		<input
			name="<?php echo esc_attr( $value['id'] ); ?>"
			id="<?php echo esc_attr( $value['id'] ); ?>"
			type="checkbox"
			class="<?php echo esc_attr( $value['class'] ?? '' ); ?>"
			value="1"
		<?php checked( $option_value, 'yes' ); ?>
		<?php echo implode( ' ', $custom_attributes ?? array() ); ?>
		/> <?php echo wp_kses_post( $description ?? '' ); ?>
	</label> <?php echo wp_kses_post( $tooltip_html ?? '' ); ?>

<?php if ( ! isset( $value['checkboxgroup'] ) || 'end' === $value['checkboxgroup'] ) : ?>
			</fieldset>
		</td>
	</tr>
<?php else : ?>
	</fieldset>
	<?php
endif;