PATH:
home
/
fengshp
/
www
/
wp-content
/
themes
/
themify-ultra
/
themify
/
themify-builder
/
modules
<?php defined('ABSPATH') || exit; /** * Module Name: Fancy Heading * Description: Heading with fancy styles */ class TB_Fancy_Heading_Module extends Themify_Builder_Component_Module { public static function get_module_name():string { return __('Fancy Heading', 'themify'); } public static function get_module_icon():string { return 'smallcap'; } public static function get_js_css():array { return array( 'css' => 1 ); } /** * Render plain content for static content. * * @param array $module * @return string */ public static function get_static_content(array $module):string { $mod_settings = $module['mod_settings']+array( 'heading' => '', 'heading_tag' => 'h1', 'sub_heading' => '' ); $mod_settings['heading_tag'] = themify_whitelist_tag( $mod_settings['heading_tag'], 'h1' ); return sprintf('<%s>%s<br/>%s</%s>', $mod_settings['heading_tag'], $mod_settings['heading'], $mod_settings['sub_heading'], $mod_settings['heading_tag']); } public static function get_styling_image_fields() : array { return [ 'background_image' => '' ]; } public static function get_translatable_text_fields( $module ) : array { return [ 'heading', 'sub_heading' ]; } public static function get_translatable_link_fields( $module ) : array { return [ 'heading_link', 'sub_heading_link', 'image' ]; } }
[+]
..
[-] module-page-break.php
[edit]
[-] module-lottie.php
[edit]
[-] module-menu.php
[edit]
[-] module-service-menu.php
[edit]
[-] module-text.php
[edit]
[-] module-post.php
[edit]
[-] module-social-share.php
[edit]
[-] module-login.php
[edit]
[-] module-callout.php
[edit]
[-] module-layout-part.php
[edit]
[-] module-slider.php
[edit]
[-] module-buttons.php
[edit]
[-] module-overlay-content.php
[edit]
[-] module-map.php
[edit]
[-] module-link-block.php
[edit]
[-] module-code.php
[edit]
[-] module-testimonial.php
[edit]
[-] module-star.php
[edit]
[-] module-alert.php
[edit]
[-] module-tab.php
[edit]
[-] module-highlight.php
[edit]
[-] module-widgetized.php
[edit]
[-] module-video.php
[edit]
[-] module-accordion.php
[edit]
[-] module-gallery.php
[edit]
[-] module-feature.php
[edit]
[-] module-divider.php
[edit]
[-] module-box.php
[edit]
[-] module-copyright.php
[edit]
[-] module-fancy-heading.php
[edit]
[-] module-plain-text.php
[edit]
[-] module-signup-form.php
[edit]
[-] module-widget.php
[edit]
[-] module-testimonial-slider.php
[edit]
[-] module-toc.php
[edit]
[-] module-icon.php
[edit]
[-] module-image.php
[edit]
[-] module-portfolio.php
[edit]
[-] module-optin.php
[edit]