: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Get plain content of the module output.
public static function get_static_content(array $module):string {
if (isset($module['mod_settings'])) {
$module['mod_settings']['_render_plain_content'] = true;
// Remove format text filter including do_shortcode
if (!Themify_Builder_Model::is_front_builder_activate()) {
remove_filter('themify_builder_module_content', array('Themify_Builder_Model', 'format_text'));
$module['mod_settings'] = array('_render_plain_content' => true);
return self::template($module, 0, false);
* Add z-index option to styling tab
private static function add_zindex_filed(array &$styling) {//@deprecated has been moved to js
$field = self::get_expand('zi',
self::get_zindex('', 'custom_parallax_scroll_zindex')
if (isset($styling['type']) && 'tabs' === $styling['type']) {
$k = key($styling['options']);
if (isset($styling['options'][$k]['options'])) {
$styling['options'][$k]['options'][] = $field;
$styling['options'][$k][] = $field;
* Add Transform options to styling tab
private static function add_transform_filed(array &$styling) {//@deprecated has been moved to js
$field = self::get_expand('tr', array(
'n' => array(self::get_transform()),
'h' => array(self::get_transform('', 'tr', 'h'))
if (isset($styling['type']) && 'tabs' === $styling['type']) {
$k = key($styling['options']);
if (isset($styling['options'][$k]['options'])) {
$styling['options'][$k]['options'][] = $field;
$styling['options'][$k][] = $field;
public function __construct($slug) {//@deprecated
$this->name = $this->get_name();
$this->name = $slug['name'];
$this->slug = $slug['slug'];
if (isset($slug['category'])) {
$this->category = $slug['category'];
Themify_Builder_Model::$modules[$this->slug] = $this;
public function get_form_settings($tab = '') {//@deprecated has been moved to js
$styles = $this->get_styling();
// Add Z-index to all modules
self::add_zindex_filed($styles);
self::add_transform_filed($styles);
public function get_title($module) {//@deprecated
public function get_assets() {//@deprecated use get_js_css
* Get module styling options.
public function get_styling() {//@deprecated has been moved to js
public function get_icon() {//@deprecated use get_module_icon
public function get_name() {//@deprecated use get_module_name
public function get_options() {//@deprecated has been moved to js.
protected function _visual_template() {//@deprecated has been moved to js.
public function get_default_settings() {//@deprecated
public function get_default_args() {//@deprecated
public function get_live_default() {//@deprecated has been moved to js.
public function get_visual_type() {//@deprecated has been moved to js.
public function get_group() {//@deprecated has been moved to js.
public function print_template($echo = false, $ignoreLocal = false) {//@deprecated has been moved to js
public static function get_element_attributes(array $props) {//@deprecated use themify_get_element_attributes
return themify_get_element_attributes($props);
//add inline editing fields
public static function add_inline_edit_fields( $name, $condition = true, $hasEditor = false, $repeat = false, $index = -1, $echo = true) {//@deprecated
public static function get_module_args($key = '') {//@deprecated
return apply_filters('themify_builder_module_args', array('before_title' => '<h3 class="module-title">', 'after_title' => '</h3>'));
* Render a module, as a plain text
public function get_plain_text($module) {//@deprecated
$options = $this->get_options();
foreach ($options as $field) {
// sanitization, check for existence of needed keys
if (!isset($field['type'], $field['id'], $module[$field['id']])) {
// text, textarea, and wp_editor field types
if (in_array($field['type'], array('text', 'textarea', 'wp_editor'), true)) {
$out[] = $module[$field['id']];
elseif ($field['type'] === 'builder' && is_array($module[$field['id']])) {
// gather text field types included in the "builder" field type
foreach ($field['options'] as $row_field) {
if (isset($row_field['type']) && in_array($row_field['type'], array('text', 'textarea', 'wp_editor'), true)) {
$text_fields[] = $row_field['id'];
foreach ($module[$field['id']] as $row) {
// separate fields from the row that have text fields
$texts = array_intersect_key($row, array_flip($text_fields));
// add them to the output
$out = array_merge(array_values($texts), $out);
return implode(' ', $out);
public static function get_pagenav($before = '', $after = '', $query = false, $original_offset = 0) {//backward compatibility for addons,deprecated use get_pagination
return self::get_pagination($before, $after, $query, $original_offset);
public function get_plain_content($module) {//@deprecated use get_static_content
return self::get_static_content($module);
public static function get_tab(array $options, $fullwidth = false, $cl = '') {//@deprecated has been moved to js
if ($fullwidth === true) {
$cl .= ' tb_tabs_fullwidth';
$cl = 'tb_tabs_fullwidth';
public static function get_seperator($label = false) {//@deprecated has been moved to js
public static function get_expand($label, array $options) {//@deprecated has been moved to js
protected static function get_font_family($selector = '', $id = 'font_family', $state = '') {//@deprecated has been moved to js
if ($state === 'h' || $state === 'hover') {
protected static function get_element_font_weight($selector = '', $id = 'element_font_weight', $state = '') {//backward compatibility
protected static function get_font_size($selector = '', $id = 'font_size', $label = '', $state = '') {//@deprecated has been moved to js
if ($state === 'h' || $state === 'hover') {
protected static function get_line_height($selector = '', $id = 'line_height', $state = '') {//@deprecated has been moved to js
if ($state === 'h' || $state === 'hover') {
protected static function get_letter_spacing($selector = '', $id = 'letter_spacing', $state = '') {//@deprecated has been moved to js
'prop' => 'letter-spacing'
if ($state === 'h' || $state === 'hover') {
protected static function get_flex_align($selector = '', $id = 'align', $state = '') {//@deprecated has been moved to js
'prop' => 'align-content',
if ($state === 'h' || $state === 'hover') {
protected static function get_flex_align_items($selector = '', $id = 'align', $state = '') {//@deprecated has been moved to js
if ($state === 'h' || $state === 'hover') {
protected static function get_flex_align_content($selector = '', $id = 'align', $state = '') {//@deprecated has been moved to js
'prop' => 'align-content',
if ($state === 'h' || $state === 'hover') {
protected static function get_text_align($selector = '', $id = 'text_align', $state = '') {//@deprecated has been moved to js
if ($state === 'h' || $state === 'hover') {
protected static function get_text_transform($selector = '', $id = 'text_transform', $state = '') {//@deprecated has been moved to js
'text_transform' => true,
'prop' => 'text-transform',
if ($state === 'h' || $state === 'hover') {
protected static function get_text_decoration($selector = '', $id = 'text_decoration', $state = '') {//@deprecated has been moved to js
'text_decoration' => true,
'prop' => 'text-decoration',
if ($state === 'h' || $state === 'hover') {
protected static function get_font_style($selector = '', $id = 'font_style', $id2 = 'font_weight', $state = '') {//@deprecated has been moved to js
if ($state === 'h' || $state === 'hover') {
protected static function get_color($selector = '', $id = '', $label = null, $prop = 'color', $state = '') {//@deprecated has been moved to js
$color['label'] = $label;
if ($state === 'h' || $state === 'hover') {
$color['ishover'] = true;
protected static function get_image($selector = '', $id = 'background_image', $colorId = 'background_color', $repeatId = 'background_repeat', $posId = 'background_position', $state = '') {//@deprecated has been moved to js
$colorId .= '_' . $state;
$repeatId .= '_' . $state;