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/options
File: subscription.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\MultipleChoiceButton;
[6] Fix | Delete
use sgpb\Functions;
[7] Fix | Delete
[8] Fix | Delete
$allowed_html = AdminHelper::allowed_html_tags();
[9] Fix | Delete
$defaultData = SGPBConfigDataHelper::defaultData();
[10] Fix | Delete
$placeholderColor = $popupTypeObj->getOptionValue('sgpb-subs-text-placeholder-color');
[11] Fix | Delete
$popupId = 0;
[12] Fix | Delete
[13] Fix | Delete
if (!empty($_GET['post'])) {
[14] Fix | Delete
$popupId = (int)sanitize_text_field($_GET['post']);
[15] Fix | Delete
$popupTypeObj->setSubsFormData($popupId);
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
$formData = $popupTypeObj->createFormFieldsData();
[19] Fix | Delete
$subscriptionSubPopups = $popupTypeObj->getPopupsIdAndTitle();
[20] Fix | Delete
$successPopup = $popupTypeObj->getOptionValue('sgpb-subs-success-popup');
[21] Fix | Delete
[22] Fix | Delete
// for old popups
[23] Fix | Delete
if (function_exists('sgpb\sgpGetCorrectPopupId')) {
[24] Fix | Delete
$successPopup = sgpb\sgpGetCorrectPopupId($successPopup);
[25] Fix | Delete
}
[26] Fix | Delete
$forceRtlClass = '';
[27] Fix | Delete
$forceRtl = $popupTypeObj->getOptionValue('sgpb-force-rtl');
[28] Fix | Delete
if ($forceRtl) {
[29] Fix | Delete
$forceRtlClass = ' sgpb-forms-preview-direction';
[30] Fix | Delete
}
[31] Fix | Delete
?>
[32] Fix | Delete
[33] Fix | Delete
<div class="sgpb sgpb-wrapper">
[34] Fix | Delete
<div class="sgpb-subscription-popup-options sgpb-display-flex">
[35] Fix | Delete
<div class="sgpb-width-70 sgpb-padding-x-20">
[36] Fix | Delete
<div class="formItem sgpb-margin-top-0">
[37] Fix | Delete
<div class="sgpb-width-100 sgpb-margin-bottom-40">
[38] Fix | Delete
<p class="formItem__title"><?php esc_html_e('Form background options', 'popup-builder'); ?></p>
[39] Fix | Delete
</div>
[40] Fix | Delete
<div class="subForm sgpb-bg-black__opacity-02 sgpb-padding-30 sgpb-width-100">
[41] Fix | Delete
<div class="subFormItem sgpb-display-flex sgpb-align-item-center sgpb-margin-y-20">
[42] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Form background color', 'popup-builder'); ?>:</span>
[43] Fix | Delete
<div class="colorPicker">
[44] Fix | Delete
<div class="sgpb-color-picker-wrapper unhideColorPicker">
[45] Fix | Delete
<input class="sgpb-color-picker js-subs-color-picker" data-subs-rel="sgpb-subscription-admin-wrapper" data-style-type="background-color" type="text" name="sgpb-subs-form-bg-color" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-form-bg-color')); ?>" autocomplete="off">
[46] Fix | Delete
</div>
[47] Fix | Delete
</div>
[48] Fix | Delete
</div>
[49] Fix | Delete
<div class="subFormItem sgpb-display-flex sgpb-align-item-center sgpb-margin-y-20">
[50] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Form background opacity', 'popup-builder')?>:</span>
[51] Fix | Delete
<div class="sgpb-slider-wrapper range-wrap">
[52] Fix | Delete
<div class="sgpb-slider-wrapper sgpb-range-wrap sgpb-display-inline-flex">
[53] Fix | Delete
<?php $overlayOpacity = $popupTypeObj->getOptionValue('sgpb-overlay-opacity'); ?>
[54] Fix | Delete
<input type="range" name="sgpb-subs-form-bg-opacity" class="sgpb-range-input js-subs-bg-opacity sgpb-cursor-pointer"
[55] Fix | Delete
value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-form-bg-opacity')); ?>"
[56] Fix | Delete
min="0.0" step="0.1" max="1">
[57] Fix | Delete
<span class="js-subs-bg-opacity-value sgpb-margin-left-10"><?php echo esc_html($overlayOpacity)?></span>
[58] Fix | Delete
</div>
[59] Fix | Delete
</div>
[60] Fix | Delete
</div>
[61] Fix | Delete
<div class="subFormItem sgpb-display-flex sgpb-align-item-center sgpb-margin-y-20">
[62] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Form padding', 'popup-builder')?>:</span>
[63] Fix | Delete
<input type="number" min="0" data-default="<?php echo esc_attr($popupTypeObj->getOptionDefaultValue('sgpb-subs-form-padding'))?>" class="js-sgpb-form-padding formItem__input" id="sgpb-subs-form-padding" name="sgpb-subs-form-padding" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-form-padding'))?>" autocomplete="off">
[64] Fix | Delete
<div class="formItem__inputValueType">px</div>
[65] Fix | Delete
</div>
[66] Fix | Delete
</div>
[67] Fix | Delete
</div>
[68] Fix | Delete
<div class="formItem">
[69] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Email placeholder', 'popup-builder'); ?></span>
[70] Fix | Delete
<input type="text" name="sgpb-subs-email-placeholder" id="subs-email-placeholder" class="formItem__input formItem__input_sgpb-popup-overlay js-subs-field-placeholder" data-subs-rel="js-subs-email-input" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-email-placeholder')); ?>">
[71] Fix | Delete
</div>
[72] Fix | Delete
<div class="formItem">
[73] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Enable GDPR', 'popup-builder')?>:</span>
[74] Fix | Delete
<div class="sgpb-onOffSwitch">
[75] Fix | Delete
<input type="checkbox" class="js-checkbox-accordion js-checkbox-field-status sgpb-onOffSwitch-checkbox" id="subs-gdpr-status" data-subs-field-wrapper="js-gdpr-wrapper" name="sgpb-subs-gdpr-status" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-gdpr-status')); ?>>
[76] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="subs-gdpr-status">
[77] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[78] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[79] Fix | Delete
</label>
[80] Fix | Delete
</div>
[81] Fix | Delete
</div>
[82] Fix | Delete
<div class="formItem sgpb-width-100 sgpb-bg-black__opacity-02 sgpb-padding-20">
[83] Fix | Delete
<div class="subFormItem sgpb-margin-bottom-20">
[84] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Label', 'popup-builder')?>:</span>
[85] Fix | Delete
<input type="text" name="sgpb-subs-gdpr-label" id="sgpb-subs-gdpr-label" class="js-subs-field-placeholder formItem__input formItem__input_sgpb-popup-overlay" data-subs-rel="js-subs-gdpr-label" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-gdpr-label')); ?>">
[86] Fix | Delete
</div>
[87] Fix | Delete
<div class="subFormItem sgpb-display-flex">
[88] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10 sgpb-text-nowrap"><?php esc_html_e('Confirmation text', 'popup-builder')?>:</span>
[89] Fix | Delete
<textarea name="sgpb-subs-gdpr-text" id="sgpb-subs-gdpr-text" class="formItem__textarea"><?php echo esc_html($popupTypeObj->getOptionValue('sgpb-subs-gdpr-text')); ?></textarea>
[90] Fix | Delete
</div>
[91] Fix | Delete
</div>
[92] Fix | Delete
<div class="formItem">
[93] Fix | Delete
<span class="formItem__title"><?php esc_html_e('First name', 'popup-builder')?>:</span>
[94] Fix | Delete
<div class="sgpb-onOffSwitch">
[95] Fix | Delete
<input type="checkbox" class="js-checkbox-accordion js-checkbox-field-status sgpb-onOffSwitch-checkbox" id="subs-first-name-status" data-subs-field-wrapper="js-first-name-wrapper" name="sgpb-subs-first-name-status" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-first-name-status')); ?>>
[96] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="subs-first-name-status">
[97] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[98] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[99] Fix | Delete
</label>
[100] Fix | Delete
</div>
[101] Fix | Delete
</div>
[102] Fix | Delete
<div class="formItem sgpb-width-100 sgpb-bg-black__opacity-02 sgpb-padding-20">
[103] Fix | Delete
<div class="subFormItem">
[104] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Placeholder', 'popup-builder')?>:</span>
[105] Fix | Delete
<input type="text" name="sgpb-subs-first-placeholder" id="subs-first-placeholder" class="formItem__input formItem__input_sgpb-popup-overlay js-subs-field-placeholder" data-subs-rel="js-subs-first-name-input" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-first-placeholder')); ?>">
[106] Fix | Delete
</div>
[107] Fix | Delete
<div class="subFormItem sgpb-align-item-center sgpb-display-flex sgpb-margin-top-10">
[108] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Required field', 'popup-builder')?>:</span>
[109] Fix | Delete
<div class="sgpb-onOffSwitch">
[110] Fix | Delete
<input type="checkbox" name="sgpb-subs-first-name-required" class="sgpb-onOffSwitch-checkbox" id="subs-first-name-required" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-first-name-required')); ?>>
[111] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="subs-first-name-required">
[112] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[113] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[114] Fix | Delete
</label>
[115] Fix | Delete
</div>
[116] Fix | Delete
</div>
[117] Fix | Delete
</div>
[118] Fix | Delete
<div class="formItem">
[119] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Last name', 'popup-builder')?>:</span>
[120] Fix | Delete
<div class="sgpb-onOffSwitch">
[121] Fix | Delete
<input type="checkbox" class="js-checkbox-accordion js-checkbox-field-status sgpb-onOffSwitch-checkbox" id="subs-last-name-status" data-subs-field-wrapper="js-last-name-wrapper" name="sgpb-subs-last-name-status" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-last-name-status')); ?>>
[122] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="subs-last-name-status">
[123] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[124] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[125] Fix | Delete
</label>
[126] Fix | Delete
</div>
[127] Fix | Delete
</div>
[128] Fix | Delete
<div class="formItem sgpb-width-100 sgpb-bg-black__opacity-02 sgpb-padding-20">
[129] Fix | Delete
<div class="subFormItem">
[130] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Placeholder', 'popup-builder')?>:</span>
[131] Fix | Delete
<input id="subs-last-placeholder" class="formItem__input formItem__input_sgpb-popup-overlay " data-subs-rel="js-subs-last-name-input" type="text" name="sgpb-subs-last-placeholder" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-last-placeholder')); ?>">
[132] Fix | Delete
</div>
[133] Fix | Delete
<div class="subFormItem sgpb-align-item-center sgpb-display-flex sgpb-margin-top-10">
[134] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Required field', 'popup-builder')?>:</span>
[135] Fix | Delete
<div class="sgpb-onOffSwitch">
[136] Fix | Delete
<input type="checkbox" name="sgpb-subs-last-name-required" class="sgpb-onOffSwitch-checkbox" id="subs-last-name-required" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-last-name-required')); ?>>
[137] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="subs-last-name-required">
[138] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[139] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[140] Fix | Delete
</label>
[141] Fix | Delete
</div>
[142] Fix | Delete
</div>
[143] Fix | Delete
</div>
[144] Fix | Delete
<div class="formItem">
[145] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Required field message', 'popup-builder'); ?></span>
[146] Fix | Delete
<input type="text" name="sgpb-subs-validation-message" id="subs-validation-message" class="formItem__input formItem__input_sgpb-popup-overlay sgpb-full-width-events" maxlength="90" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-validation-message')); ?>">
[147] Fix | Delete
</div>
[148] Fix | Delete
<div class="formItem">
[149] Fix | Delete
<div class="sgpb-width-100">
[150] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Inputs\' style', 'popup-builder'); ?></span>
[151] Fix | Delete
</div>
[152] Fix | Delete
<div class="subForm sgpb-bg-black__opacity-02 sgpb-padding-30 sgpb-width-100">
[153] Fix | Delete
<div class="subFormItem bottom">
[154] Fix | Delete
<div class="maxWidth sgpb-margin-bottom-20">
[155] Fix | Delete
<span class="subFormItem__title formItem__title_equals sgpb-margin-right-10"><?php esc_html_e('Width', 'popup-builder'); ?>:</span>
[156] Fix | Delete
<input type="text" class="js-subs-dimension subFormItem__input" data-field-type="input" data-subs-rel="js-subs-text-inputs" data-style-type="width" name="sgpb-subs-text-width" id="subs-text-width" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-text-width')); ?>">
[157] Fix | Delete
</div>
[158] Fix | Delete
<div class="maxHeight sgpb-margin-bottom-20">
[159] Fix | Delete
<span class="subFormItem__title formItem__title_equals sgpb-margin-right-10"><?php esc_html_e('Height', 'popup-builder'); ?>:</span>
[160] Fix | Delete
<input class="js-subs-dimension subFormItem__input" data-field-type="input" data-subs-rel="js-subs-text-inputs" data-style-type="height" type="text" name="sgpb-subs-text-height" id="subs-text-height" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-text-height')); ?>">
[161] Fix | Delete
</div>
[162] Fix | Delete
</div>
[163] Fix | Delete
<div class="subFormItem sgpb-margin-bottom-20">
[164] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Border width', 'popup-builder')?>:</span>
[165] Fix | Delete
<input class="js-subs-dimension formItem__input formItem__input_sgpb-popup-overlay" data-field-type="input" data-subs-rel="js-subs-text-inputs" data-style-type="border-width" type="text" name="sgpb-subs-text-border-width" id="subs-text-border-width" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-text-border-width')); ?>">
[166] Fix | Delete
</div>
[167] Fix | Delete
<div class="subFormItem sgpb-margin-bottom-20 sgpb-display-flex sgpb-align-item-center">
[168] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Background color', 'popup-builder')?>:</span>
[169] Fix | Delete
<div class="sgpb-color-picker-wrapper unhideColorPicker">
[170] Fix | Delete
<input class="sgpb-color-picker js-subs-color-picker" data-field-type="input" data-subs-rel="js-subs-text-inputs" data-style-type="background-color" type="text" name="sgpb-subs-text-bg-color" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-text-bg-color')); ?>" >
[171] Fix | Delete
</div>
[172] Fix | Delete
</div>
[173] Fix | Delete
<div class="subFormItem sgpb-margin-bottom-20 sgpb-display-flex sgpb-align-item-center">
[174] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Border color', 'popup-builder')?>:</span>
[175] Fix | Delete
<div class="sgpb-color-picker-wrapper unhideColorPicker">
[176] Fix | Delete
<input class="sgpb-color-picker js-subs-color-picker" data-field-type="input" data-subs-rel="js-subs-text-inputs" data-style-type="border-color" type="text" name="sgpb-subs-text-border-color" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-text-border-color')); ?>" >
[177] Fix | Delete
</div>
[178] Fix | Delete
</div>
[179] Fix | Delete
<div class="subFormItem sgpb-margin-bottom-20 sgpb-display-flex sgpb-align-item-center">
[180] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Text color', 'popup-builder')?>:</span>
[181] Fix | Delete
<div class="sgpb-color-picker-wrapper unhideColorPicker">
[182] Fix | Delete
<input class="sgpb-color-picker js-subs-color-picker" data-field-type="input" data-subs-rel="js-subs-text-inputs" data-style-type="color" type="text" name="sgpb-subs-text-color" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-text-color')); ?>" >
[183] Fix | Delete
</div>
[184] Fix | Delete
</div>
[185] Fix | Delete
<div class="subFormItem sgpb-margin-bottom-20 sgpb-display-flex sgpb-align-item-center">
[186] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Placeholder color', 'popup-builder')?>:</span>
[187] Fix | Delete
<div class="sgpb-color-picker-wrapper unhideColorPicker">
[188] Fix | Delete
<input class="sgpb-color-picker js-subs-color-picker" data-field-type="input" data-subs-rel="js-subs-text-inputs" data-style-type="placeholder" type="text" name="sgpb-subs-text-placeholder-color" value="<?php echo esc_attr($placeholderColor); ?>" >
[189] Fix | Delete
</div>
[190] Fix | Delete
</div>
[191] Fix | Delete
</div>
[192] Fix | Delete
</div>
[193] Fix | Delete
[194] Fix | Delete
<div class="formItem">
[195] Fix | Delete
<div class="sgpb-width-100">
[196] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Submit button styles', 'popup-builder'); ?></span>
[197] Fix | Delete
</div>
[198] Fix | Delete
<div class="subForm sgpb-bg-black__opacity-02 sgpb-padding-30 sgpb-width-100">
[199] Fix | Delete
<div class="subFormItem bottom">
[200] Fix | Delete
<div class="maxWidth sgpb-margin-bottom-20">
[201] Fix | Delete
<span class="subFormItem__title formItem__title_equals sgpb-margin-right-10"><?php esc_html_e('Width', 'popup-builder'); ?>:</span>
[202] Fix | Delete
<input class="js-subs-dimension subFormItem__input" data-subs-rel="js-subs-submit-btn" data-field-type="submit" data-style-type="width" type="text" name="sgpb-subs-btn-width" id="subs-btn-width" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-btn-width')); ?>">
[203] Fix | Delete
</div>
[204] Fix | Delete
<div class="maxHeight sgpb-margin-bottom-20">
[205] Fix | Delete
<span class="subFormItem__title formItem__title_equals sgpb-margin-right-10"><?php esc_html_e('Height', 'popup-builder'); ?>:</span>
[206] Fix | Delete
<input class="js-subs-dimension subFormItem__input" data-subs-rel="js-subs-submit-btn" data-field-type="submit" data-style-type="height" type="text" name="sgpb-subs-btn-height" id="subs-btn-height" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-btn-height')); ?>">
[207] Fix | Delete
</div>
[208] Fix | Delete
</div>
[209] Fix | Delete
<div class="subFormItem sgpb-margin-bottom-20">
[210] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Border width', 'popup-builder')?>:</span>
[211] Fix | Delete
<input class="js-subs-dimension formItem__input" data-field-type="submit" data-subs-rel="js-subs-submit-btn" data-style-type="border-width" type="text" name="sgpb-subs-btn-border-width" id="sgpb-subs-btn-border-width" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-btn-border-width')); ?>">
[212] Fix | Delete
</div>
[213] Fix | Delete
<div class="subFormItem sgpb-margin-bottom-20">
[214] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Border radius', 'popup-builder')?>:</span>
[215] Fix | Delete
<input class="js-subs-dimension formItem__input" data-subs-rel="js-subs-submit-btn" data-field-type="submit" data-style-type="border-radius" type="text" name="sgpb-subs-btn-border-radius" id="sgpb-subs-btn-border-radius" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-btn-border-radius')); ?>">
[216] Fix | Delete
</div>
[217] Fix | Delete
<div class="subFormItem sgpb-margin-bottom-20 sgpb-display-flex sgpb-align-item-center">
[218] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Border color', 'popup-builder')?>:</span>
[219] Fix | Delete
<div class="sgpb-color-picker-wrapper unhideColorPicker">
[220] Fix | Delete
<input id="sgpb-subs-btn-border-color" class="sgpb-color-picker js-subs-color-picker" data-field-type="submit" data-subs-rel="js-subs-submit-btn" data-style-type="border-color" type="text" name="sgpb-subs-btn-border-color" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-btn-border-color')); ?>" >
[221] Fix | Delete
</div>
[222] Fix | Delete
</div>
[223] Fix | Delete
<div class="subFormItem sgpb-margin-bottom-20">
[224] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Title', 'popup-builder')?>:</span>
[225] Fix | Delete
<input type="text" name="sgpb-subs-btn-title" id="subs-btn-title" class="formItem__input formItem__input_sgpb-popup-overlay js-subs-btn-title" data-field-type="submit" data-subs-rel="js-subs-submit-btn" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-btn-title')); ?>">
[226] Fix | Delete
</div>
[227] Fix | Delete
<div class="subFormItem sgpb-margin-bottom-20">
[228] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Title (in progress)', 'popup-builder')?>:</span>
[229] Fix | Delete
<input type="text" name="sgpb-subs-btn-progress-title" id="btn-progress-title" class="formItem__input formItem__input_sgpb-popup-overlay" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-btn-progress-title')); ?>">
[230] Fix | Delete
</div>
[231] Fix | Delete
<div class="subFormItem sgpb-margin-bottom-20 sgpb-display-flex sgpb-align-item-center">
[232] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Background color', 'popup-builder')?>:</span>
[233] Fix | Delete
<div class="sgpb-color-picker-wrapper unhideColorPicker">
[234] Fix | Delete
<input class="sgpb-color-picker js-subs-color-picker" data-field-type="submit" data-subs-rel="js-subs-submit-btn" data-style-type="background-color" type="text" name="sgpb-subs-btn-bg-color" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-btn-bg-color')); ?>" >
[235] Fix | Delete
</div>
[236] Fix | Delete
</div>
[237] Fix | Delete
<div class="subFormItem sgpb-margin-bottom-20 sgpb-display-flex sgpb-align-item-center">
[238] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Text color', 'popup-builder')?>:</span>
[239] Fix | Delete
<div class="sgpb-color-picker-wrapper unhideColorPicker">
[240] Fix | Delete
<input class="sgpb-color-picker js-subs-color-picker" data-field-type="submit" data-subs-rel="js-subs-submit-btn" data-style-type="color" type="text" name="sgpb-subs-btn-text-color" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-btn-text-color')); ?>" >
[241] Fix | Delete
</div>
[242] Fix | Delete
</div>
[243] Fix | Delete
</div>
[244] Fix | Delete
</div>
[245] Fix | Delete
<div class="formItem">
[246] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Error message', 'popup-builder'); ?></span>
[247] Fix | Delete
<input type="text" class="formItem__input formItem__input_sgpb-popup-overlay" name="sgpb-subs-error-message" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-error-message')); ?>">
[248] Fix | Delete
</div>
[249] Fix | Delete
<div class="formItem">
[250] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Invalid email message', 'popup-builder'); ?></span>
[251] Fix | Delete
<input type="text" class="formItem__input formItem__input_sgpb-popup-overlay" name="sgpb-subs-invalid-message" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-invalid-message')); ?>">
[252] Fix | Delete
</div>
[253] Fix | Delete
<div class="formItem">
[254] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Show form on the Top', 'popup-builder')?>:</span>
[255] Fix | Delete
<div class="sgpb-onOffSwitch">
[256] Fix | Delete
<input type="checkbox" id="sgpb-subs-show-form-to-top" class="sgpb-onOffSwitch-checkbox" name="sgpb-subs-show-form-to-top" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-show-form-to-top')); ?>>
[257] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="sgpb-subs-show-form-to-top">
[258] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[259] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[260] Fix | Delete
</label>
[261] Fix | Delete
</div>
[262] Fix | Delete
</div>
[263] Fix | Delete
<div class="formItem">
[264] Fix | Delete
<span class="formItem__title"><?php esc_html_e('Hide for already subscribed users', 'popup-builder')?>:</span>
[265] Fix | Delete
<div class="sgpb-onOffSwitch">
[266] Fix | Delete
<input type="checkbox" id="sgpb-subs-hide-subs-users" class="sgpb-onOffSwitch-checkbox" name="sgpb-subs-hide-subs-users" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-hide-subs-users')); ?>>
[267] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="sgpb-subs-hide-subs-users">
[268] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[269] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[270] Fix | Delete
</label>
[271] Fix | Delete
</div>
[272] Fix | Delete
</div>
[273] Fix | Delete
<div class="formItem">
[274] Fix | Delete
<span class="formItem__title"><?php esc_html_e('After successful subscription', 'popup-builder')?>:</span>
[275] Fix | Delete
</div>
[276] Fix | Delete
<div class="formItem sgpb-bg-black__opacity-02 sgpb-width-100 sgpb-padding-20 sgpb-margin-bottom-20">
[277] Fix | Delete
<?php
[278] Fix | Delete
$multipleChoiceButton = new MultipleChoiceButton($defaultData['subscriptionSuccessBehavior'], $popupTypeObj->getOptionValue('sgpb-subs-success-behavior'));
[279] Fix | Delete
echo wp_kses($multipleChoiceButton, $allowed_html);;
[280] Fix | Delete
?>
[281] Fix | Delete
</div>
[282] Fix | Delete
[283] Fix | Delete
<div class="sg-hide sgpb-bg-black__opacity-02 sgpb-width-100 sgpb-padding-20 sgpb-margin-bottom-20" id="subs-show-success-message">
[284] Fix | Delete
<div class="subFormItem">
[285] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Success message', 'popup-builder')?>:</span>
[286] Fix | Delete
<input name="sgpb-subs-success-message" type="text" id="sgpb-subs-success-message" class="grayFormItem__input" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-success-message')); ?>">
[287] Fix | Delete
</div>
[288] Fix | Delete
</div>
[289] Fix | Delete
<div class="sg-hide sgpb-bg-black__opacity-02 sgpb-width-100 sgpb-padding-20 sgpb-margin-bottom-20" id="subs-redirect-to-URL">
[290] Fix | Delete
<div class="subFormItem">
[291] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Redirect URL', 'popup-builder')?>:</span>
[292] Fix | Delete
<input type="url" name="sgpb-subs-success-redirect-URL" id="sgpb-subs-success-redirect-URL" placeholder="https://www.example.com" class="grayFormItem__input" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-success-redirect-URL')); ?>">
[293] Fix | Delete
</div>
[294] Fix | Delete
<div class="subFormItem sgpb-display-flex sgpb-align-item-center">
[295] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Redirect to new tab', 'popup-builder')?>:</span>
[296] Fix | Delete
<div class="sgpb-onOffSwitch">
[297] Fix | Delete
<input type="checkbox" name="sgpb-subs-success-redirect-new-tab" id="subs-success-redirect-new-tab" class="sgpb-onOffSwitch-checkbox" placeholder="https://www.example.com" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-subs-success-redirect-new-tab')); ?>>
[298] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="subs-success-redirect-new-tab">
[299] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[300] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[301] Fix | Delete
</label>
[302] Fix | Delete
</div>
[303] Fix | Delete
</div>
[304] Fix | Delete
</div>
[305] Fix | Delete
<div class="sg-hide sgpb-bg-black__opacity-02 sgpb-width-100 sgpb-padding-20 sgpb-margin-bottom-20" id="subs-open-popup">
[306] Fix | Delete
<div class="subFormItem">
[307] Fix | Delete
<span class="subFormItem__title sgpb-margin-right-10"><?php esc_html_e('Select popup', 'popup-builder')?>:</span>
[308] Fix | Delete
<?php echo wp_kses(AdminHelper::createSelectBox($subscriptionSubPopups, $successPopup, array('name' => 'sgpb-subs-success-popup', 'class'=>'js-sg-select2 select__select')), $allowed_html); ?>
[309] Fix | Delete
</div>
[310] Fix | Delete
</div>
[311] Fix | Delete
</div>
[312] Fix | Delete
<div class="sgpb-width-30">
[313] Fix | Delete
<div class="sgpb-position-sticky sgpb-overflow-auto">
[314] Fix | Delete
<div class="livePreview livePreview_centered sgpb-margin-auto sgpb-align-item-center sgpb-btn sgpb-btn-gray-light sgpb-btn--rounded sgpb-display-flex sgpb-justify-content-center sgpb-no-hover sgpb-cursor-default">
[315] Fix | Delete
<img class="sgpb-margin-right-10" src="<?php echo esc_attr(SG_POPUP_PUBLIC_URL.'icons/Black/eye.svg'); ?>" alt="Eye icon">
[316] Fix | Delete
<span class="livePreview__text"><?php esc_html_e('Live Preview', 'popup-builder')?></span>
[317] Fix | Delete
</div>
[318] Fix | Delete
<div class="sgpb-margin-top-10 sgpb-subs-form-<?php echo esc_attr($popupId); ?> sgpb-subscription-admin-wrapper<?php echo esc_attr($forceRtlClass); ?>">
[319] Fix | Delete
<?php echo wp_kses(Functions::renderForm($formData), $allowed_html); ?>
[320] Fix | Delete
</div>
[321] Fix | Delete
<?php
[322] Fix | Delete
$styleData = array(
[323] Fix | Delete
'placeholderColor' => $placeholderColor
[324] Fix | Delete
);
[325] Fix | Delete
echo wp_kses($popupTypeObj->getFormCustomStyles($styleData), $allowed_html)
[326] Fix | Delete
?>
[327] Fix | Delete
<div style="max-width: 300px;margin: 0 auto;">
[328] Fix | Delete
<span class="sgpb-align-center"><?php
[329] Fix | Delete
/* translators: POPUP SUBSCRIPTION URL */
[330] Fix | Delete
printf( wp_kses_post(__('Get the <a href="%s">Subscription Plus</a> extension to add or customize the form fields.', 'popup-builder')), esc_url( SG_POPUP_SUBSCRIPTION_PLUS_URL ));?></span>
[331] Fix | Delete
</div>
[332] Fix | Delete
</div>
[333] Fix | Delete
</div>
[334] Fix | Delete
</div>
[335] Fix | Delete
</div>
[336] Fix | Delete
<script>
[337] Fix | Delete
jQuery('.js-subs-bg-opacity').on('change', function () {
[338] Fix | Delete
jQuery(this).siblings('span').text(this.value);
[339] Fix | Delete
})
[340] Fix | Delete
</script>
[341] Fix | Delete
[342] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function