# themify-builder/trunk/modules/module-callout.php

Themify Builder, version trunk. 41 lines.

- Page: https://pluginprobe.com/plugins/themify-builder/trunk/code/modules/module-callout.php
- Raw: https://pluginprobe.com/plugins/themify-builder/trunk/raw/modules/module-callout.php
- Modified: 2024-07-10T02:17:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/themify-builder/trunk/code/modules/module-callout.php#L10-L20`.

```php
<?php
defined('ABSPATH') || exit;

/**
 * Module Name: Callout
 * Description: Display Callout content
 */
class TB_Callout_Module extends Themify_Builder_Component_Module {

    public static function get_module_name():string {
        return __('Callout', 'themify');
    }

    public static function get_module_icon():string {
        return 'announcement';
    }

    public static function get_js_css():array {
        return array(
            'css' => 1
        );
    }

    public static function get_styling_image_fields() : array {
        return [
            'background_image' => '.module'
        ];
    }

	public static function get_translatable_text_fields( $module ) : array {
		return [ 'mod_title_callout', 'heading_callout', 'action_btn_text_callout' ];
	}

	public static function get_translatable_textarea_fields( $module ) : array {
		return [ 'text_callout' ];
	}

	public static function get_translatable_link_fields( $module ) : array {
		return [ 'action_btn_link_callout' ];
	}
}
```
