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-.../template...
File: template-search-form.php
<?php
[0] Fix | Delete
if (!defined('ABSPATH'))
[1] Fix | Delete
exit; // Exit if accessed directly
[2] Fix | Delete
/**
[3] Fix | Delete
* Template Search Form
[4] Fix | Delete
*
[5] Fix | Delete
* Access original fields: $args['mod_settings']
[6] Fix | Delete
* @author Themify
[7] Fix | Delete
*/
[8] Fix | Delete
$fields_default = array(
[9] Fix | Delete
'style' => 'form',
[10] Fix | Delete
'autocomplete' => '',
[11] Fix | Delete
'placeholder' => '',
[12] Fix | Delete
'button' => 'yes',
[13] Fix | Delete
'icon' => 'icon',
[14] Fix | Delete
'button_icon'=>'no',
[15] Fix | Delete
'button_t' => '',
[16] Fix | Delete
'css' => '',
[17] Fix | Delete
'animation_effect' => '',
[18] Fix | Delete
'post_type' => 'any'
[19] Fix | Delete
);
[20] Fix | Delete
$fields_args = wp_parse_args($args['mod_settings'], $fields_default);
[21] Fix | Delete
if(!file_exists(THEMIFY_DIR.'/includes/search-box.php')){
[22] Fix | Delete
$fields_args['style'] = 'overlay'===$fields_args['style'] ?'form':$fields_args['style'];
[23] Fix | Delete
$fields_args['autocomplete']='';
[24] Fix | Delete
}
[25] Fix | Delete
unset($args['mod_settings']);
[26] Fix | Delete
$fields_default=null;
[27] Fix | Delete
$mod_name=$args['mod_name'];
[28] Fix | Delete
$element_id =$args['module_ID'];
[29] Fix | Delete
$builder_id=$args['builder_id'];
[30] Fix | Delete
$container_class = apply_filters( 'themify_builder_module_classes', array(
[31] Fix | Delete
'module',
[32] Fix | Delete
'module-' . $mod_name,
[33] Fix | Delete
$element_id,
[34] Fix | Delete
$fields_args['css']
[35] Fix | Delete
), $mod_name, $element_id, $fields_args );
[36] Fix | Delete
[37] Fix | Delete
if($fields_args['button_icon']==='yes'){
[38] Fix | Delete
$container_class[] = 'tb_search_overlay';
[39] Fix | Delete
}
[40] Fix | Delete
if(!empty($fields_args['global_styles']) && Themify_Builder::$frontedit_active===false){
[41] Fix | Delete
$container_class[] = $fields_args['global_styles'];
[42] Fix | Delete
}
[43] Fix | Delete
$container_props = apply_filters('themify_builder_module_container_props', self::parse_animation_effect($fields_args,array(
[44] Fix | Delete
'class' => implode( ' ', $container_class ),
[45] Fix | Delete
)), $fields_args, $mod_name, $element_id);
[46] Fix | Delete
if('overlay'===$fields_args['style'] && !empty($fields_args['post_type']) && 'any' !== $fields_args['post_type']){
[47] Fix | Delete
$container_props['data-post-type'] = esc_attr($fields_args['post_type']);
[48] Fix | Delete
}
[49] Fix | Delete
$args=null;
[50] Fix | Delete
if(Themify_Builder::$frontedit_active===false){
[51] Fix | Delete
$container_props['data-lazy']=1;
[52] Fix | Delete
$container_props['data-ajax'] = 'overlay'===$fields_args['style'] ? 'overlay' : ('on'===$fields_args['autocomplete']?'dropdown':false);
[53] Fix | Delete
if(false!==$container_props['data-ajax']){
[54] Fix | Delete
wp_enqueue_script( 'tbp' );
[55] Fix | Delete
}
[56] Fix | Delete
}
[57] Fix | Delete
?>
[58] Fix | Delete
<!-- Search Form module -->
[59] Fix | Delete
<div <?php echo self::get_element_attributes(self::sticky_element_props($container_props,$fields_args)); ?>>
[60] Fix | Delete
<?php $container_props=$container_class=null;
[61] Fix | Delete
do_action('themify_builder_background_styling',$builder_id,array('styling'=>$fields_args,'mod_name'=>$mod_name),$element_id,'module');
[62] Fix | Delete
if('overlay'===$fields_args['style']): ?>
[63] Fix | Delete
<span class="tbp_icon_search"><?php echo themify_get_icon('search','ti');?></span>
[64] Fix | Delete
<?php include( THEMIFY_DIR.'/includes/search-box.php' );?>
[65] Fix | Delete
<?php
[66] Fix | Delete
else:
[67] Fix | Delete
do_action( 'pre_get_search_form' );
[68] Fix | Delete
?>
[69] Fix | Delete
<form role="search" method="get" class="tbp_searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
[70] Fix | Delete
<div class="tf_rel tf_inline_b">
[71] Fix | Delete
<?php if ( $fields_args['button_icon'] === 'yes' ): ?>
[72] Fix | Delete
<span class="tbp_icon_search overlay"><?php echo themify_get_icon('search','ti'); ?></span>
[73] Fix | Delete
<?php endif; ?>
[74] Fix | Delete
<input type="text" name="s" title="<?php esc_attr_e( $fields_args['placeholder'] ); ?>" placeholder="<?php esc_attr_e( $fields_args['placeholder'] ); ?>" value="<?php echo get_search_query(); ?>">
[75] Fix | Delete
</div>
[76] Fix | Delete
<?php if(!empty($fields_args['post_type']) && 'any' !== $fields_args['post_type']): ?>
[77] Fix | Delete
<input type="hidden" name="post_type" value="<?php echo $fields_args['post_type']; ?>">
[78] Fix | Delete
<?php endif; ?>
[79] Fix | Delete
<?php if ( $fields_args['button'] === 'yes' ): ?>
[80] Fix | Delete
<button type="submit" class="module-buttons">
[81] Fix | Delete
<?php echo $fields_args['icon'] === 'text' && $fields_args['button_t'] !== '' ? esc_attr( $fields_args['button_t'] ) : '<span class="tbp_icon_search">'.themify_get_icon('search','ti').'</span>'; ?>
[82] Fix | Delete
</button>
[83] Fix | Delete
<?php endif; ?>
[84] Fix | Delete
</form>
[85] Fix | Delete
<?php endif; ?>
[86] Fix | Delete
</div>
[87] Fix | Delete
<!-- /Search Form module -->
[88] Fix | Delete
[89] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function