: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
exit; // Exit if accessed directly
* 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;
<!-- Archive Title module -->
<div <?php echo self::get_element_attributes(self::sticky_element_props($container_props, $fields_args)); ?>>
<?php $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();// for live preview
$title = sprintf(__('Search Results for: %s', 'tbp'), esc_html(get_search_query(false)));
$title = get_the_archive_title();
$title = __('Latest Posts', 'tbp');
if ($the_query===null || $the_query->have_posts() ){
$title = '<span class="vcard">' . get_the_author() . '</span>';
} elseif (themify_is_shop()) {
$title = woocommerce_page_title(false);
} elseif (is_post_type_archive()) {
$title = post_type_archive_title('', false);
$title = single_term_title('', false);
$isEmpty=empty($title) && (Tbp_Utils::$isActive===true || Themify_Builder::$frontedit_active===true || Tbp_Public::$isTemplatePage===true);
<<?php echo $fields_args['html_tag'] ?><?php if($isEmpty===true):?> class="tbp_empty_module"<?php endif;?>><?php echo $isEmpty===true?Themify_Builder_Model::get_module_name($mod_name):$title ?></<?php echo $fields_args['html_tag'] ?>>
<!-- /Archive Title module -->