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/wp-smush.../app/views
File: smush-page.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Render Smush pages.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WP_Smush
[4] Fix | Delete
*
[5] Fix | Delete
* @var Abstract_Page $this
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
use Smush\Core\Webp\Webp_Configuration;
[9] Fix | Delete
[10] Fix | Delete
if ( ! defined( 'WPINC' ) ) {
[11] Fix | Delete
die;
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
// Some pages don't need to have wrapped in a form.
[15] Fix | Delete
$direct_conversion_enabled = Webp_Configuration::get_instance()->direct_conversion_enabled();
[16] Fix | Delete
$page_without_forms = array( 'smush-tutorials' );
[17] Fix | Delete
if ( ! $direct_conversion_enabled ) {
[18] Fix | Delete
$page_without_forms[] = 'smush-webp';
[19] Fix | Delete
}
[20] Fix | Delete
$page_has_form = ! in_array( $this->get_slug(), $page_without_forms, true );
[21] Fix | Delete
[22] Fix | Delete
$this->do_meta_boxes( 'summary' );
[23] Fix | Delete
[24] Fix | Delete
?>
[25] Fix | Delete
[26] Fix | Delete
<?php if ( 'smush' === $this->get_slug() && ! apply_filters( 'wpmudev_branding_hide_doc_link', false ) && ! get_option( 'wp-smush-hide-tutorials' ) ) : ?>
[27] Fix | Delete
<div id="smush-dash-tutorials"></div>
[28] Fix | Delete
<?php endif; ?>
[29] Fix | Delete
[30] Fix | Delete
<?php if ( 'smush-tutorials' === $this->get_slug() ) : ?>
[31] Fix | Delete
<div id="smush-box-tutorials"></div>
[32] Fix | Delete
<?php endif; ?>
[33] Fix | Delete
[34] Fix | Delete
<?php if ( ! $this->get_current_tab() ) : ?>
[35] Fix | Delete
<?php if ( $page_has_form ) : ?>
[36] Fix | Delete
<form id="<?php echo esc_attr( $this->get_slug() ); ?>-form" method="post">
[37] Fix | Delete
<?php endif; ?>
[38] Fix | Delete
<?php $this->do_meta_boxes(); ?>
[39] Fix | Delete
[40] Fix | Delete
<?php if ( 'smush-webp' === $this->get_slug() && $this->is_wizard() ) : ?>
[41] Fix | Delete
<div id="smush-box-webp-wizard" class="sui-webp-wizard sui-box"></div>
[42] Fix | Delete
<?php endif; ?>
[43] Fix | Delete
<?php if ( $page_has_form ) : ?>
[44] Fix | Delete
</form>
[45] Fix | Delete
<?php endif; ?>
[46] Fix | Delete
<?php else : ?>
[47] Fix | Delete
<?php if ( 'configs' !== $this->get_current_tab() ) : ?>
[48] Fix | Delete
<form id="<?php echo esc_attr( $this->get_slug() ); ?>-form" method="post">
[49] Fix | Delete
<?php endif; ?>
[50] Fix | Delete
<div class="sui-row-with-sidenav">
[51] Fix | Delete
<?php $this->show_tabs(); ?>
[52] Fix | Delete
<?php $this->do_meta_boxes( $this->get_current_tab() ); ?>
[53] Fix | Delete
[54] Fix | Delete
<?php if ( 'configs' === $this->get_current_tab() ) : ?>
[55] Fix | Delete
<div id="smush-box-configs"></div>
[56] Fix | Delete
<?php endif; ?>
[57] Fix | Delete
</div>
[58] Fix | Delete
<input type="hidden" name="tab" value="<?php echo esc_attr( $this->get_current_tab() ); ?>">
[59] Fix | Delete
<?php if ( 'configs' !== $this->get_current_tab() ) : ?>
[60] Fix | Delete
</form>
[61] Fix | Delete
<?php endif; ?>
[62] Fix | Delete
<?php endif; ?>
[63] Fix | Delete
[64] Fix | Delete
<?php if ( $this->has_meta_boxes( 'box-dashboard-left' ) || $this->has_meta_boxes( 'box-dashboard-right' ) ) : ?>
[65] Fix | Delete
<div class="sui-row">
[66] Fix | Delete
<div class="sui-col-lg-6">
[67] Fix | Delete
<?php $this->do_meta_boxes( 'box-dashboard-left' ); ?>
[68] Fix | Delete
</div>
[69] Fix | Delete
<div class="sui-col-lg-6">
[70] Fix | Delete
<?php $this->do_meta_boxes( 'box-dashboard-right' ); ?>
[71] Fix | Delete
<?php if ( ! is_multisite() || is_network_admin() ) : ?>
[72] Fix | Delete
<div id="smush-widget-configs"></div>
[73] Fix | Delete
<?php endif; ?>
[74] Fix | Delete
</div>
[75] Fix | Delete
</div>
[76] Fix | Delete
<?php endif; ?>
[77] Fix | Delete
[78] Fix | Delete
<?php
[79] Fix | Delete
if ( ! WP_Smush::is_pro() && 'smush' === $this->get_slug() ) {
[80] Fix | Delete
$this->view( 'footer-plugins-upsell', array(), 'common' );
[81] Fix | Delete
}
[82] Fix | Delete
[83] Fix | Delete
$this->view( 'footer-links', array(), 'common' );
[84] Fix | Delete
[85] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function