Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/popup-bu.../public/views
File: closeSettingsView.php
<?php
[0] Fix | Delete
/* Exit if accessed directly */
[1] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[2] Fix | Delete
exit;
[3] Fix | Delete
}
[4] Fix | Delete
use sgpb\AdminHelper;
[5] Fix | Delete
use sgpb\PopupBuilderActivePackage;
[6] Fix | Delete
[7] Fix | Delete
$defaultData = SGPBConfigDataHelper::defaultData();
[8] Fix | Delete
$removedOptions = $popupTypeObj->getRemoveOptions();
[9] Fix | Delete
$autoClose = PopupBuilderActivePackage::canUseOption('sgpb-auto-close');
[10] Fix | Delete
$closeAfterPageScroll = PopupBuilderActivePackage::canUseOption('sgpb-close-after-page-scroll');
[11] Fix | Delete
$closeButtonPosition = AdminHelper::themeRelatedSettings(
[12] Fix | Delete
$popupTypeObj->getOptionValue('sgpb-post-id'),
[13] Fix | Delete
$popupTypeObj->getOptionValue('sgpb-close-button-position'),
[14] Fix | Delete
$popupTypeObj->getOptionValue('sgpb-popup-themes')
[15] Fix | Delete
);
[16] Fix | Delete
[17] Fix | Delete
$hideTopPosition = '';
[18] Fix | Delete
if($closeButtonPosition == 'bottomRight' || $closeButtonPosition == 'bottomLeft') {
[19] Fix | Delete
$hideTopPosition = ' sgpb-display-none';
[20] Fix | Delete
}
[21] Fix | Delete
$hideBottomPosition = '';
[22] Fix | Delete
if($closeButtonPosition == 'topRight' || $closeButtonPosition == 'topLeft') {
[23] Fix | Delete
$hideBottomPosition = ' sgpb-display-none';
[24] Fix | Delete
}
[25] Fix | Delete
$hideRightPosition = '';
[26] Fix | Delete
if($closeButtonPosition == 'topLeft' || $closeButtonPosition == 'bottomLeft') {
[27] Fix | Delete
$hideRightPosition = ' sgpb-display-none';
[28] Fix | Delete
}
[29] Fix | Delete
$hideLeftPosition = '';
[30] Fix | Delete
if($closeButtonPosition == 'topRight' || $closeButtonPosition == 'bottomRight') {
[31] Fix | Delete
$hideLeftPosition = ' sgpb-display-none';
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
$defaultCloseButtonPositions = $defaultData['closeButtonPositions'];
[35] Fix | Delete
if($popupTypeObj->getOptionValue('sgpb-popup-themes') == 'sgpb-theme-1' ||
[36] Fix | Delete
$popupTypeObj->getOptionValue('sgpb-popup-themes') == 'sgpb-theme-4' ||
[37] Fix | Delete
$popupTypeObj->getOptionValue('sgpb-popup-themes') == 'sgpb-theme-5') {
[38] Fix | Delete
$defaultCloseButtonPositions = $defaultData['closeButtonPositionsFirstTheme'];
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
$borderRadiusType = $popupTypeObj->getOptionValue('sgpb-border-radius-type');
[42] Fix | Delete
if(!$popupTypeObj->getOptionValue('sgpb-border-radius-type')) {
[43] Fix | Delete
$borderRadiusType = '%';
[44] Fix | Delete
}
[45] Fix | Delete
$buttonImage = AdminHelper::defaultButtonImage(
[46] Fix | Delete
$popupTypeObj->getOptionValue('sgpb-popup-themes'),
[47] Fix | Delete
$popupTypeObj->getOptionValue('sgpb-button-image')
[48] Fix | Delete
);
[49] Fix | Delete
if(strpos($buttonImage, 'http') === false) {
[50] Fix | Delete
$buttonImage = 'data:image/png;base64,'.$buttonImage;
[51] Fix | Delete
}
[52] Fix | Delete
$disablePopupClosing = PopupBuilderActivePackage::canUseOption('sgpb-disable-popup-closing');
[53] Fix | Delete
?>
[54] Fix | Delete
<div class="sgpb sgpb-wrapper">
[55] Fix | Delete
<div class="sgpb-close-settings">
[56] Fix | Delete
<?php if(empty($removedOptions['sgpb-esc-key'])) : ?>
[57] Fix | Delete
<div class="formItem">
[58] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Dismiss on "esc" key', 'popup-builder') ?>:</span>
[59] Fix | Delete
<div class="sgpb-onOffSwitch">
[60] Fix | Delete
<input type="checkbox" class="sgpb-onOffSwitch-checkbox" id="esc-key"
[61] Fix | Delete
name="sgpb-esc-key" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-esc-key')); ?>>
[62] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="esc-key">
[63] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[64] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[65] Fix | Delete
</label>
[66] Fix | Delete
</div>
[67] Fix | Delete
<div class="question-mark">B</div>
[68] Fix | Delete
<div class="sgpb-info-wrapper">
[69] Fix | Delete
<span class="infoSelectRepeat samefontStyle sgpb-info-text" style="display: none;">
[70] Fix | Delete
<?php esc_html_e('The popup will close if the "Esc" key of your keyboard is clicked.', 'popup-builder') ?>
[71] Fix | Delete
</span>
[72] Fix | Delete
</div>
[73] Fix | Delete
</div>
[74] Fix | Delete
<?php endif; ?>
[75] Fix | Delete
[76] Fix | Delete
<?php if(empty($removedOptions['sgpb-enable-close-button'])) : ?>
[77] Fix | Delete
<div class="formItem">
[78] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Show "close" button', 'popup-builder') ?>:</span>
[79] Fix | Delete
<div class="sgpb-onOffSwitch onOffswitch_smallMargin">
[80] Fix | Delete
<input class="js-checkbox-accordion sgpb-onOffSwitch-checkbox" type="checkbox" id="close-button"
[81] Fix | Delete
name="sgpb-enable-close-button" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-enable-close-button')); ?>>
[82] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="close-button">
[83] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[84] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[85] Fix | Delete
</label>
[86] Fix | Delete
</div>
[87] Fix | Delete
<div class="question-mark">B</div>
[88] Fix | Delete
<div class="sgpb-info-wrapper">
[89] Fix | Delete
<span class="infoSelectRepeat samefontStyle sgpb-info-text" style="display: none;">
[90] Fix | Delete
<?php esc_html_e('Uncheck this option if you don\'t want to show a "close" button on your popup.', 'popup-builder') ?>
[91] Fix | Delete
</span>
[92] Fix | Delete
</div>
[93] Fix | Delete
</div>
[94] Fix | Delete
<div class="formItem sg-full-width sgpb-padding-20 sgpb-width-100 sgpb-bg-black__opacity-02 sgpb-border-radius-5px">
[95] Fix | Delete
<div class="subForm">
[96] Fix | Delete
<?php if(empty($removedOptions['sgpb-close-button-delay'])) : ?>
[97] Fix | Delete
<div class="subFormItem sgpb-display-flex sgpb-align-item-center sgpb-margin-bottom-20">
[98] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-20"><?php esc_html_e('Button delay', 'popup-builder') ?>:</span>
[99] Fix | Delete
<input type="number" min="0" id="sgpb-close-button-delay" class="subFormItem__input"
[100] Fix | Delete
name="sgpb-close-button-delay"
[101] Fix | Delete
value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-close-button-delay')); ?>"
[102] Fix | Delete
placeholder="e.g.: 1">
[103] Fix | Delete
<div class="question-mark">B</div>
[104] Fix | Delete
<div class="sgpb-info-wrapper">
[105] Fix | Delete
<span class="infoSelectRepeat samefontStyle sgpb-info-text" style="display: none;">
[106] Fix | Delete
<?php esc_html_e('Specify the time (in seconds) after which the close button will appear. The close button will be shown by default without any delay if no time is specified.', 'popup-builder') ?>
[107] Fix | Delete
</span>
[108] Fix | Delete
</div>
[109] Fix | Delete
</div>
[110] Fix | Delete
<?php endif; ?>
[111] Fix | Delete
<?php if(empty($removedOptions['sgpb-close-button-position'])) : ?>
[112] Fix | Delete
<div class="subFormItem sgpb-display-flex sgpb-align-item-center sgpb-margin-bottom-20">
[113] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-20"><?php esc_html_e('Button position', 'popup-builder') ?>:</span>
[114] Fix | Delete
<?php echo wp_kses(AdminHelper::createSelectBox($defaultCloseButtonPositions, $closeButtonPosition, array('name' => 'sgpb-close-button-position',
[115] Fix | Delete
'class' => 'js-sg-select2 sgpb-close-button-position'
[116] Fix | Delete
)), AdminHelper::allowed_html_tags()); ?>
[117] Fix | Delete
</div>
[118] Fix | Delete
[119] Fix | Delete
<div class="formItem formItem">
[120] Fix | Delete
<div class="buttonPosition sgpb-button-position-top-js sgpb-display-flex sgpb-align-item-center sgpb-margin-right-20 <?php echo esc_attr($hideTopPosition); ?>">
[121] Fix | Delete
<span class="formItem__direction sgpb-margin-right-30"><?php esc_html_e('Top', 'popup-builder') ?></span>
[122] Fix | Delete
<div class="inputPxWrapper">
[123] Fix | Delete
<input id="sgpb-button-position-top" class="formItem__input" step="0.5"
[124] Fix | Delete
type="number" name="sgpb-button-position-top"
[125] Fix | Delete
value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-button-position-top')); ?>">
[126] Fix | Delete
<span class="formItem__inputValueType">px</span>
[127] Fix | Delete
</div>
[128] Fix | Delete
</div>
[129] Fix | Delete
<div class="buttonPosition sgpb-button-position-right-js sgpb-display-flex sgpb-align-item-center sgpb-margin-right-20 <?php echo esc_attr($hideRightPosition); ?>">
[130] Fix | Delete
<span class="formItem__direction sgpb-margin-right-20"><?php esc_html_e('Right', 'popup-builder') ?></span>
[131] Fix | Delete
<div class="inputPxWrapper ">
[132] Fix | Delete
<input id="sgpb-button-position-right" class="formItem__input" step="0.5"
[133] Fix | Delete
type="number" name="sgpb-button-position-right"
[134] Fix | Delete
value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-button-position-right')); ?>">
[135] Fix | Delete
<span class="formItem__inputValueType">px</span>
[136] Fix | Delete
</div>
[137] Fix | Delete
</div>
[138] Fix | Delete
<div class="buttonPosition sgpb-button-position-bottom-js sgpb-display-flex sgpb-align-item-center sgpb-margin-right-20 <?php echo esc_attr($hideBottomPosition); ?>">
[139] Fix | Delete
<span class="formItem__direction sgpb-margin-right-20"><?php esc_html_e('Bottom', 'popup-builder') ?></span>
[140] Fix | Delete
<div class="inputPxWrapper">
[141] Fix | Delete
<input id="sgpb-button-position-bottom" class="formItem__input" step="0.5"
[142] Fix | Delete
type="number" name="sgpb-button-position-bottom"
[143] Fix | Delete
value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-button-position-bottom')); ?>">
[144] Fix | Delete
<span class="formItem__inputValueType">px</span>
[145] Fix | Delete
</div>
[146] Fix | Delete
</div>
[147] Fix | Delete
<div class="buttonPosition sgpb-button-position-left-js sgpb-display-flex sgpb-align-item-center sgpb-margin-right-20 <?php echo esc_attr($hideLeftPosition); ?>">
[148] Fix | Delete
<span class="formItem__direction sgpb-margin-right-40"><?php esc_html_e('Left', 'popup-builder') ?></span>
[149] Fix | Delete
<div class="inputPxWrapper">
[150] Fix | Delete
<input id="sgpb-button-position-left" class="formItem__input" step="0.5"
[151] Fix | Delete
type="number" name="sgpb-button-position-left"
[152] Fix | Delete
value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-button-position-left')); ?>">
[153] Fix | Delete
<span class="formItem__inputValueType">px</span>
[154] Fix | Delete
</div>
[155] Fix | Delete
</div>
[156] Fix | Delete
</div>
[157] Fix | Delete
<?php endif; ?>
[158] Fix | Delete
<div class="<?php echo esc_attr(($popupTypeObj->getOptionValue('sgpb-popup-themes') == 'sgpb-theme-4') ? 'sgpb-display-none ' : ''); ?>sgpb-close-button-image-option-wrapper">
[159] Fix | Delete
<div class="subFormItem sgpb-display-flex sgpb-align-item-center sgpb-margin-bottom-20">
[160] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-20"><?php esc_html_e('Button image', 'popup-builder') ?>:</span>
[161] Fix | Delete
<div type="text" class="subFormItem__x sgpb-margin-right-10">
[162] Fix | Delete
<div class="sgpb-show-button-image-container"
[163] Fix | Delete
style="background-image: url(<?php echo esc_url($buttonImage); ?>);">
[164] Fix | Delete
<span class="sgpb-no-image"></span>
[165] Fix | Delete
</div>
[166] Fix | Delete
</div>
[167] Fix | Delete
<div class="easy-icons-wrapper sgpb-display-inline-flex">
[168] Fix | Delete
<div class="icons__item icons_blue sgpb-margin-right-10">
[169] Fix | Delete
<img id="js-button-upload-image-button"
[170] Fix | Delete
src="<?php echo esc_url(SG_POPUP_PUBLIC_URL.'icons/cloud.svg'); ?>"
[171] Fix | Delete
alt="<?php esc_html_e('Change image', 'popup-builder') ?>">
[172] Fix | Delete
</div>
[173] Fix | Delete
<div class="icons__item icons_pink js-sgpb-remove-close-button-image<?php echo esc_attr((!$popupTypeObj->getOptionValue('sgpb-button-image')) ? ' sg-hide' : ''); ?>">
[174] Fix | Delete
<img id="js-button-upload-image-remove-button"
[175] Fix | Delete
src="<?php echo esc_url(SG_POPUP_PUBLIC_URL.'icons/recycle-bin.svg'); ?>"
[176] Fix | Delete
alt="<?php esc_html_e('Remove', 'popup-builder') ?>">
[177] Fix | Delete
</div>
[178] Fix | Delete
<div class="sgpb-button-image-uploader-wrapper">
[179] Fix | Delete
<input class="sg-hide" id="js-button-upload-image" type="text" size="36"
[180] Fix | Delete
name="sgpb-button-image"
[181] Fix | Delete
value="<?php echo (esc_attr($popupTypeObj->getOptionValue('sgpb-button-image'))) ? esc_attr($popupTypeObj->getOptionValue('sgpb-button-image')) : ''; ?>">
[182] Fix | Delete
</div>
[183] Fix | Delete
</div>
[184] Fix | Delete
</div>
[185] Fix | Delete
<div class="formItem_aligne_bottom formItem_itemsCentered">
[186] Fix | Delete
<div class="buttonPosition__wrapper">
[187] Fix | Delete
<div class="buttonPosition sgpb-display-flex sgpb-align-item-center sgpb-margin-bottom-20">
[188] Fix | Delete
<span class="formItem__direction sgpb-margin-right-20"><?php esc_html_e('Width&nbsp;', 'popup-builder') ?></span>
[189] Fix | Delete
<div class="inputPxWrapper">
[190] Fix | Delete
<input class="formItem__input" type="number" min="0"
[191] Fix | Delete
name="sgpb-button-image-width"
[192] Fix | Delete
value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-button-image-width')); ?>"
[193] Fix | Delete
required>
[194] Fix | Delete
<span class="formItem__inputValueType">px</span>
[195] Fix | Delete
</div>
[196] Fix | Delete
</div>
[197] Fix | Delete
<div class="buttonPosition sgpb-display-flex sgpb-align-item-center sgpb-margin-bottom-20">
[198] Fix | Delete
<span class="formItem__direction sgpb-margin-right-20"><?php esc_html_e('Height', 'popup-builder') ?></span>
[199] Fix | Delete
<div class="inputPxWrapper ">
[200] Fix | Delete
<input class="formItem__input" type="number" min="0"
[201] Fix | Delete
name="sgpb-button-image-height"
[202] Fix | Delete
value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-button-image-height')); ?>"
[203] Fix | Delete
required>
[204] Fix | Delete
<span class="formItem__inputValueType">px</span>
[205] Fix | Delete
</div>
[206] Fix | Delete
</div>
[207] Fix | Delete
</div>
[208] Fix | Delete
</div>
[209] Fix | Delete
</div>
[210] Fix | Delete
</div>
[211] Fix | Delete
<div class="formItem sgpb-close-button-border-options<?php echo esc_attr(($popupTypeObj->getOptionValue('sgpb-popup-themes') != 'sgpb-theme-3') ? ' sg-hide' : ''); ?>">
[212] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Popup border color', 'popup-builder') ?>:</span>
[213] Fix | Delete
<div class="sgpb-color-picker-wrapper sgpb-overlay-color unhideColorPicker subFormItem">
[214] Fix | Delete
<input class="sgpb-color-picker sgpb-border-color" type="text" name="sgpb-border-color"
[215] Fix | Delete
value="<?php echo (esc_attr($popupTypeObj->getOptionValue('sgpb-border-color'))) ? esc_attr($popupTypeObj->getOptionValue('sgpb-border-color')) : '#000000'; ?>">
[216] Fix | Delete
</div>
[217] Fix | Delete
</div>
[218] Fix | Delete
<div class="formItem sgpb-close-button-border-options<?php echo esc_attr(($popupTypeObj->getOptionValue('sgpb-popup-themes') != 'sgpb-theme-3') ? ' sg-hide' : ''); ?>">
[219] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Popup border radius', 'popup-builder') ?>:</span>
[220] Fix | Delete
<input class="formItem__input sgpb-margin-right-10" type="number" min="0" name="sgpb-border-radius"
[221] Fix | Delete
value="<?php echo (esc_attr($popupTypeObj->getOptionValue('sgpb-border-radius'))) ? esc_attr($popupTypeObj->getOptionValue('sgpb-border-radius')) : '0'; ?>">
[222] Fix | Delete
<?php echo wp_kses(AdminHelper::createSelectBox($defaultData['pxPercent'], $borderRadiusType, array('name' => 'sgpb-border-radius-type',
[223] Fix | Delete
'class' => 'sgpb-border-radius-type js-sg-select2'
[224] Fix | Delete
)), AdminHelper::allowed_html_tags()); ?>
[225] Fix | Delete
</div>
[226] Fix | Delete
<div class="<?php echo esc_attr(($popupTypeObj->getOptionValue('sgpb-popup-themes') != 'sgpb-theme-4') ? 'sg-hide ' : ''); ?>sgpb-close-button-text-option-wrapper">
[227] Fix | Delete
<div class="formItem formItem_itemsCentered">
[228] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Button text', 'popup-builder'); ?>:</span>
[229] Fix | Delete
<input class="formItem__input formItem__input_sgpb-button-text" type="text" name="sgpb-button-text"
[230] Fix | Delete
value="<?php echo (esc_attr($popupTypeObj->getOptionValue('sgpb-button-text'))) ? esc_attr($popupTypeObj->getOptionValue('sgpb-button-text')) : esc_html__('Close', 'popup-builder'); ?>"
[231] Fix | Delete
autocomplete="off">
[232] Fix | Delete
</div>
[233] Fix | Delete
</div>
[234] Fix | Delete
</div>
[235] Fix | Delete
<?php endif; ?>
[236] Fix | Delete
<?php if(empty($removedOptions['sgpb-disable-page-scrolling'])): ?>
[237] Fix | Delete
<div class="formItem">
[238] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Dismiss on overlay click', 'popup-builder') ?>:</span>
[239] Fix | Delete
<div class="sgpb-onOffSwitch">
[240] Fix | Delete
<input type="checkbox" class="sgpb-onOffSwitch-checkbox" id="overlay-click"
[241] Fix | Delete
name="sgpb-overlay-click" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-overlay-click')); ?>>
[242] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="overlay-click">
[243] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[244] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[245] Fix | Delete
</label>
[246] Fix | Delete
</div>
[247] Fix | Delete
<div class="question-mark">B</div>
[248] Fix | Delete
<div class="sgpb-info-wrapper">
[249] Fix | Delete
<span class="infoSelectRepeat samefontStyle sgpb-info-text" style="display: none;">
[250] Fix | Delete
<?php esc_html_e('The popup will close when clicked on the overlay of the popup.', 'popup-builder') ?>
[251] Fix | Delete
</span>
[252] Fix | Delete
</div>
[253] Fix | Delete
</div>
[254] Fix | Delete
<?php endif; ?>
[255] Fix | Delete
[256] Fix | Delete
<?php if(empty($removedOptions['sgpb-disable-popup-closing'])): ?>
[257] Fix | Delete
<?php if ($disablePopupClosing): ?>
[258] Fix | Delete
<div class="formItem">
[259] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Disable popup closing', 'popup-builder')?>:</span>
[260] Fix | Delete
<div class="sgpb-onOffSwitch">
[261] Fix | Delete
<input type="checkbox" class="sgpb-onOffSwitch-checkbox" id="popup-closing" name="sgpb-disable-popup-closing" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-disable-popup-closing')); ?>>
[262] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="popup-closing">
[263] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[264] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[265] Fix | Delete
</label>
[266] Fix | Delete
</div>
[267] Fix | Delete
<div class="question-mark">B</div>
[268] Fix | Delete
<div class="sgpb-info-wrapper">
[269] Fix | Delete
<span class="infoSelectRepeat samefontStyle sgpb-info-text" style="display: none;">
[270] Fix | Delete
<?php esc_html_e('The users will not be able to close the popup, if this option is checked.', 'popup-builder')?>
[271] Fix | Delete
</span>
[272] Fix | Delete
</div>
[273] Fix | Delete
</div>
[274] Fix | Delete
<?php else: ?>
[275] Fix | Delete
<div class="formItem sgpb-padding-20 sgpb-option-disable" onclick="window.open('<?php echo esc_url(SG_POPUP_ADVANCED_CLOSING_URL);?>', '_blank')">
[276] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Disable popup closing', 'popup-builder')?>:</span>
[277] Fix | Delete
<div class="sgpb-onOffSwitch">
[278] Fix | Delete
<input type="checkbox" class="sgpb-onOffSwitch-checkbox" id="popup-closing" name="sgpb-disable-popup-closing" disabled>
[279] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="popup-closing">
[280] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[281] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[282] Fix | Delete
</label>
[283] Fix | Delete
</div>
[284] Fix | Delete
<div class="question-mark">B</div>
[285] Fix | Delete
<div class="sgpb-info-wrapper">
[286] Fix | Delete
<span class="infoSelectRepeat samefontStyle sgpb-info-text" style="display: none;">
[287] Fix | Delete
<?php esc_html_e('The users will not be able to close the popup, if this option is checked.', 'popup-builder')?>
[288] Fix | Delete
</span>
[289] Fix | Delete
</div>
[290] Fix | Delete
<div class="sgpb-unlock-options">
[291] Fix | Delete
<div class="sgpb-unlock-options__icon">
[292] Fix | Delete
<img src="<?php echo esc_url(SG_POPUP_PUBLIC_URL.'icons/time-is-money.svg');?>" alt="Time icon" width="45" height="45" />
[293] Fix | Delete
</div>
[294] Fix | Delete
<span class="sgpb-unlock-options__title"><?php esc_html_e('Unlock Option', 'popup-builder'); ?></span>
[295] Fix | Delete
</div>
[296] Fix | Delete
</div>
[297] Fix | Delete
<?php endif; ?>
[298] Fix | Delete
<?php endif; ?>
[299] Fix | Delete
<?php if (empty($removedOptions['sgpb-auto-close'])): ?>
[300] Fix | Delete
<?php if ($autoClose): ?>
[301] Fix | Delete
<div class="formItem">
[302] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Auto close popup', 'popup-builder')?>:</span>
[303] Fix | Delete
<div class="sgpb-onOffSwitch">
[304] Fix | Delete
<input type="checkbox" id="auto-close" class="js-checkbox-accordion sgpb-onOffSwitch-checkbox" name="sgpb-auto-close" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-auto-close')); ?>>
[305] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="auto-close">
[306] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[307] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[308] Fix | Delete
</label>
[309] Fix | Delete
</div>
[310] Fix | Delete
</div>
[311] Fix | Delete
<?php else: ?>
[312] Fix | Delete
<div class="formItem sgpb-padding-20 sgpb-option-disable" onclick="window.open('<?php echo esc_url(SG_POPUP_ADVANCED_CLOSING_URL);?>', '_blank')">
[313] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Auto close popup', 'popup-builder')?>:</span>
[314] Fix | Delete
<div class="sgpb-onOffSwitch">
[315] Fix | Delete
<input type="checkbox" id="auto-close" name="sgpb-auto-close" disabled class="sgpb-onOffSwitch-checkbox">
[316] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="auto-close">
[317] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[318] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[319] Fix | Delete
</label>
[320] Fix | Delete
</div>
[321] Fix | Delete
<div class="sgpb-unlock-options sgpb-margin-left-20">
[322] Fix | Delete
<div class="sgpb-unlock-options__icon">
[323] Fix | Delete
<img src="<?php echo esc_url(SG_POPUP_PUBLIC_URL.'icons/time-is-money.svg');?>" alt="Time icon" width="45" height="45" />
[324] Fix | Delete
</div>
[325] Fix | Delete
<span class="sgpb-unlock-options__title"><?php esc_html_e('Unlock Option', 'popup-builder'); ?></span>
[326] Fix | Delete
</div>
[327] Fix | Delete
</div>
[328] Fix | Delete
<?php endif; ?>
[329] Fix | Delete
<?php endif; ?>
[330] Fix | Delete
<?php if ($autoClose && empty($removedOptions['sgpb-auto-close-time'])): ?>
[331] Fix | Delete
<?php do_action('autoCloseOptions', $popupTypeObj); ?>
[332] Fix | Delete
<?php endif; ?>
[333] Fix | Delete
[334] Fix | Delete
<?php if (empty($removedOptions['sgpb-close-after-page-scroll'])): ?>
[335] Fix | Delete
<?php if ($closeAfterPageScroll): ?>
[336] Fix | Delete
<div class="formItem">
[337] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Close popup after the page scroll', 'popup-builder'); ?>:</span>
[338] Fix | Delete
<div class="sgpb-onOffSwitch">
[339] Fix | Delete
<input type="checkbox" class="sgpb-onOffSwitch-checkbox" id="sgpb-close-after-page-scroll" class="" name="sgpb-close-after-page-scroll" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-close-after-page-scroll')); ?>>
[340] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="sgpb-close-after-page-scroll">
[341] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[342] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[343] Fix | Delete
</label>
[344] Fix | Delete
</div>
[345] Fix | Delete
</div>
[346] Fix | Delete
<?php else: ?>
[347] Fix | Delete
<div class="formItem sgpb-padding-20 sgpb-option-disable" onclick="window.open('<?php echo esc_url(SG_POPUP_ADVANCED_CLOSING_URL);?>', '_blank')">
[348] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Close popup after the page scroll', 'popup-builder'); ?>:</span>
[349] Fix | Delete
<div class="sgpb-onOffSwitch">
[350] Fix | Delete
<input type="checkbox" id="sgpb-close-after-page-scroll" name="sgpb-close-after-page-scroll" disabled>
[351] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="sgpb-close-after-page-scroll">
[352] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[353] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[354] Fix | Delete
</label>
[355] Fix | Delete
</div>
[356] Fix | Delete
<div class="sgpb-unlock-options sgpb-margin-left-20">
[357] Fix | Delete
<div class="sgpb-unlock-options__icon">
[358] Fix | Delete
<img src="<?php echo esc_url(SG_POPUP_PUBLIC_URL.'icons/time-is-money.svg');?>" alt="Time icon" width="45" height="45" />
[359] Fix | Delete
</div>
[360] Fix | Delete
<span class="sgpb-unlock-options__title"><?php esc_html_e('Unlock Option', 'popup-builder'); ?></span>
[361] Fix | Delete
</div>
[362] Fix | Delete
</div>
[363] Fix | Delete
<?php endif; ?>
[364] Fix | Delete
[365] Fix | Delete
<?php endif; ?>
[366] Fix | Delete
[367] Fix | Delete
</div>
[368] Fix | Delete
[369] Fix | Delete
</div>
[370] Fix | Delete
[371] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function