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/supreme-.../includes/template...
File: page-template-404.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
Template Name: 404 Blank Page
[2] Fix | Delete
*/
[3] Fix | Delete
[4] Fix | Delete
get_header();
[5] Fix | Delete
?>
[6] Fix | Delete
<div id="main-content">
[7] Fix | Delete
<?php
[8] Fix | Delete
$fourzerofour_args = array(
[9] Fix | Delete
'post_type' => 'dsm_header_footer',
[10] Fix | Delete
'meta_key' => 'dsm-header-footer-meta-box-options',
[11] Fix | Delete
'meta_value' => '404',
[12] Fix | Delete
'meta_type' => 'post',
[13] Fix | Delete
'meta_query' => array(
[14] Fix | Delete
array(
[15] Fix | Delete
'key' => 'dsm-header-footer-meta-box-options',
[16] Fix | Delete
'value' => '404',
[17] Fix | Delete
'compare' => '==',
[18] Fix | Delete
'type' => 'post',
[19] Fix | Delete
),
[20] Fix | Delete
),
[21] Fix | Delete
);
[22] Fix | Delete
[23] Fix | Delete
$fourzerofour_template = new WP_Query(
[24] Fix | Delete
$fourzerofour_args
[25] Fix | Delete
);
[26] Fix | Delete
[27] Fix | Delete
if ( $fourzerofour_template->have_posts() ) {
[28] Fix | Delete
$fourzerofour_template_ID = $fourzerofour_template->post->ID;
[29] Fix | Delete
$fourzerofour_template_shortcode = do_shortcode( get_post_field( 'post_content', $fourzerofour_template_ID ) );
[30] Fix | Delete
?>
[31] Fix | Delete
<article id="post-0" <?php post_class( 'not_found' ); ?>>
[32] Fix | Delete
<?php echo $fourzerofour_template_shortcode; ?>
[33] Fix | Delete
</article> <!-- .et_pb_post -->
[34] Fix | Delete
<?php } else {
[35] Fix | Delete
?>
[36] Fix | Delete
<div class="container">
[37] Fix | Delete
<div id="content-area" class="clearfix">
[38] Fix | Delete
<div id="left-area">
[39] Fix | Delete
<article id="post-0" <?php post_class( 'et_pb_post not_found' ); ?>>
[40] Fix | Delete
<?php get_template_part( 'includes/no-results', '404' ); ?>
[41] Fix | Delete
</article> <!-- .et_pb_post -->
[42] Fix | Delete
</div> <!-- #left-area -->
[43] Fix | Delete
[44] Fix | Delete
<?php get_sidebar(); ?>
[45] Fix | Delete
</div> <!-- #content-area -->
[46] Fix | Delete
</div> <!-- .container -->
[47] Fix | Delete
<?php
[48] Fix | Delete
}
[49] Fix | Delete
?>
[50] Fix | Delete
[51] Fix | Delete
</div> <!-- #main-content -->
[52] Fix | Delete
[53] Fix | Delete
<?php
[54] Fix | Delete
$footer_args = array(
[55] Fix | Delete
'post_type' => 'dsm_header_footer',
[56] Fix | Delete
'meta_key' => 'dsm-header-footer-meta-box-options',
[57] Fix | Delete
'meta_value' => 'footer',
[58] Fix | Delete
'meta_type' => 'post',
[59] Fix | Delete
'meta_query' => array(
[60] Fix | Delete
array(
[61] Fix | Delete
'key' => 'dsm-header-footer-meta-box-options',
[62] Fix | Delete
'value' => 'footer',
[63] Fix | Delete
'compare' => '==',
[64] Fix | Delete
'type' => 'post',
[65] Fix | Delete
),
[66] Fix | Delete
),
[67] Fix | Delete
);
[68] Fix | Delete
[69] Fix | Delete
$footer_template = new WP_Query(
[70] Fix | Delete
$footer_args
[71] Fix | Delete
);
[72] Fix | Delete
[73] Fix | Delete
$footer_css_args = array(
[74] Fix | Delete
'post_type' => 'dsm_header_footer',
[75] Fix | Delete
'meta_key' => 'dsm-css-classes-meta-box-options',
[76] Fix | Delete
'value' => '',
[77] Fix | Delete
'meta_type' => 'post',
[78] Fix | Delete
'meta_query' => array(
[79] Fix | Delete
array(
[80] Fix | Delete
'key' => 'dsm-css-classes-meta-box-options',
[81] Fix | Delete
'value' => '',
[82] Fix | Delete
'compare' => '!=',
[83] Fix | Delete
'type' => 'post',
[84] Fix | Delete
),
[85] Fix | Delete
),
[86] Fix | Delete
);
[87] Fix | Delete
[88] Fix | Delete
$footer_css_template = new WP_Query(
[89] Fix | Delete
$footer_css_args
[90] Fix | Delete
);
[91] Fix | Delete
[92] Fix | Delete
if ( $footer_template->have_posts() ) {
[93] Fix | Delete
if( !function_exists('dsm_fix_shortcodes') ) {
[94] Fix | Delete
function dsm_fix_shortcodes($content){
[95] Fix | Delete
$array = array (
[96] Fix | Delete
'<p>[' => '[',
[97] Fix | Delete
']</p>' => ']',
[98] Fix | Delete
']<br />' => ']'
[99] Fix | Delete
);
[100] Fix | Delete
$content = strtr($content, $array);
[101] Fix | Delete
return $content;
[102] Fix | Delete
}
[103] Fix | Delete
add_filter('the_content', 'dsm_fix_shortcodes');
[104] Fix | Delete
}
[105] Fix | Delete
$footer_template_ID = $footer_template->post->ID;
[106] Fix | Delete
$footer_template_shortcode = do_shortcode( get_post_field( 'post_content', $footer_template_ID ) );
[107] Fix | Delete
$footer_template_css = get_post_custom($footer_template_ID);
[108] Fix | Delete
[109] Fix | Delete
if ( $footer_template_css['dsm-css-classes-meta-box-options'][0] != '' ) {
[110] Fix | Delete
$footer_template_css_output = get_post_meta( $footer_css_template->post->ID, 'dsm-css-classes-meta-box-options', true );
[111] Fix | Delete
} else {
[112] Fix | Delete
$footer_template_css_output = '';
[113] Fix | Delete
}
[114] Fix | Delete
if ( !et_core_is_fb_enabled() && $footer_template_css['dsm-footer-show-on-404-template'][0] == 'yes' ) {
[115] Fix | Delete
$footer_output = sprintf(
[116] Fix | Delete
'<footer id="dsm-footer" class="%2$s" itemscope="itemscope" itemtype="https://schema.org/WPFooter">%1$s</footer>
[117] Fix | Delete
',
[118] Fix | Delete
$footer_template_shortcode,
[119] Fix | Delete
( '' !== $footer_template_css_output ? 'dsm-footer ' . $footer_template_css_output : 'dsm-footer' )
[120] Fix | Delete
);
[121] Fix | Delete
echo $footer_output;
[122] Fix | Delete
}
[123] Fix | Delete
}
[124] Fix | Delete
get_footer();
[125] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function