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/themify-.../themify/includes
File: search-box-result.php
<?php
[0] Fix | Delete
global $query,$found_types;
[1] Fix | Delete
if( $query->have_posts()):
[2] Fix | Delete
?>
[3] Fix | Delete
<ul class="tf_search_tab">
[4] Fix | Delete
<li class="active"><a href="#all"><?php _e('All','themify')?></a></li>
[5] Fix | Delete
<?php foreach ( array_unique( $found_types ) as $type): ?>
[6] Fix | Delete
<?php
[7] Fix | Delete
switch ($type){
[8] Fix | Delete
case 'product':
[9] Fix | Delete
$title=__('Shop','themify');
[10] Fix | Delete
break;
[11] Fix | Delete
case 'post':
[12] Fix | Delete
$title=__('Blog','themify');
[13] Fix | Delete
break;
[14] Fix | Delete
case 'page':
[15] Fix | Delete
$title=__('Page','themify');
[16] Fix | Delete
break;
[17] Fix | Delete
default:
[18] Fix | Delete
$type_obj = get_post_type_object( $type );
[19] Fix | Delete
$title=$type_obj->labels->singular_name;
[20] Fix | Delete
$type_obj=null;
[21] Fix | Delete
break;
[22] Fix | Delete
}
[23] Fix | Delete
?>
[24] Fix | Delete
<li><a href="#<?php echo $type ?>"><?php echo $title; ?></a></li>
[25] Fix | Delete
<?php endforeach; ?>
[26] Fix | Delete
</ul>
[27] Fix | Delete
<?php $is_disabled = themify_is_image_script_disabled();?>
[28] Fix | Delete
<?php while ( $query->have_posts() ):?>
[29] Fix | Delete
<?php
[30] Fix | Delete
$query->the_post();
[31] Fix | Delete
$post_type = get_post_type();
[32] Fix | Delete
$is_product = $post_type === 'product';
[33] Fix | Delete
if(has_post_thumbnail()){
[34] Fix | Delete
$post_image = $is_disabled===false?themify_get_image(array('w'=>47,'h'=>48,'crop'=>true,'urlonly'=>true)):'';
[35] Fix | Delete
if(!$post_image){
[36] Fix | Delete
$post_image = $is_product===true?get_the_post_thumbnail_url( null,'shop_thumbnail'):get_the_post_thumbnail_url( null,'thumbnail');
[37] Fix | Delete
}
[38] Fix | Delete
}
[39] Fix | Delete
else{
[40] Fix | Delete
$post_image = false;
[41] Fix | Delete
}
[42] Fix | Delete
?>
[43] Fix | Delete
<div class="tf_search_item tf_search_<?php echo $post_type; ?> tf_rel tf_overflow tf_clear">
[44] Fix | Delete
<a href="<?php the_permalink()?>" class="tf_clearfix">
[45] Fix | Delete
<?php if($post_image!==false):?>
[46] Fix | Delete
<img src="<?php echo $post_image;?>" width="47" height="48" />
[47] Fix | Delete
<?php endif;?>
[48] Fix | Delete
<span class="title"><?php the_title()?></span>
[49] Fix | Delete
<?php if($is_product===true):?>
[50] Fix | Delete
<?php global $product?>
[51] Fix | Delete
<span class="price"><?php echo $product->get_price_html()?></span>
[52] Fix | Delete
<?php endif;?>
[53] Fix | Delete
</a>
[54] Fix | Delete
</div>
[55] Fix | Delete
<!-- /tf_search_item -->
[56] Fix | Delete
<?php endwhile;?>
[57] Fix | Delete
[58] Fix | Delete
<?php if($query->max_num_pages>1):?>
[59] Fix | Delete
<div class="tf_view_all tf_textc tf_clear">
[60] Fix | Delete
<?php $search_link = get_search_link($_POST['s']);?>
[61] Fix | Delete
<?php foreach ($found_types as $type): ?>
[62] Fix | Delete
<?php $type_obj = get_post_type_object( $type ); ?>
[63] Fix | Delete
<a id="tf_result_link_<?php echo $type; ?>" href="<?php echo add_query_arg(array('type'=>$type),$search_link)?>" class="tf_view_button tf_hide"><?php echo __('View All','themify').' '.$type_obj->label; ?></a>
[64] Fix | Delete
<?php endforeach; ?>
[65] Fix | Delete
<a id="tf_result_link_item" href="<?php echo $search_link ?>" class="tf_view_button tf_hide"><?php _e('View All','themify')?></a>
[66] Fix | Delete
</div>
[67] Fix | Delete
<!-- /tf_view_all -->
[68] Fix | Delete
<?php endif;?>
[69] Fix | Delete
<?php else:?>
[70] Fix | Delete
<p><?php _e('No Items Found','themify');?></p>
[71] Fix | Delete
<?php endif;?>
[72] Fix | Delete
[73] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function