| 1 |
<?php |
| 2 |
defined('ABSPATH') || exit; |
| 3 |
|
| 4 |
/** |
| 5 |
* Module Name: Box |
| 6 |
* Description: Display box content |
| 7 |
*/ |
| 8 |
class TB_Box_Module extends Themify_Builder_Component_Module { |
| 9 |
|
| 10 |
|
| 11 |
public static function get_module_name():string { |
| 12 |
return __('Box', 'themify'); |
| 13 |
} |
| 14 |
|
| 15 |
public static function get_module_icon():string { |
| 16 |
return 'layout-width-full'; |
| 17 |
} |
| 18 |
|
| 19 |
public static function get_js_css():array { |
| 20 |
return array( |
| 21 |
'css' => 1 |
| 22 |
); |
| 23 |
} |
| 24 |
|
| 25 |
public static function get_styling_image_fields() : array { |
| 26 |
return [ |
| 27 |
'background_image' => ' .ui' |
| 28 |
]; |
| 29 |
} |
| 30 |
|
| 31 |
public static function get_translatable_text_fields( $module ) : array { |
| 32 |
return [ 'mod_title_box' ]; |
| 33 |
} |
| 34 |
|
| 35 |
public static function get_translatable_textarea_fields( $module ) : array { |
| 36 |
return [ 'content_box' ]; |
| 37 |
} |
| 38 |
} |