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