: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
/* Exit if accessed directly */
if ( ! defined( 'ABSPATH' ) ) {
use sgpb\PopupBuilderActivePackage;
$defaultData = \SGPBConfigDataHelper::defaultData();
if ($popupTypeObj->getOptionValue('sgpb-schedule-status')) {
$conditionsCanBeUsed = PopupBuilderActivePackage::canUseSection('popupOtherConditionsSection');
<div class="sgpb-wrapper sgpb-position-relative" onclick="window.open('<?php echo esc_url(SG_POPUP_SCHEDULING_URL);?>', '_blank')">
<div class="formItem sgpb-padding-20 sgpb-option-disable">
<span class="formItem__title sgpb-margin-right-20"><?php esc_html_e('Schedule', 'popup-builder'); ?>:</span>
<div class="sgpb-onOffSwitch">
<input type="checkbox" id="schedule-status" class="sgpb-onOffSwitch-checkbox" disabled name="sgpb-schedule-status" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-schedule-status')); ?>>
<label class="sgpb-onOffSwitch__label" for="schedule-status">
<span class="sgpb-onOffSwitch-inner"></span>
<span class="sgpb-onOffSwitch-switch"></span>
<div class="question-mark">B</div>
<span class="formItem__title sgpb-margin-right-20"><?php esc_html_e('Show popup in date range', 'popup-builder'); ?>:</span>
<div class="sgpb-onOffSwitch">
<input type="checkbox" name="sgpb-popup-timer-status" id="sgpb-popup-timer-status" disabled class="sgpb-onOffSwitch-checkbox" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-popup-timer-status'));?>>
<label class="sgpb-onOffSwitch__label" for="sgpb-popup-timer-status">
<span class="sgpb-onOffSwitch-inner"></span>
<span class="sgpb-onOffSwitch-switch"></span>
<div class="question-mark">B</div>
<?php if (!$conditionsCanBeUsed): ?>
<div class="sgpb-unlock-options">
<div class="sgpb-unlock-options__icon">
<img src="<?php echo esc_url(SG_POPUP_PUBLIC_URL.'icons/time-is-money.svg');?>" alt="Time icon" width="45" height="45" />
<span class="sgpb-unlock-options__title"><?php esc_html_e('Unlock Option', 'popup-builder'); ?></span>
#options-otherConditionsMetaBoxView .sgpb-option-disable {
#options-otherConditionsMetaBoxView .sgpb-unlock-options {
.rtl #options-otherConditionsMetaBoxView .sgpb-unlock-options {