PluginProbe
Themify Builder / 7.7.7
Themify Builder v7.7.7
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-overlay-content.php

module-overlay-content.php in Themify Builder 7.7.7, at modules/module-overlay-content.php

42 lines 980 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined('ABSPATH') || exit;
4
5 /**
6 * Module Name: Overlay Content
7 * Description: Overlay Content Module
8 */
9 class TB_Overlay_Content_Module extends Themify_Builder_Component_Module {
10
11
12
13 public static function get_module_name():string {
14 return __('Overlay Content', 'themify');
15 }
16
17 public static function get_module_icon():string {
18 return 'new-window';
19 }
20
21 public static function get_js_css():array {
22 return array(
23 'css' => 1,
24 'js' => 1
25 );
26 }
27
28 public static function get_styling_image_fields() : array {
29 return [
30 'background_image' => '',
31 'ctr_b_i' => [ ' .tb_oc_overlay', ' .tb_overlay_content_lp' ]
32 ];
33 }
34
35 public static function get_static_content(array $module):string {
36 return ''; // no static content for dynamic content
37 }
38
39 public static function get_translatable_text_fields( $module ) : array {
40 return [ 'icon_title' ];
41 }
42 }