HEX
Server: Apache/2
System: Linux bq-e705.pointdnshere.com 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User: wellmix (1103)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/wellmix/public_html/wp-content/plugins/weglot/templates/admin/pages/tabs/support.php
<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$options_available = [
	'active_wc_reload' => [
		'key'         => 'active_wc_reload',
		'label'       => __( '[WooCommerce] : Prevent reload cart', 'weglot' ),
		'description' => __( 'You should only enable this option if you have translation errors on your cart widget.', 'weglot' ),
	],
];


?>

<h3><?php esc_html_e( 'Options for support', 'weglot' ); ?> </h3>
<hr>

<table class="form-table">
	<tbody>
		<?php if ( $this->wc_active_services->is_active() ) : ?>
			<tr valign="top">
				<th scope="row" class="titledesc">
					<label for="<?php echo esc_attr( $options_available['active_wc_reload']['key'] ); ?>">
						<?php echo esc_html( $options_available['active_wc_reload']['label'] ); ?>
					</label>
				</th>
				<td class="forminp forminp-text">
					<input
						name="<?php echo esc_attr( sprintf( '%s[%s]', WEGLOT_SLUG, $options_available['active_wc_reload']['key'] ) ); ?>"
						id="<?php echo esc_attr( $options_available['active_wc_reload']['key'] ); ?>"
						type="checkbox"
						<?php checked( $this->options[ $options_available['active_wc_reload']['key'] ], 1 ); ?>
					>
					<p class="description"><?php echo esc_html( $options_available['active_wc_reload']['description'] ); ?></p>
				</td>
			</tr>
		<?php endif; ?>
	</tbody>
</table>