PluginProbe
Themify Builder / 7.6.5
Themify Builder v7.6.5
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-image.php

module-image.php in Themify Builder 7.6.5, at modules/module-image.php

55 lines 1.2 KB
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: Image
6 * Description: Display Image content
7 */
8 class TB_Image_Module extends Themify_Builder_Component_Module {
9
10 public static function get_module_name():string {
11 return __('Image', 'themify');
12 }
13
14 public static function get_js_css():array {
15 return array(
16 'css' => 1
17 );
18 }
19
20 /**
21 * Backward Compatibility methods
22 */
23 public function __construct() {
24 parent::__construct('image');
25 }
26
27 public function get_name() {
28 return self::get_module_name();
29 }
30
31 function get_assets() {
32 return self::get_js_css();
33 }
34
35 public static function get_styling_image_fields() : array {
36 return [
37 'background_image' => ''
38 ];
39 }
40
41 public static function get_translatable_text_fields( $module ) : array {
42 return [ 'mod_title_image', 'title_image', 'alt_image' ];
43 }
44
45 public static function get_translatable_textarea_fields( $module ) : array {
46 return [ 'caption_image' ];
47 }
48
49 public static function get_translatable_link_fields( $module ) : array {
50 return [ 'url_image', 'link_image' ];
51 }
52 }
53
54 new TB_Image_Module();//backward for builder-pro
55