: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
defined('ABSPATH') || exit;
* Description: Displays login form
class TB_Login_Module extends Themify_Builder_Component_Module {
public static function get_module_name():string {
return __('Login', 'themify');
public static function get_module_icon():string {
public static function get_js_css():array {
if (!Themify_Builder_Model::is_front_builder_activate()) {
* Render plain content for static content.
public static function get_static_content(array $module):string {
return sprintf( __( '<a href="%s" target="_blank">Click here to Login</a>', 'themify' ), esc_url( wp_login_url() ) );
public static function get_styling_image_fields() : array {
public static function get_translatable_text_fields( $module ) : array {
return [ 'mod_title', 'label_username', 'label_password', 'label_remember', 'label_log_in', 'label_forgotten_password', 'lostpasswordform_label_username', 'lostpasswordform_label_reset' ];
public static function get_translatable_textarea_fields( $module ) : array {
return [ 'content_text', 'msg_fail' ];
public static function get_translatable_link_fields( $module ) : array {
return [ 'redirect_to', 'redirect_fail', 'lostpasswordform_redirect_to' ];