Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../public_h.../wp-conte.../plugins/themify-.../modules
File: module-fancy-heading.php
<?php
[0] Fix | Delete
defined('ABSPATH') || exit;
[1] Fix | Delete
[2] Fix | Delete
/**
[3] Fix | Delete
* Module Name: Fancy Heading
[4] Fix | Delete
* Description: Heading with fancy styles
[5] Fix | Delete
*/
[6] Fix | Delete
class TB_Fancy_Heading_Module extends Themify_Builder_Component_Module {
[7] Fix | Delete
[8] Fix | Delete
[9] Fix | Delete
public static function get_module_name():string {
[10] Fix | Delete
return __('Fancy Heading', 'themify');
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
public static function get_module_icon():string {
[14] Fix | Delete
return 'smallcap';
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
public static function get_js_css():array {
[18] Fix | Delete
return array(
[19] Fix | Delete
'css' => 1
[20] Fix | Delete
);
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
[24] Fix | Delete
/**
[25] Fix | Delete
* Render plain content for static content.
[26] Fix | Delete
*
[27] Fix | Delete
* @param array $module
[28] Fix | Delete
* @return string
[29] Fix | Delete
*/
[30] Fix | Delete
public static function get_static_content(array $module):string {
[31] Fix | Delete
$mod_settings = $module['mod_settings']+array(
[32] Fix | Delete
'heading' => '',
[33] Fix | Delete
'heading_tag' => 'h1',
[34] Fix | Delete
'sub_heading' => ''
[35] Fix | Delete
);
[36] Fix | Delete
return sprintf('<%s>%s<br/>%s</%s>', $mod_settings['heading_tag'], $mod_settings['heading'], $mod_settings['sub_heading'], $mod_settings['heading_tag']);
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
public static function get_styling_image_fields() : array {
[40] Fix | Delete
return [
[41] Fix | Delete
'background_image' => ''
[42] Fix | Delete
];
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
public static function get_translatable_text_fields( $module ) : array {
[46] Fix | Delete
return [ 'heading', 'sub_heading' ];
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
public static function get_translatable_link_fields( $module ) : array {
[50] Fix | Delete
return [ 'heading_link', 'sub_heading_link', 'image' ];
[51] Fix | Delete
}
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function