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/wp-conte.../plugins/embedpre.../EmbedPre.../Ends/Back/Settings/template...
File: general.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
* General Settings page
[2] Fix | Delete
* All undefined vars comes from 'render_settings_page' method
[3] Fix | Delete
*/
[4] Fix | Delete
[5] Fix | Delete
$g_settings = get_option(EMBEDPRESS_PLG_NAME);
[6] Fix | Delete
[7] Fix | Delete
$lazy_load = isset($g_settings['g_lazyload']) ? intval($g_settings['g_lazyload']) : 0;
[8] Fix | Delete
$pdf_custom_color_settings = isset($g_settings['pdf_custom_color_settings']) ? intval($g_settings['pdf_custom_color_settings']) : 0;
[9] Fix | Delete
[10] Fix | Delete
$custom_color = isset($g_settings['custom_color']) ? sanitize_text_field($g_settings['custom_color']) : '#333333';
[11] Fix | Delete
[12] Fix | Delete
$enableEmbedResizeHeight = isset($g_settings['enableEmbedResizeHeight']) ? intval($g_settings['enableEmbedResizeHeight']) : 550;
[13] Fix | Delete
$enableEmbedResizeWidth = isset($g_settings['enableEmbedResizeWidth']) ? intval($g_settings['enableEmbedResizeWidth']) : 600;
[14] Fix | Delete
[15] Fix | Delete
?>
[16] Fix | Delete
[17] Fix | Delete
<div class="embedpress__settings background__white radius-16 p-24">
[18] Fix | Delete
<h3>Global Embed iFrame</h3>
[19] Fix | Delete
<div class="shortcode-settings-wrapper">
[20] Fix | Delete
<div class="embedpress__settings embedpress_general_settings__form">
[21] Fix | Delete
<div class="embedpress__settings__form">
[22] Fix | Delete
<form action="" method="post" class="embedpress-settings-form">
[23] Fix | Delete
<?php
[24] Fix | Delete
do_action('embedpress_before_general_settings_fields');
[25] Fix | Delete
echo $nonce_field;
[26] Fix | Delete
?>
[27] Fix | Delete
<div class="mb-20">
[28] Fix | Delete
<div class="form__group">
[29] Fix | Delete
<p class="form__label"><?php esc_html_e('Embed iFrame Width', 'embedpress'); ?></p>
[30] Fix | Delete
<div class="form__control__wrap">
[31] Fix | Delete
<div class="input__flex">
[32] Fix | Delete
<input type="number" name="enableEmbedResizeWidth" class="form__control"
[33] Fix | Delete
data-default="<?php echo esc_attr($enableEmbedResizeWidth); ?>"
[34] Fix | Delete
value="<?php echo esc_attr($enableEmbedResizeWidth); ?>">
[35] Fix | Delete
<span class="frame__unit">px</span>
[36] Fix | Delete
</div>
[37] Fix | Delete
</div>
[38] Fix | Delete
</div>
[39] Fix | Delete
<div class="form__group">
[40] Fix | Delete
<p class="form__label"><?php esc_html_e('Embed iFrame Height', 'embedpress'); ?></p>
[41] Fix | Delete
<div class="form__control__wrap">
[42] Fix | Delete
<div class="input__flex">
[43] Fix | Delete
<input type="number" name="enableEmbedResizeHeight" class="form__control"
[44] Fix | Delete
data-default="<?php echo esc_attr($enableEmbedResizeHeight); ?>"
[45] Fix | Delete
value="<?php echo esc_attr($enableEmbedResizeHeight); ?>">
[46] Fix | Delete
<span class="frame__unit">px</span>
[47] Fix | Delete
</div>
[48] Fix | Delete
</div>
[49] Fix | Delete
</div>
[50] Fix | Delete
<div class="form__group">
[51] Fix | Delete
<p class="form__label"><?php esc_html_e('Lazy Load', 'embedpress');
[52] Fix | Delete
echo !$pro_active ? ' <span class="isPro">PRO</span>' : ''; ?> </p>
[53] Fix | Delete
<div class="form__control__wrap">
[54] Fix | Delete
<label class="input__switch switch__text <?php echo $pro_active ? '' : 'isPro'; ?>">
[55] Fix | Delete
<input type="checkbox" name="g_lazyload"
[56] Fix | Delete
data-default="<?php echo esc_attr($lazy_load); ?>"
[57] Fix | Delete
data-value="<?php echo esc_attr($lazy_load); ?>" value="1" <?php echo $pro_active ? '' : 'disabled ';
[58] Fix | Delete
checked('1', $lazy_load) ?>>
[59] Fix | Delete
<span></span>
[60] Fix | Delete
</label>
[61] Fix | Delete
<?php if (!$pro_active) {
[62] Fix | Delete
include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php';
[63] Fix | Delete
} ?>
[64] Fix | Delete
</div>
[65] Fix | Delete
</div>
[66] Fix | Delete
<div class="form__group">
[67] Fix | Delete
<p class="form__label"><?php echo esc_html__('PDF Custom Color', 'embedpress'); ?></p>
[68] Fix | Delete
<div class="form__control__wrap">
[69] Fix | Delete
<label class="input__switch switch__text">
[70] Fix | Delete
<input type="checkbox" name="pdf_custom_color_settings"
[71] Fix | Delete
data-default="<?php echo esc_attr($pdf_custom_color_settings); ?>"
[72] Fix | Delete
data-value="<?php echo esc_attr($pdf_custom_color_settings); ?>" value="1"
[73] Fix | Delete
<?php checked('1', $pdf_custom_color_settings) ?>>
[74] Fix | Delete
<span></span>
[75] Fix | Delete
<a href="#"
[76] Fix | Delete
class="logo__adjust__toggler"><?php esc_html_e("Settings", "embedpress"); ?><i
[77] Fix | Delete
class="ep-icon ep-caret-down"></i></a>
[78] Fix | Delete
</label>
[79] Fix | Delete
[80] Fix | Delete
<div class="logo__adjust__wrap">
[81] Fix | Delete
<div class="form__control__wrap">
[82] Fix | Delete
<div class="input__flex">
[83] Fix | Delete
<input type="color" id="embedpress_pdf_global_custom_color"
[84] Fix | Delete
name="custom_color"
[85] Fix | Delete
data-default="<?php echo esc_attr($custom_color); ?>"
[86] Fix | Delete
data-value="<?php echo esc_attr($custom_color); ?>"
[87] Fix | Delete
value="<?php echo esc_attr($custom_color); ?>">
[88] Fix | Delete
</div>
[89] Fix | Delete
</div>
[90] Fix | Delete
</div>
[91] Fix | Delete
[92] Fix | Delete
</div>
[93] Fix | Delete
</div>
[94] Fix | Delete
<div class="form__group mb0">
[95] Fix | Delete
<p class="form__label"><?php
[96] Fix | Delete
/*translators: % means coming soon text markup*/
[97] Fix | Delete
printf(esc_html__('Loading Animation %s', 'embedpress'), $coming_soon);
[98] Fix | Delete
[99] Fix | Delete
echo !$pro_active ? ' <span class="isPro">PRO</span>' : ''; ?>
[100] Fix | Delete
</p>
[101] Fix | Delete
<div class="form__control__wrap">
[102] Fix | Delete
<label class="input__switch switch__text isPro">
[103] Fix | Delete
<input type="checkbox" name="g_loading_animation" data-default="1" value="1"
[104] Fix | Delete
disabled>
[105] Fix | Delete
<span></span>
[106] Fix | Delete
</label>
[107] Fix | Delete
<?php include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-coming-soon.php'; ?>
[108] Fix | Delete
</div>
[109] Fix | Delete
</div>
[110] Fix | Delete
</div>
[111] Fix | Delete
<?php do_action('embedpress_after_general_settings_fields'); ?>
[112] Fix | Delete
<button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit"
[113] Fix | Delete
value="general"><?php esc_html_e('Save Changes', 'embedpress'); ?></button>
[114] Fix | Delete
</form>
[115] Fix | Delete
</div>
[116] Fix | Delete
</div>
[117] Fix | Delete
<?php if (empty($pro_active) || !$pro_active) : ?>
[118] Fix | Delete
<div class="embedpress-upgrade-pro-sidebar">
[119] Fix | Delete
<div class="gradient-color">
[120] Fix | Delete
<img class="embedpress-banner" src="<?php echo esc_url('https://embedpress.com/wp-content/uploads/2023/10/Mega-Page.gif'); ?>"
[121] Fix | Delete
alt="">
[122] Fix | Delete
[123] Fix | Delete
<ul class="feature-list">
[124] Fix | Delete
<li><img src="<?php echo esc_url(EMBEDPRESS_SETTINGS_ASSETS_URL . 'img/check2.svg'); ?>" alt=""><?php echo esc_html__('Social Share', 'embedpress'); ?></li>
[125] Fix | Delete
<li><img src="<?php echo esc_url(EMBEDPRESS_SETTINGS_ASSETS_URL . 'img/check2.svg'); ?>" alt=""><?php echo esc_html__('Lazy Loading', 'embedpress'); ?></li>
[126] Fix | Delete
<li><img src="<?php echo esc_url(EMBEDPRESS_SETTINGS_ASSETS_URL . 'img/check2.svg'); ?>" alt=""><?php echo esc_html__('SEO Optimized', 'embedpress'); ?></li>
[127] Fix | Delete
<li><img src="<?php echo esc_url(EMBEDPRESS_SETTINGS_ASSETS_URL . 'img/check2.svg'); ?>" alt=""><?php echo esc_html__('Custom Branding', 'embedpress'); ?></li>
[128] Fix | Delete
<li><img src="<?php echo esc_url(EMBEDPRESS_SETTINGS_ASSETS_URL . 'img/check2.svg'); ?>" alt=""><?php echo esc_html__('Content Protection', 'embedpress'); ?></li>
[129] Fix | Delete
<li><img src="<?php echo esc_url(EMBEDPRESS_SETTINGS_ASSETS_URL . 'img/check2.svg'); ?>" alt=""><?php echo esc_html__('Custom Audio & Video Player', 'embedpress'); ?></li>
[130] Fix | Delete
<li><img src="<?php echo esc_url(EMBEDPRESS_SETTINGS_ASSETS_URL . 'img/check2.svg'); ?>" alt=""><?php echo esc_html__('PDF & Documents Embedding', 'embedpress'); ?></li>
[131] Fix | Delete
<li><img src="<?php echo esc_url(EMBEDPRESS_SETTINGS_ASSETS_URL . 'img/check2.svg'); ?>" alt=""><?php echo esc_html__('Embed From 150+ Sources', 'embedpress'); ?></li>
[132] Fix | Delete
<li><img src="<?php echo esc_url(EMBEDPRESS_SETTINGS_ASSETS_URL . 'img/check2.svg'); ?>" alt=""><?php echo esc_html__('Wrapper Support', 'embedpress'); ?></li>
[133] Fix | Delete
<li><img src="<?php echo esc_url(EMBEDPRESS_SETTINGS_ASSETS_URL . 'img/check2.svg'); ?>" alt=""><?php echo esc_html__('& Many more...', 'embedpress'); ?></li>
[134] Fix | Delete
</ul>
[135] Fix | Delete
[136] Fix | Delete
<a class="pro-upgrade-button" target="_blank"
[137] Fix | Delete
href="<?php echo esc_url('https://wpdeveloper.com/in/upgrade-embedpress'); ?>"><?php echo esc_html__('Upgrade to Pro', 'embedpress'); ?><img
[138] Fix | Delete
src="<?php echo esc_url(EMBEDPRESS_SETTINGS_ASSETS_URL . 'img/external-white.svg'); ?>" alt=""></a>
[139] Fix | Delete
</div>
[140] Fix | Delete
[141] Fix | Delete
</div>
[142] Fix | Delete
<?php endif; ?>
[143] Fix | Delete
</div>
[144] Fix | Delete
</div>
[145] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function