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: conditionsView.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
$defaultData = SGPBConfigDataHelper::defaultData();
[6] Fix | Delete
$defaultConditionsAdvancedTargeting = $defaultData['freeConditionsAdvancedTargeting'];
[7] Fix | Delete
$defaultConditionsGeoTargeting = $defaultData['freeConditionsGeoTargeting'];
[8] Fix | Delete
?>
[9] Fix | Delete
[10] Fix | Delete
<div class="sgpb-wrapper">
[11] Fix | Delete
<div class="formItem sgpb-pro-conditions-main-wrapper sgpb-display-flex">
[12] Fix | Delete
<div class="sgpb-pro-conditions-box sgpb-margin-right-20">
[13] Fix | Delete
<img class="sgpb-pro-conditions-extension-icon sgpb-margin-y-20" src="<?php echo esc_url(SG_POPUP_PUBLIC_URL); ?>icons/geo-targeting.svg" width="50" height="50">
[14] Fix | Delete
<span class="sgpb-pro-conditions-title">
[15] Fix | Delete
<?php esc_html_e('Geo Targeting', 'popup-builder');?>
[16] Fix | Delete
</span>
[17] Fix | Delete
<span class="sgpb-pro-conditions-text">
[18] Fix | Delete
<?php esc_html_e('If you want to unlock Geo Targeting you need to activate this extension', 'popup-builder');?>.
[19] Fix | Delete
</span>
[20] Fix | Delete
<a href="<?php echo esc_url(SG_POPUP_GEO_TARGETING_URL); ?>" class="sgpb-btn sgpb-btn-blue sgpb-btn--rounded sgpb-margin-y-30">
[21] Fix | Delete
<?php esc_html_e('Buy Now', 'popup-builder');?>
[22] Fix | Delete
</a>
[23] Fix | Delete
<div class="sgpb-pro-conditions-inline-border sgpb-margin-bottom-20"></div>
[24] Fix | Delete
<a class="sgpb-pro-conditions-pro-url sgpb-pro-conditions-pro-url-show-js" href="javascript:void(0)">
[25] Fix | Delete
<?php esc_html_e('More Details', 'popup-builder');?>
[26] Fix | Delete
<img class="sgpb-pro-conditions-extension-icon" src="<?php echo esc_url(SG_POPUP_PUBLIC_URL); ?>icons/arrow-down.png" width="20" height="20">
[27] Fix | Delete
</a>
[28] Fix | Delete
<div class="sgpb-pro-conditions-list" style="display: none;">
[29] Fix | Delete
<?php foreach ($defaultConditionsGeoTargeting as $conditionIndex => $conditionName) : ?>
[30] Fix | Delete
<span class="formItem__direction sgpb-pro-conditions-list-item"><?php echo esc_html($conditionName); ?></span>
[31] Fix | Delete
<div class="sgpb-pro-conditions-inline-border sgpb-margin-y-10"></div>
[32] Fix | Delete
<?php endforeach; ?>
[33] Fix | Delete
</div>
[34] Fix | Delete
<a class="sgpb-pro-conditions-pro-url sgpb-pro-conditions-pro-url-hide-js sgpb-margin-top-20" href="javascript:void(0)" style="display: none;">
[35] Fix | Delete
<?php esc_html_e('See Less', 'popup-builder');?>
[36] Fix | Delete
<img class="sgpb-pro-conditions-extension-icon" src="<?php echo esc_url(SG_POPUP_PUBLIC_URL); ?>icons/arrow-up.png" width="20" height="20">
[37] Fix | Delete
</a>
[38] Fix | Delete
</div>
[39] Fix | Delete
<div class="sgpb-pro-conditions-box">
[40] Fix | Delete
<img class="sgpb-pro-conditions-extension-icon sgpb-margin-y-20" src="<?php echo esc_url(SG_POPUP_PUBLIC_URL); ?>icons/sgpbAdvancedTargeting.svg" width="50" height="50">
[41] Fix | Delete
<span class="sgpb-pro-conditions-title">
[42] Fix | Delete
<?php esc_html_e('Advanced Targeting', 'popup-builder');?>
[43] Fix | Delete
</span>
[44] Fix | Delete
<span class="sgpb-pro-conditions-text ">
[45] Fix | Delete
<?php esc_html_e('If you want to unlock Advanced Targeting you need to activate this extension', 'popup-builder');?>.
[46] Fix | Delete
</span>
[47] Fix | Delete
<a href="<?php echo esc_url(SG_POPUP_ADVANCED_TARGETING_URL); ?>" class="sgpb-btn sgpb-btn-blue sgpb-btn--rounded sgpb-margin-y-30">
[48] Fix | Delete
<?php esc_html_e('Buy Now', 'popup-builder');?>
[49] Fix | Delete
</a>
[50] Fix | Delete
<div class="sgpb-pro-conditions-inline-border sgpb-margin-bottom-20"></div>
[51] Fix | Delete
<a class="sgpb-pro-conditions-pro-url sgpb-pro-conditions-pro-url-show-js" href="javascript:void(0)">
[52] Fix | Delete
<?php esc_html_e('More Details', 'popup-builder');?>
[53] Fix | Delete
<img class="sgpb-pro-conditions-extension-icon" src="<?php echo esc_url(SG_POPUP_PUBLIC_URL); ?>icons/arrow-down.png" width="20" height="20">
[54] Fix | Delete
</a>
[55] Fix | Delete
<div class="sgpb-pro-conditions-list" style="display: none;">
[56] Fix | Delete
<?php foreach ($defaultConditionsAdvancedTargeting as $conditionIndex => $conditionName) : ?>
[57] Fix | Delete
<span class="formItem__direction sgpb-pro-conditions-list-item"><?php echo esc_html($conditionName); ?></span>
[58] Fix | Delete
<div class="sgpb-pro-conditions-inline-border sgpb-box-conditions-separator sgpb-margin-y-10"></div>
[59] Fix | Delete
<?php endforeach; ?>
[60] Fix | Delete
</div>
[61] Fix | Delete
<a class="sgpb-pro-conditions-pro-url sgpb-pro-conditions-pro-url-hide-js sgpb-margin-top-20" href="javascript:void(0)" style="display: none;">
[62] Fix | Delete
<?php esc_html_e('See Less', 'popup-builder');?>
[63] Fix | Delete
<img class="sgpb-pro-conditions-extension-icon" src="<?php echo esc_url(SG_POPUP_PUBLIC_URL); ?>icons/arrow-up.png" width="20" height="20">
[64] Fix | Delete
</a>
[65] Fix | Delete
</div>
[66] Fix | Delete
</div>
[67] Fix | Delete
<?php
[68] Fix | Delete
wp_register_script( 'sgpb-conditions-views-js-footer', '', array("jquery"), SGPB_POPUP_VERSION, true );
[69] Fix | Delete
wp_enqueue_script( 'sgpb-conditions-views-js-footer' );
[70] Fix | Delete
wp_add_inline_script( 'sgpb-conditions-views-js-footer', "jQuery('.sgpb-pro-conditions-pro-url-show-js').click(function() {
[71] Fix | Delete
jQuery(this).next('.sgpb-pro-conditions-list').show();
[72] Fix | Delete
jQuery(this).hide();
[73] Fix | Delete
jQuery(this).parent().find('.sgpb-pro-conditions-pro-url-hide-js').show();
[74] Fix | Delete
});
[75] Fix | Delete
jQuery('.sgpb-pro-conditions-pro-url-hide-js').click(function() {
[76] Fix | Delete
jQuery(this).prev('.sgpb-pro-conditions-list').hide();
[77] Fix | Delete
jQuery(this).hide();
[78] Fix | Delete
jQuery(this).parent().find('.sgpb-pro-conditions-pro-url-show-js').show();
[79] Fix | Delete
});");
[80] Fix | Delete
?>
[81] Fix | Delete
[82] Fix | Delete
</div>
[83] Fix | Delete
[84] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function