| 1 |
<?php |
| 2 |
|
| 3 |
defined('ABSPATH') || exit; |
| 4 |
|
| 5 |
/** |
| 6 |
* Module Name: Widgetized |
| 7 |
* Description: Display any registered sidebar |
| 8 |
*/ |
| 9 |
class TB_Widgetized_Module extends Themify_Builder_Component_Module { |
| 10 |
|
| 11 |
public static function get_module_name():string { |
| 12 |
return __('Widgetized', 'themify'); |
| 13 |
} |
| 14 |
|
| 15 |
public static function get_styling_image_fields() : array { |
| 16 |
return [ |
| 17 |
'background_image' => '' |
| 18 |
]; |
| 19 |
} |
| 20 |
|
| 21 |
public static function get_static_content(array $module):string { |
| 22 |
return ''; // no static content for dynamic content |
| 23 |
} |
| 24 |
|
| 25 |
public static function get_translatable_text_fields( $module ) : array { |
| 26 |
return [ 'mod_title_widgetized' ]; |
| 27 |
} |
| 28 |
} |