: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<?php if( $fa = herald_get_featured_area() ) : ?>
<?php if(!empty($fa['query']) && !empty( $fa['query']->posts ) ): ?>
<?php $fa_query = $fa['query']; ?>
<div class="herald-section container herald-no-sid">
<div class="herald-module col-lg-12 col-md-12">
<?php herald_set_img_flag('full'); ?>
<?php include( locate_template('template-parts/featured/area-'. $fa['layout'].'.php' ) ); ?>
<?php herald_set_img_flag(''); ?>
<?php global $herald_sidebar_opts; ?>
<?php $section_class = $herald_sidebar_opts['use_sidebar'] == 'none' ? 'herald-no-sid' : '' ?>
<div class="herald-section container <?php echo esc_attr($section_class); ?>">
<?php if($herald_sidebar_opts['use_sidebar'] == 'left'): ?>
<?php $wrap_class = $herald_sidebar_opts['use_sidebar'] != 'none' ? 'herald-main-content col-lg-9 col-md-9' : 'col-lg-12 col-md-12' ?>
<div class="herald-module col-mod-main <?php echo esc_attr($wrap_class); ?>">
<?php echo herald_get_archive_heading(); ?>
<?php $ad_position = herald_get_option('ad_between_posts') ? absint( herald_get_option('ad_between_posts_position') - 1 ) : false ; ?>
<div class="row row-eq-height herald-posts">
<?php if(have_posts()): ?>
<?php $i = 0; while ( have_posts() ) : the_post(); ?>
<?php get_template_part('template-parts/layouts/content', herald_get_current_post_layout( $i ) ); ?>
<?php if( $i === $ad_position ) { get_template_part('template-parts/ads/between-posts'); } ?>
<?php get_template_part('template-parts/layouts/content-none' ); ?>
<?php if( $pagination = herald_get_current_pagination() ) : ?>
<?php get_template_part( 'template-parts/pagination/' . $pagination ); ?>
<?php if( $herald_sidebar_opts['use_sidebar'] == 'right' ): ?>