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: dimensionsView.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
$defaultData = SGPBConfigDataHelper::defaultData();
[7] Fix | Delete
$removedOptions = $popupTypeObj->getRemoveOptions();
[8] Fix | Delete
$multipleChoiceButton = new MultipleChoiceButton($defaultData['popupDimensions'], $popupTypeObj->getOptionValue('sgpb-popup-dimension-mode'));
[9] Fix | Delete
$subOptionClass = ' sgpb-sub-option';
[10] Fix | Delete
if (!empty($removedOptions['sgpb-popup-dimension-mode'])) {
[11] Fix | Delete
$subOptionClass = '';
[12] Fix | Delete
}
[13] Fix | Delete
$allowed_html = AdminHelper::allowed_html_tags();
[14] Fix | Delete
[15] Fix | Delete
?>
[16] Fix | Delete
<div class="sgpb sgpb-wrapper dimensions ">
[17] Fix | Delete
<?php echo !empty($removedOptions['sgpb-popup-dimension-mode']) ? esc_html('') : wp_kses($multipleChoiceButton, $allowed_html); ?>
[18] Fix | Delete
<div class="sg-hide sg-full-width" id="responsive-dimension-wrapper">
[19] Fix | Delete
<div class="subFormItem<?php echo esc_attr($subOptionClass); ?>">
[20] Fix | Delete
<span class="subFormItem__title" for="max-height"><?php esc_html_e('Size', 'popup-builder') ?>:</span>
[21] Fix | Delete
<?php echo wp_kses(AdminHelper::createSelectBox($defaultData['responsiveDimensions'], $popupTypeObj->getOptionValue('sgpb-responsive-dimension-measure'), array('name' => 'sgpb-responsive-dimension-measure', 'class'=>'js-sg-select2 sgpb-responsive-mode-change-js')), $allowed_html); ?>
[22] Fix | Delete
</div>
[23] Fix | Delete
</div>
[24] Fix | Delete
<div class="<?php echo (!empty($removedOptions['sgpb-popup-dimension-mode'])) ? esc_attr('') : esc_attr('sg-hide '); ?>sg-full-width formItem" id="custom-dimension-wrapper">
[25] Fix | Delete
<div class="subFormItem<?php echo esc_attr($subOptionClass); ?>">
[26] Fix | Delete
<span class="subFormItem__title"><?php esc_html_e('Width', 'popup-builder'); ?>:</span>
[27] Fix | Delete
<input type="text" id="width" class="subFormItem__input" name="sgpb-width" placeholder="<?php esc_html_e('Ex: 100, 100px or 100%', 'popup-builder')?>" pattern = "\d+(([px]+|%)|)" title="<?php esc_html_e('It must be number + px or %', 'popup-builder') ?>" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-width')) ?>">
[28] Fix | Delete
</div>
[29] Fix | Delete
<div class="subFormItem<?php echo esc_attr($subOptionClass); ?>">
[30] Fix | Delete
<span class="subFormItem__title"><?php esc_html_e('Height', 'popup-builder'); ?>:</span>
[31] Fix | Delete
<input type="text" id="height" class="subFormItem__input" name="sgpb-height" placeholder="<?php esc_html_e('Ex: 100, 100px or 100%', 'popup-builder')?>" pattern = "\d+(([px]+|%)|)" title="<?php esc_html_e('It must be number + px or %', 'popup-builder') ?>" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-height')) ?>">
[32] Fix | Delete
</div>
[33] Fix | Delete
</div>
[34] Fix | Delete
<div class="formItem bottom">
[35] Fix | Delete
<div class="minWidth sgpb-display-inline-flex sgpb-align-item-center sgpb-margin-right-20">
[36] Fix | Delete
<span class="formItem__title formItem__title_equals"><?php esc_html_e('Max width', 'popup-builder'); ?>:</span>
[37] Fix | Delete
<input type="text" id="max-width" class="subFormItem__input" name="sgpb-max-width" placeholder="<?php esc_html_e('Ex: 100, 100px or 100%', 'popup-builder')?>" pattern = "\d+(([px]+|%)|)" title="<?php esc_html_e('It must be number + px or %', 'popup-builder') ?>" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-max-width')) ?>">
[38] Fix | Delete
</div>
[39] Fix | Delete
<div class="maxHeight sgpb-display-inline-flex sgpb-align-item-center">
[40] Fix | Delete
<span class="formItem__title formItem__title_equals"><?php esc_html_e('Max height', 'popup-builder'); ?>:</span>
[41] Fix | Delete
<input type="text" id="max-height" class="subFormItem__input" name="sgpb-max-height" placeholder="<?php esc_html_e('Ex: 100, 100px or 100%', 'popup-builder')?>" pattern = "\d+(([px]+|%)|)" title="<?php esc_html_e('It must be number + px or %', 'popup-builder') ?>" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-max-height')) ?>">
[42] Fix | Delete
</div>
[43] Fix | Delete
</div>
[44] Fix | Delete
<div class="formItem">
[45] Fix | Delete
<div class="minWidth sgpb-display-inline-flex sgpb-align-item-center sgpb-margin-right-20">
[46] Fix | Delete
<span class="formItem__title formItem__title_equals"><?php esc_html_e('Min width', 'popup-builder'); ?>:</span>
[47] Fix | Delete
<input type="text" id="min-width" class="subFormItem__input" name="sgpb-min-width" placeholder="<?php esc_html_e('Ex: 100, 100px or 100%', 'popup-builder')?>" pattern = "\d+(([px]+|%)|)" title="<?php esc_html_e('It must be number + px or %', 'popup-builder') ?>" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-min-width')) ?>">
[48] Fix | Delete
</div>
[49] Fix | Delete
<div class="maxHeight sgpb-display-inline-flex sgpb-align-item-center">
[50] Fix | Delete
<span class="formItem__title formItem__title_equals"><?php esc_html_e('Min height', 'popup-builder'); ?>:</span>
[51] Fix | Delete
<input type="text" id="min-height" class="subFormItem__input" name="sgpb-min-height" placeholder="<?php esc_html_e('Ex: 100, 100px or 100%', 'popup-builder')?>" pattern = "\d+(([px]+|%)|)" title="<?php esc_html_e('It must be number + px or %', 'popup-builder') ?>" value="<?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-min-height')) ?>">
[52] Fix | Delete
</div>
[53] Fix | Delete
</div>
[54] Fix | Delete
</div>
[55] Fix | Delete
[56] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function