| 1 |
<?php |
| 2 |
defined('ABSPATH') || exit; |
| 3 |
|
| 4 |
/** |
| 5 |
* Module Name: Code |
| 6 |
* Description: Display formatted code |
| 7 |
*/ |
| 8 |
class TB_Code_Module extends Themify_Builder_Component_Module { |
| 9 |
|
| 10 |
public static function get_module_name():string { |
| 11 |
return __('Display Code', 'themify'); |
| 12 |
} |
| 13 |
|
| 14 |
public static function get_module_icon():string { |
| 15 |
return 'notepad'; |
| 16 |
} |
| 17 |
|
| 18 |
public static function get_js_css():array { |
| 19 |
return array( |
| 20 |
'async' => true, |
| 21 |
'css' => 1, |
| 22 |
'js' => 1 |
| 23 |
); |
| 24 |
} |
| 25 |
|
| 26 |
public static function get_translatable_text_fields( $module ) : array { |
| 27 |
return [ 'm_t' ]; |
| 28 |
} |
| 29 |
} |