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: htmlCustomButtonElement.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
[6] Fix | Delete
$excludePostId = !empty($_GET['post']) ? (int)sanitize_text_field($_GET['post']) : 0;
[7] Fix | Delete
$excludedPopups = array($excludePostId);
[8] Fix | Delete
$allPopups = AdminHelper::getPopupsIdAndTitle($excludedPopups);
[9] Fix | Delete
?>
[10] Fix | Delete
<div class="sgpb-hide">
[11] Fix | Delete
<div id="sgpb-custom-button-wrapper">
[12] Fix | Delete
<?php
[13] Fix | Delete
$defaultData = SGPBConfigDataHelper::defaultData();
[14] Fix | Delete
$buttonDefaultStyles = array(
[15] Fix | Delete
'title' => __('Button','popup-builder'),
[16] Fix | Delete
'width' => '300px',
[17] Fix | Delete
'height' => '60px',
[18] Fix | Delete
'borderWidth' => '0px',
[19] Fix | Delete
'borderRadius' => '2px',
[20] Fix | Delete
'borderColor' => '#1a48a5',
[21] Fix | Delete
'backgroundColor' => '#1d6ab7',
[22] Fix | Delete
'backgroundHoverColor' => '#2184d1',
[23] Fix | Delete
'textColor' => '#FFFFFF'
[24] Fix | Delete
);
[25] Fix | Delete
?>
[26] Fix | Delete
<div class="sgpb-wrapper">
[27] Fix | Delete
<img class="sgpb-add-subscriber-popup-close-btn sgpb-custom-button-close-popup sgpb-close-media-popup-js" src="<?php echo esc_url(SG_POPUP_IMG_URL.'subscribers_close.png'); ?>" width='15px'>
[28] Fix | Delete
<div class="row form-group">
[29] Fix | Delete
<label for="sgpb-custom-btn-width" class="col-md-6 control-label sgpb-static-padding-top sgpb-sub-option">
[30] Fix | Delete
<?php esc_html_e('Title', 'popup-builder'); ?>:
[31] Fix | Delete
</label>
[32] Fix | Delete
<div class="col-md-6">
[33] Fix | Delete
<input class="form-control sgpb-full-width-events" data-contact-rel="js-contact-submit-btn" data-field-type="button" data-style-type="title" type="text" name="sgpb-custom-btn-title" id="sgpb-custom-btn-title" value="<?php echo esc_attr($buttonDefaultStyles['title']); ?>">
[34] Fix | Delete
</div>
[35] Fix | Delete
</div>
[36] Fix | Delete
<div class="row form-group">
[37] Fix | Delete
<div class="col-md-6">
[38] Fix | Delete
<div class="row form-group">
[39] Fix | Delete
<label class="col-md-12 control-label">
[40] Fix | Delete
<?php esc_html_e('Custom Button Styles', 'popup-builder'); ?>
[41] Fix | Delete
</label>
[42] Fix | Delete
</div>
[43] Fix | Delete
<div class="row form-group">
[44] Fix | Delete
<label for="sgpb-custom-btn-width" class="col-md-6 control-label sgpb-static-padding-top sgpb-sub-option">
[45] Fix | Delete
<?php esc_html_e('Width', 'popup-builder'); ?>:
[46] Fix | Delete
</label>
[47] Fix | Delete
<div class="col-md-6">
[48] Fix | Delete
<input class="form-control js-contact-dimension sgpb-full-width-events sgpb-custom-button-settings" data-contact-rel="js-contact-submit-btn" data-field-type="button" data-style-type="width" type="text" name="sgpb-custom-btn-width" id="sgpb-custom-btn-width" value="<?php echo esc_attr($buttonDefaultStyles['width']); ?>">
[49] Fix | Delete
</div>
[50] Fix | Delete
</div>
[51] Fix | Delete
<div class="row form-group">
[52] Fix | Delete
<label for="sgpb-custom-btn-height" class="col-md-6 control-label sgpb-static-padding-top sgpb-sub-option">
[53] Fix | Delete
<?php esc_html_e('Height', 'popup-builder'); ?>:
[54] Fix | Delete
</label>
[55] Fix | Delete
<div class="col-md-6">
[56] Fix | Delete
<input class="form-control js-contact-dimension sgpb-full-width-events sgpb-custom-button-settings" data-contact-rel="js-contact-submit-btn" data-field-type="button" data-style-type="height" type="text" name="sgpb-custom-btn-height" id="sgpb-custom-btn-height" value="<?php echo esc_attr($buttonDefaultStyles['height']); ?>">
[57] Fix | Delete
</div>
[58] Fix | Delete
</div>
[59] Fix | Delete
<div class="row form-group">
[60] Fix | Delete
<label for="sgpb-custom-btn-border-width" class="col-md-6 control-label sgpb-static-padding-top sgpb-sub-option">
[61] Fix | Delete
<?php esc_html_e('Border width', 'popup-builder'); ?>:
[62] Fix | Delete
</label>
[63] Fix | Delete
<div class="col-md-6">
[64] Fix | Delete
<input class="form-control js-contact-dimension sgpb-full-width-events sgpb-custom-button-settings" data-field-type="button" data-contact-rel="js-contact-submit-btn" data-style-type="border-width" type="text" name="sgpb-custom-btn-border-width" id="sgpb-custom-btn-border-width" value="<?php echo esc_attr($buttonDefaultStyles['borderWidth']); ?>">
[65] Fix | Delete
</div>
[66] Fix | Delete
</div>
[67] Fix | Delete
<div class="row form-group">
[68] Fix | Delete
<label for="sgpb-custom-btn-border-radius" class="col-md-6 control-label sgpb-sub-option">
[69] Fix | Delete
<?php esc_html_e('Border radius', 'popup-builder'); ?>:
[70] Fix | Delete
</label>
[71] Fix | Delete
<div class="col-md-6">
[72] Fix | Delete
<input class="form-control js-contact-dimension sgpb-full-width-events sgpb-custom-button-settings" data-contact-rel="js-contact-submit-btn" data-field-type="button" data-style-type="border-radius" type="text" name="sgpb-custom-btn-border-radius" id="sgpb-custom-btn-border-radius" value="<?php echo esc_attr($buttonDefaultStyles['borderRadius']); ?>">
[73] Fix | Delete
</div>
[74] Fix | Delete
</div>
[75] Fix | Delete
<div class="row form-group">
[76] Fix | Delete
<label for="sgpb-custom-btn-border-color" class="col-md-6 control-label sgpb-sub-option">
[77] Fix | Delete
<?php esc_html_e('Border color', 'popup-builder'); ?>:
[78] Fix | Delete
</label>
[79] Fix | Delete
<div class="col-md-6">
[80] Fix | Delete
<div class="sgpb-color-picker-wrapper">
[81] Fix | Delete
<input id="sgpb-custom-btn-border-color" class="sgpb-custom-button-color-picker sgpb-custom-button-settings" data-field-type="button" data-contact-rel="js-contact-submit-btn" data-style-type="border-color" type="text" name="sgpb-custom-btn-border-color" value="<?php echo esc_attr($buttonDefaultStyles['borderColor']); ?>">
[82] Fix | Delete
</div>
[83] Fix | Delete
</div>
[84] Fix | Delete
</div>
[85] Fix | Delete
<div class="row form-group">
[86] Fix | Delete
<label class="col-md-6 control-label sgpb-sub-option">
[87] Fix | Delete
<?php esc_html_e('Background color', 'popup-builder'); ?>:
[88] Fix | Delete
</label>
[89] Fix | Delete
<div class="col-md-6">
[90] Fix | Delete
<div class="sgpb-color-picker-wrapper">
[91] Fix | Delete
<input class="sgpb-custom-button-color-picker sgpb-custom-button-settings" data-field-type="button" data-contact-rel="js-contact-submit-btn" data-style-type="background-color" type="text" name="sgpb-custom-btn-bg-color" value="<?php echo esc_attr($buttonDefaultStyles['backgroundColor']); ?>">
[92] Fix | Delete
</div>
[93] Fix | Delete
</div>
[94] Fix | Delete
</div>
[95] Fix | Delete
<div class="row form-group">
[96] Fix | Delete
<label class="col-md-6 control-label sgpb-sub-option">
[97] Fix | Delete
<?php esc_html_e('Hover background color', 'popup-builder'); ?>:
[98] Fix | Delete
</label>
[99] Fix | Delete
<div class="col-md-6">
[100] Fix | Delete
<div class="sgpb-color-picker-wrapper">
[101] Fix | Delete
<input class="sgpb-custom-button-color-picker sgpb-custom-button-settings" data-field-type="button" data-contact-rel="js-contact-submit-btn" data-style-type="hover-color" type="text" name="sgpb-custom-btn-bg-color" value="<?php echo esc_attr($buttonDefaultStyles['backgroundHoverColor']); ?>">
[102] Fix | Delete
</div>
[103] Fix | Delete
</div>
[104] Fix | Delete
</div>
[105] Fix | Delete
<div class="row form-group">
[106] Fix | Delete
<label class="col-md-6 control-label sgpb-sub-option">
[107] Fix | Delete
<?php esc_html_e('Text color', 'popup-builder'); ?>:
[108] Fix | Delete
</label>
[109] Fix | Delete
<div class="col-md-6">
[110] Fix | Delete
<div class="sgpb-color-picker-wrapper">
[111] Fix | Delete
<input class="sgpb-custom-button-color-picker sgpb-custom-button-settings" data-field-type="button" data-contact-rel="js-contact-submit-btn" data-style-type="color" type="text" name="sgpb-custom-btn-text-color" value="<?php echo esc_attr($buttonDefaultStyles['textColor']); ?>">
[112] Fix | Delete
</div>
[113] Fix | Delete
</div>
[114] Fix | Delete
</div>
[115] Fix | Delete
</div>
[116] Fix | Delete
<div class="col-md-6">
[117] Fix | Delete
<div class="row form-group">
[118] Fix | Delete
<label class="col-md-12 control-label">
[119] Fix | Delete
<?php esc_html_e('Button events', 'popup-builder'); ?>
[120] Fix | Delete
</label>
[121] Fix | Delete
</div>
[122] Fix | Delete
<?php
[123] Fix | Delete
$multipleChoiceButton = new \sgpb\MultipleChoiceButton($defaultData['htmlCustomButtonArgs'], 'hidePopup');
[124] Fix | Delete
echo wp_kses($multipleChoiceButton, AdminHelper::allowed_html_tags());
[125] Fix | Delete
?>
[126] Fix | Delete
<div class="sg-hide sg-full-width" id="sgpb-custom-button-copy">
[127] Fix | Delete
<div class="row form-group">
[128] Fix | Delete
<label for="sgpb-custom-button-copy-to-clipboard-text" class="col-md-6 control-label sgpb-double-sub-option">
[129] Fix | Delete
<?php esc_html_e('Text', 'popup-builder')?>:
[130] Fix | Delete
</label>
[131] Fix | Delete
<div class="col-md-6"><input name="sgpb-custom-button-copy-to-clipboard-text" id="sgpb-custom-button-copy-to-clipboard-text" class="form-control sgpb-full-width-events" value="some text here"></div>
[132] Fix | Delete
</div>
[133] Fix | Delete
<div class="row form-group">
[134] Fix | Delete
<label for="sgpb-custom-button-copy-to-clipboard-close-popup" class="col-md-6 control-label sgpb-double-sub-option">
[135] Fix | Delete
<?php esc_html_e('Close popup', 'popup-builder')?>:
[136] Fix | Delete
</label>
[137] Fix | Delete
<div class="col-md-6"><input type="checkbox" name="sgpb-custom-button-copy-to-clipboard-close-popup" id="sgpb-custom-button-copy-to-clipboard-close-popup"></div>
[138] Fix | Delete
</div>
[139] Fix | Delete
<div class="row form-group">
[140] Fix | Delete
<label for="sgpb-custom-button-copy-to-clipboard-alert" class="col-md-6 control-label sgpb-double-sub-option">
[141] Fix | Delete
<?php esc_html_e('Show alert', 'popup-builder')?>:
[142] Fix | Delete
</label>
[143] Fix | Delete
<div class="col-md-6">
[144] Fix | Delete
<input type="checkbox" id="sgpb-custom-button-copy-to-clipboard-alert" class="js-checkbox-accordion" name="sgpb-custom-button-copy-to-clipboard-alert">
[145] Fix | Delete
</div>
[146] Fix | Delete
</div>
[147] Fix | Delete
<div class="sg-full-width form-group">
[148] Fix | Delete
<div class="row">
[149] Fix | Delete
<label for="col-md-5 sgpb-copy-to-clipboard-message" class="col-md-6 control-label sgpb-double-sub-option">
[150] Fix | Delete
<?php esc_html_e('Message', 'popup-builder')?>:
[151] Fix | Delete
</label>
[152] Fix | Delete
<div class="col-md-6">
[153] Fix | Delete
<input type="text" id="sgpb-custom-button-copy-to-clipboard-message" class="form-control sgpb-full-width-events " name="sgpb-custom-button-copy-to-clipboard-message" value="Copied to clipboard!">
[154] Fix | Delete
</div>
[155] Fix | Delete
</div>
[156] Fix | Delete
</div>
[157] Fix | Delete
</div>
[158] Fix | Delete
<div class="sg-hide sg-full-width" id="sgpb-custom-button-redirect-to-URL">
[159] Fix | Delete
<div class="row form-group">
[160] Fix | Delete
<label for="sgpb-custom-button-redirect-URL" class="col-md-6 control-label sgpb-double-sub-option">
[161] Fix | Delete
<?php esc_html_e('Redirect URL', 'popup-builder')?>:
[162] Fix | Delete
</label>
[163] Fix | Delete
<div class="col-md-6"><input type="url" name="sgpb-custom-button-redirect-URL" id="sgpb-custom-button-redirect-URL" placeholder="https://www.example.com" class="form-control sgpb-full-width-events" value=""></div>
[164] Fix | Delete
</div>
[165] Fix | Delete
<div class="row form-group">
[166] Fix | Delete
<label for="sgpb-custom-button-redirect-new-tab" class="col-md-6 control-label sgpb-double-sub-option">
[167] Fix | Delete
<?php esc_html_e('Redirect to new tab', 'popup-builder')?>:
[168] Fix | Delete
</label>
[169] Fix | Delete
<div class="col-md-6"><input type="checkbox" name="sgpb-custom-button-redirect-new-tab" id="sgpb-custom-button-redirect-new-tab" placeholder="https://www.example.com" ></div>
[170] Fix | Delete
</div>
[171] Fix | Delete
</div>
[172] Fix | Delete
<div class="sg-hide sg-full-width" id="sgpb-custom-button-open-popup">
[173] Fix | Delete
<div class="row form-group">
[174] Fix | Delete
<label for="sgpb-subs-success-redirect-URL" class="col-md-6 control-label sgpb-double-sub-option">
[175] Fix | Delete
<?php esc_html_e('Select popup', 'popup-builder')?>:
[176] Fix | Delete
</label>
[177] Fix | Delete
<div class="col-md-6">
[178] Fix | Delete
<?php echo wp_kses(sgpb\AdminHelper::createSelectBox($allPopups, '', array('name' => 'sgpb-custom-button-popup', 'class'=>'js-sg-select2 sgpb-full-width-events sgpb-custom-button-popup')), AdminHelper::allowed_html_tags()); ?>
[179] Fix | Delete
</div>
[180] Fix | Delete
</div>
[181] Fix | Delete
</div>
[182] Fix | Delete
<div>
[183] Fix | Delete
[184] Fix | Delete
</div>
[185] Fix | Delete
<div class="row">
[186] Fix | Delete
<div class="col-md-6">
[187] Fix | Delete
<input type="button" value="<?php esc_html_e('Insert', 'popup-builder'); ?>" class="btn btn-sm btn-success sgpb-subscriber-popup-btns sgpb-insert-custom-button-to-editor sgpb-close-media-popup-js" data-ajaxnonce="popupBuilderAjaxNonce">
[188] Fix | Delete
</div>
[189] Fix | Delete
<div class="col-md-6">
[190] Fix | Delete
<input type="button" value="<?php esc_html_e('Cancel', 'popup-builder'); ?>" class="btn btn-sm btn-default sgpb-add-subscriber-popup-close-btn-js sgpb-subscriber-popup-btns sgpb-subscriber-popup-close-btn-js sgpb-close-media-popup-js" data-ajaxnonce="popupBuilderAjaxNonce">
[191] Fix | Delete
</div>
[192] Fix | Delete
</div>
[193] Fix | Delete
</div>
[194] Fix | Delete
</div>
[195] Fix | Delete
</div>
[196] Fix | Delete
</div>
[197] Fix | Delete
</div>
[198] Fix | Delete
<style type="text/css">
[199] Fix | Delete
.sgpb-popup-dialog-main-div-theme-wrapper-1 {
[200] Fix | Delete
top: 86px !important;
[201] Fix | Delete
z-index: 999999 !important;
[202] Fix | Delete
}
[203] Fix | Delete
</style>
[204] Fix | Delete
[205] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function