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.../public_h.../clone/wp-conte.../plugins/themify-.../template...
File: template-post-navigation.php
<?php
[0] Fix | Delete
if (!defined('ABSPATH'))
[1] Fix | Delete
exit; // Exit if accessed directly
[2] Fix | Delete
/**
[3] Fix | Delete
* Template Post Navigation
[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
'labels' => 'yes',
[10] Fix | Delete
'prev_label' =>'',
[11] Fix | Delete
'next_label' =>'',
[12] Fix | Delete
'arrows' => 'yes',
[13] Fix | Delete
'prev_arrow' => '',
[14] Fix | Delete
'next_arrow' => '',
[15] Fix | Delete
'same_cat' => 'no',
[16] Fix | Delete
'tax' => 'category',
[17] Fix | Delete
'css' => '',
[18] Fix | Delete
'animation_effect' => ''
[19] Fix | Delete
);
[20] Fix | Delete
$fields_args = wp_parse_args($args['mod_settings'], $fields_default);
[21] Fix | Delete
unset($args['mod_settings']);
[22] Fix | Delete
$fields_default=null;
[23] Fix | Delete
$mod_name=$args['mod_name'];
[24] Fix | Delete
$element_id =$args['module_ID'];
[25] Fix | Delete
$builder_id=$args['builder_id'];
[26] Fix | Delete
$container_class = apply_filters('themify_builder_module_classes', array(
[27] Fix | Delete
'module',
[28] Fix | Delete
'module-' . $mod_name,
[29] Fix | Delete
$element_id,
[30] Fix | Delete
$fields_args['css']
[31] Fix | Delete
), $mod_name, $element_id, $fields_args );
[32] Fix | Delete
[33] Fix | Delete
if(!empty($fields_args['global_styles']) && Themify_Builder::$frontedit_active===false){
[34] Fix | Delete
$container_class[] = $fields_args['global_styles'];
[35] Fix | Delete
}
[36] Fix | Delete
$container_props = apply_filters('themify_builder_module_container_props', self::parse_animation_effect($fields_args,array(
[37] Fix | Delete
'class' => implode(' ', $container_class),
[38] Fix | Delete
)), $fields_args, $mod_name, $element_id);
[39] Fix | Delete
$args=null;
[40] Fix | Delete
if(Themify_Builder::$frontedit_active===false){
[41] Fix | Delete
$container_props['data-lazy']=1;
[42] Fix | Delete
}
[43] Fix | Delete
$same_cat = 'yes' === $fields_args['same_cat'];
[44] Fix | Delete
?>
[45] Fix | Delete
<!-- Post Navigation module -->
[46] Fix | Delete
<div <?php echo self::get_element_attributes( self::sticky_element_props( $container_props, $fields_args ) ); ?>>
[47] Fix | Delete
<?php
[48] Fix | Delete
$container_props=$container_class=null;
[49] Fix | Delete
do_action('themify_builder_background_styling',$builder_id,array('styling'=>$fields_args,'mod_name'=>$mod_name),$element_id,'module');
[50] Fix | Delete
$the_query = Tbp_Utils::get_actual_query();
[51] Fix | Delete
if ($the_query===null || $the_query->have_posts() ){
[52] Fix | Delete
if($the_query!==null){
[53] Fix | Delete
$the_query->the_post();
[54] Fix | Delete
}
[55] Fix | Delete
[56] Fix | Delete
$text = '';
[57] Fix | Delete
if ( 'yes' === $fields_args['arrows'] ) {
[58] Fix | Delete
$arrow = '' !== $fields_args['prev_arrow'] ? themify_get_icon( $fields_args['prev_arrow'] ) : '&laquo;';
[59] Fix | Delete
$text = '<span class="tbp_post_navigation_arrow">' . $arrow . '</span>';
[60] Fix | Delete
}
[61] Fix | Delete
$label ='yes' === $fields_args['labels'] ? $fields_args['prev_label'] : '';
[62] Fix | Delete
$previous_post_link = get_previous_post_link( '%link', $text . '<span class="tbp_post_navigation_content_wrapper">' . '<span class="tbp_post_navigation_label">' . $label . '</span>' . '<br/>' . '<span class="tbp_post_navigation_title">%title</span></span>', $same_cat, '', $fields_args['tax'] );
[63] Fix | Delete
echo $previous_post_link;
[64] Fix | Delete
[65] Fix | Delete
$text = '';
[66] Fix | Delete
if ( 'yes' === $fields_args['arrows'] ) {
[67] Fix | Delete
$arrow = '' !== $fields_args['next_arrow'] ? themify_get_icon( $fields_args['next_arrow'] ) : '&raquo;';
[68] Fix | Delete
$text = '<span class="tbp_post_navigation_arrow">' . $arrow . '</span>';
[69] Fix | Delete
}
[70] Fix | Delete
$label ='yes' === $fields_args['labels'] ? $fields_args['next_label'] : '';
[71] Fix | Delete
$next_post_link = get_next_post_link( '%link', $text . '<span class="tbp_post_navigation_content_wrapper">' . '<span class="tbp_post_navigation_label">' . $label . '</span>' . '<br/>' . '<span class="tbp_post_navigation_title">%title</span></span>', $same_cat, '', $fields_args['tax'] );
[72] Fix | Delete
echo $next_post_link;
[73] Fix | Delete
[74] Fix | Delete
[75] Fix | Delete
if($the_query!==null){
[76] Fix | Delete
wp_reset_postdata();
[77] Fix | Delete
}
[78] Fix | Delete
}
[79] Fix | Delete
?>
[80] Fix | Delete
[81] Fix | Delete
<?php if ( empty( $previous_post_link ) && empty( $next_post_link ) && ( Tbp_Utils::$isActive===true || Themify_Builder::$frontedit_active===true ) ) : ?>
[82] Fix | Delete
<div class="tbp_empty_module">
[83] Fix | Delete
<?php echo Themify_Builder_Model::get_module_name($mod_name);?>
[84] Fix | Delete
</div>
[85] Fix | Delete
<?php endif; ?>
[86] Fix | Delete
[87] Fix | Delete
</div>
[88] Fix | Delete
<!-- /Post Navigation module -->
[89] Fix | Delete
[90] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function