: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
defined('ABSPATH') || exit;
* Description: Display Posts
class TB_Post_Module extends Themify_Builder_Component_Module {
public static function get_module_name():string {
return __('Post', 'themify');
public static function get_module_icon():string {
public static function get_js_css():array {
* Render plain content for static content.
public static function get_static_content(array $module):string {
return ''; // no static content for dynamic content
public static function get_translatable_text_fields( $module ) : array {
return [ 'mod_title_post' ];
public static function get_translatable_textarea_fields( $module ) : array {
return [ 'no_posts_msg' ];