PluginProbe
Themify Builder / trunk
Themify Builder vtrunk
7.8.1 7.8.0 7.7.9 7.7.8 7.7.7 7.7.6 7.7.5 7.7.4 7.7.3 7.7.2 trunk 7.6.0 7.6.1 7.6.2 7.6.3 7.6.4 7.6.5 7.6.6 7.6.7 7.6.8 7.6.9 7.7.0 7.7.1
themify-builder / modules / module-callout.php

module-callout.php in Themify Builder trunk, at modules/module-callout.php

41 lines 1010 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined('ABSPATH') || exit;
3
4 /**
5 * Module Name: Callout
6 * Description: Display Callout content
7 */
8 class TB_Callout_Module extends Themify_Builder_Component_Module {
9
10 public static function get_module_name():string {
11 return __('Callout', 'themify');
12 }
13
14 public static function get_module_icon():string {
15 return 'announcement';
16 }
17
18 public static function get_js_css():array {
19 return array(
20 'css' => 1
21 );
22 }
23
24 public static function get_styling_image_fields() : array {
25 return [
26 'background_image' => '.module'
27 ];
28 }
29
30 public static function get_translatable_text_fields( $module ) : array {
31 return [ 'mod_title_callout', 'heading_callout', 'action_btn_text_callout' ];
32 }
33
34 public static function get_translatable_textarea_fields( $module ) : array {
35 return [ 'text_callout' ];
36 }
37
38 public static function get_translatable_link_fields( $module ) : array {
39 return [ 'action_btn_link_callout' ];
40 }
41 }