| 1 |
<?php |
| 2 |
defined('ABSPATH') || exit; |
| 3 |
|
| 4 |
/** |
| 5 |
* Module Name: Feature |
| 6 |
* Description: Display Feature content |
| 7 |
*/ |
| 8 |
class TB_Feature_Module extends Themify_Builder_Component_Module { |
| 9 |
|
| 10 |
|
| 11 |
public static function get_module_name():string { |
| 12 |
return __('Feature', 'themify'); |
| 13 |
} |
| 14 |
|
| 15 |
public static function get_module_icon():string { |
| 16 |
return 'layout-media-left'; |
| 17 |
} |
| 18 |
|
| 19 |
public static function get_js_css():array { |
| 20 |
return array( |
| 21 |
'css' => 1, |
| 22 |
'js' => 1 |
| 23 |
); |
| 24 |
} |
| 25 |
|
| 26 |
public static function get_styling_image_fields() : array { |
| 27 |
return [ |
| 28 |
'background_image' => '' |
| 29 |
]; |
| 30 |
} |
| 31 |
|
| 32 |
public static function get_translatable_text_fields( $module ) : array { |
| 33 |
return [ 'mod_title_feature', 'title_feature' ]; |
| 34 |
} |
| 35 |
|
| 36 |
public static function get_translatable_textarea_fields( $module ) : array { |
| 37 |
return [ 'content_feature' ]; |
| 38 |
} |
| 39 |
|
| 40 |
public static function get_translatable_link_fields( $module ) : array { |
| 41 |
return [ 'link_feature', 'overlap_image_feature', 'image_feature' ]; |
| 42 |
} |
| 43 |
} |