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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/popup-bu.../com/classes
File: ConvertToNewVersion.php
}
[500] Fix | Delete
[501] Fix | Delete
/**
[502] Fix | Delete
* Get Addons options
[503] Fix | Delete
*
[504] Fix | Delete
* @param obj $popup
[505] Fix | Delete
*
[506] Fix | Delete
* @return bool|array
[507] Fix | Delete
*/
[508] Fix | Delete
private function getAddonsEventFromPopup($popup)
[509] Fix | Delete
{
[510] Fix | Delete
if (empty($popup)) {
[511] Fix | Delete
return false;
[512] Fix | Delete
}
[513] Fix | Delete
$popupId = $popup->getId();
[514] Fix | Delete
global $wpdb;
[515] Fix | Delete
$sg_popup_addons_connectionTableName = $wpdb->prefix.'sg_popup_addons_connection';
[516] Fix | Delete
$results = $wpdb->get_results($wpdb->prepare( "SELECT options FROM $sg_popup_addons_connectionTableName WHERE popupId = %d and extensionType = 'option'", $popupId) , ARRAY_A);
[517] Fix | Delete
[518] Fix | Delete
if (empty($results)) {
[519] Fix | Delete
return false;
[520] Fix | Delete
}
[521] Fix | Delete
[522] Fix | Delete
$options = array();
[523] Fix | Delete
[524] Fix | Delete
// it's collect all events saved values ex Exit Intent and AdBlock
[525] Fix | Delete
foreach ($results as $result) {
[526] Fix | Delete
$currentOptions = json_decode($result['options'], true);
[527] Fix | Delete
[528] Fix | Delete
if (empty($currentOptions)) {
[529] Fix | Delete
continue;
[530] Fix | Delete
}
[531] Fix | Delete
$options = array_merge($options, $currentOptions);
[532] Fix | Delete
}
[533] Fix | Delete
[534] Fix | Delete
return $options;
[535] Fix | Delete
}
[536] Fix | Delete
[537] Fix | Delete
/**
[538] Fix | Delete
* Filter and change some related values for new version
[539] Fix | Delete
*
[540] Fix | Delete
* @param array $options
[541] Fix | Delete
*
[542] Fix | Delete
* @return array $options
[543] Fix | Delete
*/
[544] Fix | Delete
private function filterOptions($options)
[545] Fix | Delete
{
[546] Fix | Delete
if (isset($options['effect']) && $options['effect'] != 'No effect') {
[547] Fix | Delete
$options['sgpb-open-animation'] = 'on';
[548] Fix | Delete
}
[549] Fix | Delete
[550] Fix | Delete
if (isset($options['isActiveStatus']) && $options['isActiveStatus'] == 'off') {
[551] Fix | Delete
$options['isActiveStatus'] = '';
[552] Fix | Delete
}
[553] Fix | Delete
[554] Fix | Delete
if (empty($options['sgTheme3BorderColor'])) {
[555] Fix | Delete
$options['sgTheme3BorderColor'] = '#000000';
[556] Fix | Delete
}
[557] Fix | Delete
[558] Fix | Delete
if (isset($options['popupContentBackgroundRepeat']) && ($options['popupContentBackgroundRepeat'] != 'no-repeat' && $options['popupContentBackgroundSize'] == 'auto')) {
[559] Fix | Delete
$options['popupContentBackgroundSize'] = 'repeat';
[560] Fix | Delete
}
[561] Fix | Delete
$themeNumber = 1;
[562] Fix | Delete
[563] Fix | Delete
if (isset($options['theme'])) {
[564] Fix | Delete
$themeNumber = preg_replace('/[^0-9]/', '', $options['theme']);
[565] Fix | Delete
}
[566] Fix | Delete
[567] Fix | Delete
if (isset($options['aweber-success-behavior']) && $options['aweber-success-behavior'] == 'redirectToUrl') {
[568] Fix | Delete
$options['aweber-success-behavior'] = 'redirectToURL';
[569] Fix | Delete
}
[570] Fix | Delete
[571] Fix | Delete
// pro options
[572] Fix | Delete
if (isset($options['disablePopupOverlay'])) {
[573] Fix | Delete
$options['sgpb-enable-popup-overlay'] = '';
[574] Fix | Delete
}
[575] Fix | Delete
// contact form new options
[576] Fix | Delete
if (isset($options['contact-success-behavior']) && $options['contact-success-behavior'] == 'redirectToUrl') {
[577] Fix | Delete
$options['contact-success-behavior'] = 'redirectToURL';
[578] Fix | Delete
}
[579] Fix | Delete
if (isset($options['contact-text-input-bgcolor'])) {
[580] Fix | Delete
$options['sgpb-contact-message-bg-color'] = $options['contact-text-input-bgcolor'];
[581] Fix | Delete
}
[582] Fix | Delete
if (isset($options['contact-text-bordercolor'])) {
[583] Fix | Delete
$options['sgpb-contact-message-border-color'] = $options['contact-text-bordercolor'];
[584] Fix | Delete
}
[585] Fix | Delete
if (isset($options['contact-inputs-color'])) {
[586] Fix | Delete
$options['sgpb-contact-message-text-color'] = $options['contact-inputs-color'];
[587] Fix | Delete
}
[588] Fix | Delete
if (isset($options['contact-placeholder-color'])) {
[589] Fix | Delete
$options['sgpb-contact-message-placeholder-color'] = $options['contact-placeholder-color'];
[590] Fix | Delete
}
[591] Fix | Delete
if (isset($options['contact-inputs-border-width'])) {
[592] Fix | Delete
$options['sgpb-contact-message-border-width'] = $options['contact-inputs-border-width'];
[593] Fix | Delete
}
[594] Fix | Delete
[595] Fix | Delete
if (isset($options['contact-success-popups-list'])) {
[596] Fix | Delete
$options['contact-success-popups-list'] = sgpGetCorrectPopupId($options['contact-success-popups-list']);
[597] Fix | Delete
}
[598] Fix | Delete
[599] Fix | Delete
if (isset($options['popup-content-padding'])) {
[600] Fix | Delete
// add theme default padding to content padding
[601] Fix | Delete
switch ($themeNumber) {
[602] Fix | Delete
case 1:
[603] Fix | Delete
$options['popup-content-padding'] += 7;
[604] Fix | Delete
break;
[605] Fix | Delete
case 4:
[606] Fix | Delete
case 6:
[607] Fix | Delete
$options['popup-content-padding'] += 12;
[608] Fix | Delete
break;
[609] Fix | Delete
case 2:
[610] Fix | Delete
case 3:
[611] Fix | Delete
$options['popup-content-padding'] += 0;
[612] Fix | Delete
break;
[613] Fix | Delete
case 5:
[614] Fix | Delete
$options['popup-content-padding'] += 5;
[615] Fix | Delete
break;
[616] Fix | Delete
}
[617] Fix | Delete
}
[618] Fix | Delete
[619] Fix | Delete
switch ($themeNumber) {
[620] Fix | Delete
case 1:
[621] Fix | Delete
$buttonImageWidth = 21;
[622] Fix | Delete
$buttonImageHeight = 21;
[623] Fix | Delete
break;
[624] Fix | Delete
case 2:
[625] Fix | Delete
$buttonImageWidth = 20;
[626] Fix | Delete
$buttonImageHeight = 20;
[627] Fix | Delete
break;
[628] Fix | Delete
case 3:
[629] Fix | Delete
$buttonImageWidth = 38;
[630] Fix | Delete
$buttonImageHeight = 19;
[631] Fix | Delete
break;
[632] Fix | Delete
case 5:
[633] Fix | Delete
$buttonImageWidth = 17;
[634] Fix | Delete
$buttonImageHeight = 17;
[635] Fix | Delete
break;
[636] Fix | Delete
case 6:
[637] Fix | Delete
$buttonImageWidth = 30;
[638] Fix | Delete
$buttonImageHeight = 30;
[639] Fix | Delete
break;
[640] Fix | Delete
default:
[641] Fix | Delete
$buttonImageWidth = 0;
[642] Fix | Delete
$buttonImageHeight = 0;
[643] Fix | Delete
}
[644] Fix | Delete
[645] Fix | Delete
// social popup add to default value
[646] Fix | Delete
if (empty($options['sgMailLable'])) {
[647] Fix | Delete
$options['sgMailLable'] = 'E-mail';
[648] Fix | Delete
}
[649] Fix | Delete
if (empty($options['fbShareLabel'])) {
[650] Fix | Delete
$options['fbShareLabel'] = 'Share';
[651] Fix | Delete
}
[652] Fix | Delete
if (empty($options['lindkinLabel'])) {
[653] Fix | Delete
$options['lindkinLabel'] = 'Share';
[654] Fix | Delete
}
[655] Fix | Delete
if (empty($options['googLelabel'])) {
[656] Fix | Delete
$options['googLelabel'] = '+1';
[657] Fix | Delete
}
[658] Fix | Delete
if (empty($options['twitterLabel'])) {
[659] Fix | Delete
$options['twitterLabel'] = 'Tweet';
[660] Fix | Delete
}
[661] Fix | Delete
if (empty($options['pinterestLabel'])) {
[662] Fix | Delete
$options['pinterestLabel'] = 'Pin it';
[663] Fix | Delete
}
[664] Fix | Delete
[665] Fix | Delete
if (isset($options['subs-success-behavior']) && $options['subs-success-behavior'] == 'redirectToUrl') {
[666] Fix | Delete
$options['subs-success-behavior'] = 'redirectToURL';
[667] Fix | Delete
}
[668] Fix | Delete
[669] Fix | Delete
$options['sgpb-subs-form-bg-color'] = '#FFFFFF';
[670] Fix | Delete
$options['sgpb-button-image-width'] = $buttonImageWidth;
[671] Fix | Delete
$options['sgpb-button-image-height'] = $buttonImageHeight;
[672] Fix | Delete
[673] Fix | Delete
// pro options customizations
[674] Fix | Delete
if (SGPB_POPUP_PKG > SGPB_POPUP_PKG_FREE) {
[675] Fix | Delete
if (empty($options['sgpb-restriction-yes-btn-radius-type'])) {
[676] Fix | Delete
$options['sgpb-restriction-yes-btn-radius-type'] = '%';
[677] Fix | Delete
}
[678] Fix | Delete
[679] Fix | Delete
if (empty($options['sgpb-restriction-no-btn-radius-type'])) {
[680] Fix | Delete
$options['sgpb-restriction-no-btn-radius-type'] = '%';
[681] Fix | Delete
}
[682] Fix | Delete
[683] Fix | Delete
if (empty($options['sgpb-restriction-yes-btn-border-color'])) {
[684] Fix | Delete
// border color should be like background color
[685] Fix | Delete
$options['sgpb-restriction-yes-btn-border-color'] = $options['yesButtonBackgroundColor'];
[686] Fix | Delete
}
[687] Fix | Delete
if (empty($options['sgpb-restriction-no-btn-border-color'])) {
[688] Fix | Delete
// border color should be like background color
[689] Fix | Delete
$options['sgpb-restriction-no-btn-border-color'] = $options['noButtonBackgroundColor'];
[690] Fix | Delete
}
[691] Fix | Delete
}
[692] Fix | Delete
[693] Fix | Delete
return $options;
[694] Fix | Delete
}
[695] Fix | Delete
[696] Fix | Delete
public function changeOldValues($optionName, $optionValue)
[697] Fix | Delete
{
[698] Fix | Delete
if ($optionName == 'theme') {
[699] Fix | Delete
$themeNumber = preg_replace('/[^0-9]/', '', $optionValue);
[700] Fix | Delete
$optionValue = 'sgpb-theme-'.$themeNumber;
[701] Fix | Delete
}
[702] Fix | Delete
[703] Fix | Delete
return $optionValue;
[704] Fix | Delete
}
[705] Fix | Delete
[706] Fix | Delete
private function popupObjectFromArray($arr)
[707] Fix | Delete
{
[708] Fix | Delete
global $wpdb;
[709] Fix | Delete
[710] Fix | Delete
$options = json_decode($arr['options'], true);
[711] Fix | Delete
$type = $arr['type'];
[712] Fix | Delete
[713] Fix | Delete
if (empty($type)) {
[714] Fix | Delete
return false;
[715] Fix | Delete
}
[716] Fix | Delete
[717] Fix | Delete
$this->setId($arr['id']);
[718] Fix | Delete
$this->setType($type);
[719] Fix | Delete
$this->setTitle($arr['title']);
[720] Fix | Delete
$this->setContent('');
[721] Fix | Delete
[722] Fix | Delete
switch ($type) {
[723] Fix | Delete
case 'image':
[724] Fix | Delete
$sg_image_popup = $wpdb->prefix.'sg_image_popup';
[725] Fix | Delete
$result = $wpdb->get_row( $wpdb->prepare("SELECT `url` FROM $sg_image_popup WHERE id = %d", $arr['id']) , ARRAY_A);
[726] Fix | Delete
[727] Fix | Delete
if (!empty($result['url'])) {
[728] Fix | Delete
$options['image-url'] = $result['url'];
[729] Fix | Delete
}
[730] Fix | Delete
break;
[731] Fix | Delete
case 'html':
[732] Fix | Delete
$sg_html_popup = $wpdb->prefix.'sg_html_popup';
[733] Fix | Delete
$result = $wpdb->get_row( $wpdb->prepare("SELECT `content` FROM $sg_html_popup WHERE id = %d", $arr['id']), ARRAY_A);
[734] Fix | Delete
[735] Fix | Delete
if (!empty($result['content'])) {
[736] Fix | Delete
$this->setContent($result['content']);
[737] Fix | Delete
}
[738] Fix | Delete
break;
[739] Fix | Delete
case 'fblike':
[740] Fix | Delete
$sg_fblike_popup = $wpdb->prefix.'sg_fblike_popup';
[741] Fix | Delete
$result = $wpdb->get_row( $wpdb->prepare("SELECT `content`, `options` FROM $sg_fblike_popup WHERE id = %d", $arr['id']), ARRAY_A);
[742] Fix | Delete
[743] Fix | Delete
if (!empty($result['content'])) {
[744] Fix | Delete
$this->setContent($result['content']);
[745] Fix | Delete
}
[746] Fix | Delete
$customOptions = $result['options'];
[747] Fix | Delete
$customOptions = json_decode($customOptions, true);
[748] Fix | Delete
[749] Fix | Delete
if (!empty($options)) {
[750] Fix | Delete
$this->setCustomOptions($customOptions);
[751] Fix | Delete
}
[752] Fix | Delete
break;
[753] Fix | Delete
case 'shortcode':
[754] Fix | Delete
$sg_shortCode_popup = $wpdb->prefix.'sg_shortCode_popup';
[755] Fix | Delete
$result = $wpdb->get_row( $wpdb->prepare("SELECT `url` FROM $sg_shortCode_popup WHERE id = %d", $arr['id']), ARRAY_A);
[756] Fix | Delete
[757] Fix | Delete
if (!empty($result['url'])) {
[758] Fix | Delete
$this->setContent($result['url']);
[759] Fix | Delete
}
[760] Fix | Delete
break;
[761] Fix | Delete
case 'iframe':
[762] Fix | Delete
$sg_iframe_popup = $wpdb->prefix.'sg_iframe_popup';
[763] Fix | Delete
$result = $wpdb->get_row( $wpdb->prepare("SELECT `url` FROM $sg_iframe_popup WHERE id = %d", $arr['id']), ARRAY_A);
[764] Fix | Delete
if (!empty($result['url'])) {
[765] Fix | Delete
$options['iframe-url'] = $result['url'];
[766] Fix | Delete
}
[767] Fix | Delete
break;
[768] Fix | Delete
case 'video':
[769] Fix | Delete
$sg_video_popup = $wpdb->prefix.'sg_video_popup';
[770] Fix | Delete
$result = $wpdb->get_row( $wpdb->prepare("SELECT `url`, `options` FROM $sg_video_popup WHERE id = %d", $arr['id']), ARRAY_A);
[771] Fix | Delete
if (!empty($result['url'])) {
[772] Fix | Delete
$options['video-url'] = $result['url'];
[773] Fix | Delete
}
[774] Fix | Delete
[775] Fix | Delete
$customOptions = $result['options'];
[776] Fix | Delete
$customOptions = json_decode($customOptions, true);
[777] Fix | Delete
[778] Fix | Delete
if (!empty($customOptions)) {
[779] Fix | Delete
$this->setCustomOptions($customOptions);
[780] Fix | Delete
}
[781] Fix | Delete
break;
[782] Fix | Delete
case 'ageRestriction':
[783] Fix | Delete
$sg_age_restriction_popup = $wpdb->prefix.'sg_age_restriction_popup';
[784] Fix | Delete
$result = $wpdb->get_row( $wpdb->prepare("SELECT `content`, `yesButton` as `yesButtonLabel`, `noButton` as `noButtonLabel`, `url` as `restrictionUrl` FROM $sg_age_restriction_popup WHERE id = %d", $arr['id']), ARRAY_A);
[785] Fix | Delete
if (!empty($result['content'])) {
[786] Fix | Delete
$this->setContent($result['content']);
[787] Fix | Delete
}
[788] Fix | Delete
unset($result['content']);
[789] Fix | Delete
if (!empty($result)) {
[790] Fix | Delete
$this->setCustomOptions($result);
[791] Fix | Delete
}
[792] Fix | Delete
break;
[793] Fix | Delete
case 'social':
[794] Fix | Delete
$sg_social_popup = $wpdb->prefix.'sg_social_popup';
[795] Fix | Delete
$result = $wpdb->get_row( $wpdb->prepare("SELECT `socialContent`, `buttons`, `socialOptions` FROM $sg_social_popup WHERE id = %d", $arr['id']), ARRAY_A);
[796] Fix | Delete
[797] Fix | Delete
if (!empty($result['socialContent'])) {
[798] Fix | Delete
$this->setContent($result['socialContent']);
[799] Fix | Delete
}
[800] Fix | Delete
[801] Fix | Delete
$buttons = json_decode($result['buttons'], true);
[802] Fix | Delete
$socialOptions = json_decode($result['socialOptions'], true);
[803] Fix | Delete
[804] Fix | Delete
$socialAllOptions = array_merge($buttons, $socialOptions);
[805] Fix | Delete
[806] Fix | Delete
$this->setCustomOptions($socialAllOptions);
[807] Fix | Delete
break;
[808] Fix | Delete
case 'subscription':
[809] Fix | Delete
$sg_subscription_popup = $wpdb->prefix.'sg_subscription_popup';
[810] Fix | Delete
$result = $wpdb->get_row( $wpdb->prepare("SELECT `content`, `options` FROM $sg_subscription_popup WHERE id = %d", $arr['id']), ARRAY_A);
[811] Fix | Delete
[812] Fix | Delete
if (!empty($result['content'])) {
[813] Fix | Delete
$this->setContent($result['content']);
[814] Fix | Delete
}
[815] Fix | Delete
[816] Fix | Delete
$subsOptions = $result['options'];
[817] Fix | Delete
$subsOptions = json_decode($subsOptions, true);
[818] Fix | Delete
[819] Fix | Delete
if (!empty($subsOptions)) {
[820] Fix | Delete
$this->setCustomOptions($subsOptions);
[821] Fix | Delete
}
[822] Fix | Delete
break;
[823] Fix | Delete
case 'countdown':
[824] Fix | Delete
$sg_countdown_popup = $wpdb->prefix.'sg_countdown_popup';
[825] Fix | Delete
$result = $wpdb->get_row( $wpdb->prepare("SELECT `content`, `options` FROM $sg_countdown_popup WHERE id = %d", $arr['id']), ARRAY_A);
[826] Fix | Delete
[827] Fix | Delete
if (!empty($result['content'])) {
[828] Fix | Delete
$this->setContent($result['content']);
[829] Fix | Delete
}
[830] Fix | Delete
$customOptions = $result['options'];
[831] Fix | Delete
$customOptions = json_decode($customOptions, true);
[832] Fix | Delete
[833] Fix | Delete
if (!empty($options)) {
[834] Fix | Delete
$this->setCustomOptions($customOptions);
[835] Fix | Delete
}
[836] Fix | Delete
break;
[837] Fix | Delete
case 'contactForm':
[838] Fix | Delete
$sg_contact_form_popup = $wpdb->prefix.'sg_contact_form_popup';
[839] Fix | Delete
$result = $wpdb->get_row( $wpdb->prepare("SELECT `content`, `options` FROM $sg_contact_form_popup WHERE id = %d", $arr['id']), ARRAY_A);
[840] Fix | Delete
[841] Fix | Delete
if (!empty($result['content'])) {
[842] Fix | Delete
$this->setContent($result['content']);
[843] Fix | Delete
}
[844] Fix | Delete
$customOptions = $result['options'];
[845] Fix | Delete
$customOptions = json_decode($customOptions, true);
[846] Fix | Delete
[847] Fix | Delete
if (!empty($options)) {
[848] Fix | Delete
$this->setCustomOptions($customOptions);
[849] Fix | Delete
}
[850] Fix | Delete
break;
[851] Fix | Delete
case 'mailchimp':
[852] Fix | Delete
$sg_popup_mailchimp = $wpdb->prefix.'sg_popup_mailchimp';
[853] Fix | Delete
$result = $wpdb->get_row( $wpdb->prepare("SELECT `content`, `options` FROM $sg_popup_mailchimp WHERE id = %d", $arr['id']), ARRAY_A);
[854] Fix | Delete
[855] Fix | Delete
if (!empty($result['content'])) {
[856] Fix | Delete
$this->setContent($result['content']);
[857] Fix | Delete
}
[858] Fix | Delete
[859] Fix | Delete
$customOptions = $result['options'];
[860] Fix | Delete
$customOptions = json_decode($customOptions, true);
[861] Fix | Delete
[862] Fix | Delete
if (!empty($options)) {
[863] Fix | Delete
$this->setCustomOptions($customOptions);
[864] Fix | Delete
}
[865] Fix | Delete
break;
[866] Fix | Delete
case 'aweber':
[867] Fix | Delete
$sg_popup_aweber = $wpdb->prefix.'sg_popup_aweber';
[868] Fix | Delete
$result = $wpdb->get_row( $wpdb->prepare("SELECT `content`, `options` FROM $sg_popup_aweber WHERE id = %d", $arr['id']), ARRAY_A);
[869] Fix | Delete
[870] Fix | Delete
if (!empty($result['content'])) {
[871] Fix | Delete
$this->setContent($result['content']);
[872] Fix | Delete
}
[873] Fix | Delete
[874] Fix | Delete
$customOptions = $result['options'];
[875] Fix | Delete
$customOptions = json_decode($customOptions, true);
[876] Fix | Delete
[877] Fix | Delete
if (!empty($options)) {
[878] Fix | Delete
$this->setCustomOptions($customOptions);
[879] Fix | Delete
}
[880] Fix | Delete
break;
[881] Fix | Delete
}
[882] Fix | Delete
[883] Fix | Delete
$this->setOptions($options);
[884] Fix | Delete
[885] Fix | Delete
return $this;
[886] Fix | Delete
}
[887] Fix | Delete
[888] Fix | Delete
public function getNamesMapping()
[889] Fix | Delete
{
[890] Fix | Delete
$names = array(
[891] Fix | Delete
'type' => 'sgpb-type',
[892] Fix | Delete
'delay' => 'sgpb-popup-delay',
[893] Fix | Delete
'isActiveStatus' => 'sgpb-is-active',
[894] Fix | Delete
'image-url' => 'sgpb-image-url',
[895] Fix | Delete
'theme' => 'sgpb-popup-themes',
[896] Fix | Delete
'effect' => 'sgpb-open-animation-effect',
[897] Fix | Delete
'duration' => 'sgpb-open-animation-speed',
[898] Fix | Delete
'popupOpenSound' => 'sgpb-open-sound',
[899] Fix | Delete
'popupOpenSoundFile' => 'sgpb-sound-url',
[900] Fix | Delete
'popup-dimension-mode' => 'sgpb-popup-dimension-mode',
[901] Fix | Delete
'popup-responsive-dimension-measure' => 'sgpb-responsive-dimension-measure',
[902] Fix | Delete
'width' => 'sgpb-width',
[903] Fix | Delete
'height' => 'sgpb-height',
[904] Fix | Delete
'maxWidth' => 'sgpb-max-width',
[905] Fix | Delete
'maxHeight' => 'sgpb-max-height',
[906] Fix | Delete
'escKey' => 'sgpb-esc-key',
[907] Fix | Delete
'closeButton' => 'sgpb-enable-close-button',
[908] Fix | Delete
'buttonDelayValue' => 'sgpb-close-button-delay',
[909] Fix | Delete
'scrolling' => 'sgpb-enable-content-scrolling',
[910] Fix | Delete
'disable-page-scrolling' => 'sgpb-disable-page-scrolling',
[911] Fix | Delete
'overlayClose' => 'sgpb-overlay-click',
[912] Fix | Delete
'contentClick' => 'sgpb-content-click',
[913] Fix | Delete
'content-click-behavior' => 'sgpb-content-click-behavior',
[914] Fix | Delete
'click-redirect-to-url' => 'sgpb-click-redirect-to-url',
[915] Fix | Delete
'redirect-to-new-tab' => 'sgpb-redirect-to-new-tab',
[916] Fix | Delete
'reopenAfterSubmission' => 'sgpb-reopen-after-form-submission',
[917] Fix | Delete
'repeatPopup' => 'sgpb-show-popup-same-user',
[918] Fix | Delete
'popup-appear-number-limit' => 'sgpb-show-popup-same-user-count',
[919] Fix | Delete
'onceExpiresTime' => 'sgpb-show-popup-same-user-expiry',
[920] Fix | Delete
'save-cookie-page-level' => 'sgpb-show-popup-same-user-page-level',
[921] Fix | Delete
'popupContentBgImage' => 'sgpb-show-background',
[922] Fix | Delete
'popupContentBackgroundSize' => 'sgpb-background-image-mode',
[923] Fix | Delete
'popupContentBgImageUrl' => 'sgpb-background-image',
[924] Fix | Delete
'sgOverlayColor' => 'sgpb-overlay-color',
[925] Fix | Delete
'sg-content-background-color' => 'sgpb-background-color',
[926] Fix | Delete
'popup-background-opacity' => 'sgpb-content-opacity',
[927] Fix | Delete
'opacity' => 'sgpb-overlay-opacity',
[928] Fix | Delete
'sgOverlayCustomClasss' => 'sgpb-overlay-custom-class',
[929] Fix | Delete
'sgContentCustomClasss' => 'sgpb-content-custom-class',
[930] Fix | Delete
'popup-z-index' => 'sgpb-popup-z-index',
[931] Fix | Delete
'popup-content-padding' => 'sgpb-content-padding',
[932] Fix | Delete
'popupFixed' => 'sgpb-popup-fixed',
[933] Fix | Delete
'fixedPostion' => 'sgpb-popup-fixed-position',
[934] Fix | Delete
'sgpb-open-animation' => 'sgpb-open-animation',
[935] Fix | Delete
'theme-close-text' => 'sgpb-button-text',
[936] Fix | Delete
'sgTheme3BorderRadius' => 'sgpb-border-radius',
[937] Fix | Delete
'sgTheme3BorderColor' => 'sgpb-border-color',
[938] Fix | Delete
'fblike-like-url' => 'sgpb-fblike-like-url',
[939] Fix | Delete
'fblike-layout' => 'sgpb-fblike-layout',
[940] Fix | Delete
'fblike-dont-show-share-button' => 'sgpb-fblike-dont-show-share-button',
[941] Fix | Delete
'sgpb-button-image-width' => 'sgpb-button-image-width',
[942] Fix | Delete
'sgpb-button-image-height' => 'sgpb-button-image-height'
[943] Fix | Delete
);
[944] Fix | Delete
// iframe pro popup type
[945] Fix | Delete
$names['iframe-url'] = 'sgpb-iframe-url';
[946] Fix | Delete
[947] Fix | Delete
// video pro popup type
[948] Fix | Delete
$names['video-url'] = 'sgpb-video-url';
[949] Fix | Delete
$names['video-autoplay'] = 'sgpb-video-autoplay';
[950] Fix | Delete
[951] Fix | Delete
// age restriction
[952] Fix | Delete
$names['yesButtonLabel'] = 'sgpb-restriction-yes-btn';
[953] Fix | Delete
$names['noButtonLabel'] = 'sgpb-restriction-no-btn';
[954] Fix | Delete
$names['restrictionUrl'] = 'sgpb-restriction-no-url';
[955] Fix | Delete
$names['yesButtonBackgroundColor'] = 'sgpb-restriction-yes-btn-bg-color';
[956] Fix | Delete
$names['yesButtonTextColor'] = 'sgpb-restriction-yes-btn-text-color';
[957] Fix | Delete
$names['yesButtonRadius'] = 'sgpb-restriction-yes-btn-radius';
[958] Fix | Delete
$names['sgRestrictionExpirationTime'] = 'sgpb-restriction-yes-expiration-time';
[959] Fix | Delete
$names['restrictionCookeSavingLevel'] = 'sgpb-restriction-cookie-level';
[960] Fix | Delete
$names['noButtonBackgroundColor'] = 'sgpb-restriction-no-btn-bg-color';
[961] Fix | Delete
$names['noButtonTextColor'] = 'sgpb-restriction-no-btn-text-color';
[962] Fix | Delete
$names['noButtonRadius'] = 'sgpb-restriction-no-btn-radius';
[963] Fix | Delete
[964] Fix | Delete
// age restriction new options
[965] Fix | Delete
$names['sgpb-restriction-yes-btn-radius-type'] = 'sgpb-restriction-yes-btn-radius-type';
[966] Fix | Delete
$names['sgpb-restriction-no-btn-radius-type'] = 'sgpb-restriction-no-btn-radius-type';
[967] Fix | Delete
$names['sgpb-restriction-yes-btn-border-color'] = 'sgpb-restriction-yes-btn-border-color';
[968] Fix | Delete
$names['sgpb-restriction-no-btn-border-color'] = 'sgpb-restriction-no-btn-border-color';
[969] Fix | Delete
[970] Fix | Delete
$proNames = array(
[971] Fix | Delete
'autoClosePopup' => 'sgpb-auto-close',
[972] Fix | Delete
'popupClosingTimer' => 'sgpb-auto-close-time',
[973] Fix | Delete
'disablePopupOverlay' => 'sgpb-enable-popup-overlay',
[974] Fix | Delete
'disablePopup' => 'sgpb-disable-popup-closing',
[975] Fix | Delete
'popup-schedule-status' => 'sgpb-schedule-status',
[976] Fix | Delete
'schedule-start-weeks' => 'sgpb-schedule-weeks',
[977] Fix | Delete
'schedule-start-time' => 'sgpb-schedule-start-time',
[978] Fix | Delete
'schedule-end-time' => 'sgpb-schedule-end-time',
[979] Fix | Delete
'popup-timer-status' => 'sgpb-popup-timer-status',
[980] Fix | Delete
'popup-start-timer' => 'sgpb-popup-start-timer',
[981] Fix | Delete
'popup-finish-timer' => 'sgpb-popup-end-timer',
[982] Fix | Delete
'inActivityStatus' => 'sgpb-inactivity-status',
[983] Fix | Delete
'inactivity-timout' => 'sgpb-inactivity-timer',
[984] Fix | Delete
'onScrolling' => 'sgpb-onscroll-status',
[985] Fix | Delete
'beforeScrolingPrsent' => 'sgpb-onscroll-percentage',
[986] Fix | Delete
'sg-user-status' => 'sgpb-by-user-status',
[987] Fix | Delete
'loggedin-user' => 'sgpb-for-logged-in-user',
[988] Fix | Delete
'forMobile' => 'sgpb-hide-on-mobile',
[989] Fix | Delete
'openMobile' => 'sgpb-only-on-mobile',
[990] Fix | Delete
'countryStatus' => 'sgpb-by-country',
[991] Fix | Delete
'allowCountries' => 'sgpb-allow-countries',
[992] Fix | Delete
'countryIso' => 'sgpb-countries-iso',
[993] Fix | Delete
'randomPopup' => 'sgpb-random-popup'
[994] Fix | Delete
);
[995] Fix | Delete
$names = array_merge($names, $proNames);
[996] Fix | Delete
[997] Fix | Delete
// pro options
[998] Fix | Delete
$names['allPagesStatus'] = 'allPagesStatus';
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function