: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
exit; // Exit if accessed directly
* Template Post Navigation
* Access original fields: $args['mod_settings']
$fields_args = wp_parse_args($args['mod_settings'], $fields_default);
unset($args['mod_settings']);
$mod_name=$args['mod_name'];
$element_id =$args['module_ID'];
$builder_id=$args['builder_id'];
$container_class = apply_filters('themify_builder_module_classes', array(
), $mod_name, $element_id, $fields_args );
if(!empty($fields_args['global_styles']) && Themify_Builder::$frontedit_active===false){
$container_class[] = $fields_args['global_styles'];
$container_props = apply_filters('themify_builder_module_container_props', self::parse_animation_effect($fields_args,array(
'class' => implode(' ', $container_class),
)), $fields_args, $mod_name, $element_id);
if(Themify_Builder::$frontedit_active===false){
$container_props['data-lazy']=1;
$same_cat = 'yes' === $fields_args['same_cat'];
<!-- Post Navigation module -->
<div <?php echo self::get_element_attributes( self::sticky_element_props( $container_props, $fields_args ) ); ?>>
$container_props=$container_class=null;
do_action('themify_builder_background_styling',$builder_id,array('styling'=>$fields_args,'mod_name'=>$mod_name),$element_id,'module');
$the_query = Tbp_Utils::get_actual_query();
if ($the_query===null || $the_query->have_posts() ){
if ( 'yes' === $fields_args['arrows'] ) {
$arrow = '' !== $fields_args['prev_arrow'] ? themify_get_icon( $fields_args['prev_arrow'] ) : '«';
$text = '<span class="tbp_post_navigation_arrow">' . $arrow . '</span>';
$label ='yes' === $fields_args['labels'] ? $fields_args['prev_label'] : '';
$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'] );
echo $previous_post_link;
if ( 'yes' === $fields_args['arrows'] ) {
$arrow = '' !== $fields_args['next_arrow'] ? themify_get_icon( $fields_args['next_arrow'] ) : '»';
$text = '<span class="tbp_post_navigation_arrow">' . $arrow . '</span>';
$label ='yes' === $fields_args['labels'] ? $fields_args['next_label'] : '';
$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'] );
<?php if ( empty( $previous_post_link ) && empty( $next_post_link ) && ( Tbp_Utils::$isActive===true || Themify_Builder::$frontedit_active===true ) ) : ?>
<div class="tbp_empty_module">
<?php echo Themify_Builder_Model::get_module_name($mod_name);?>
<!-- /Post Navigation module -->