<?php
if(!defined('ABSPATH')) exit;
$bizcalendar_web_enableNewsletterSMS = get_option('setrio_bizcal_enable_newsletter_sms', 1);
$bizcalendar_web_key = basename(__FILE__, '.php');
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
$args['key'] = $bizcalendar_web_key;

if($bizcalendar_web_enableNewsletterSMS){
	$bizcalendar_web_lblNewsletterSMS = setrio_bizcal_message('lblNewsletterSMS');
		
	$bizcalendar_web_lblNewsletterSMS = preg_replace("/(<a)(\s)/",'\1 v-on:click.stop="1" \2', $bizcalendar_web_lblNewsletterSMS);
	// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
	$args['wargs'] = array_replace((isset($args['wargs']) ? $args['wargs'] : array()), array(
		'label' => $bizcalendar_web_lblNewsletterSMS,
	));
	setrio_bizcal_get_template_part('vue/part/checkbox', $args);
} else {
	setrio_bizcal_get_template_part('vue/part/input', $args);
}