: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
exit; // Exit if accessed directly
* Module Name: Post Title
class TB_Post_Title_Module extends Themify_Builder_Component_Module {
parent::__construct(array(
'name' => __('Post Title', 'tbp'),
'category' => array('single')
public function get_icon(){
public function get_options() {
'label' => __('HTML Tag', 'tbp'),
'div' => __('div', 'tbp'),
'type' => 'toggle_switch',
'label' => __( 'No Follow', 'tbp'),
'on' => array( 'name' => 'yes', 'value' => 'en' ),
'off' => array( 'name' => 'no', 'value' => 'dis' ),
'help' => __( 'If nofollow is enabled, search engines won\'t crawl this link', 'tbp')
array('type' => 'tbp_custom_css')
public function get_styling() {
self::get_expand('bg', array(
self::get_image('', 'b_i','bg_c','b_r','b_p')
self::get_image('', 'b_i','bg_c','b_r','b_p', 'h')
self::get_expand('f', array(
self::get_font_family('', 'f_f'),
self::get_color_type(array('.module .tbp_title','.module .tbp_title a'),'', 'f_c_t', 'f_c', 'f_g_c'),
self::get_font_size('', 'f_s'),
self::get_line_height('', 'l_h'),
self::get_letter_spacing(' .tbp_title', 'l_s'),
self::get_text_align('', 't_a'),
self::get_text_transform('', 't_t'),
self::get_font_style('', 'f_st', 'f_w'),
self::get_text_decoration('', 't_d_r'),
self::get_text_shadow('','t_sh'),
self::get_font_family('', 'f_f_h'),
self::get_color_type(array('.module .tbp_title','.module .tbp_title a'),'', 'f_c_t_h', 'f_c_h', 'f_g_c_h'),
self::get_font_size('', 'f_s', '', 'h'),
self::get_line_height('', 'l_h', 'h'),
self::get_letter_spacing(' .tbp_title', 'l_s', 'h'),
self::get_text_align('', 't_a', 'h'),
self::get_text_transform('', 't_t', 'h'),
self::get_font_style('', 'f_st', 'f_w', 'h'),
self::get_text_decoration('', 't_d_r', 'h'),
self::get_text_shadow('','t_sh','h'),
self::get_expand('l', array(
self::get_color('.module .tbp_title a', 'l_c'),
self::get_text_decoration('.module .tbp_title a', 't_d')
self::get_color('.module .tbp_title a', 'l_c',null, null, 'h'),
self::get_text_decoration('.module .tbp_title a', 't_d', 'h')
self::get_expand('p', array(
self::get_padding('', 'p')
self::get_padding('', 'p', 'h')
self::get_expand('m', array(
self::get_margin('', 'm')
self::get_margin('', 'm', 'h')
self::get_expand('b', array(
self::get_border('', 'b')
self::get_border('', 'b', 'h')
'options' => count($a = self::get_blend())>2 ? array($a) : $a
'options' => count($a = self::get_blend('','bl_m_h','h'))>2 ? array($a + array('ishover'=>true)) : $a
self::get_expand('w', array(
self::get_width('', 'w', 'h')
! method_exists( $this, 'get_max_height' ) ? array() :
self::get_expand('ht', array(
self::get_expand('r_c', array(
self::get_border_radius('', 'r_c')
self::get_border_radius('', 'r_c', 'h')
self::get_expand('sh', array(
self::get_box_shadow('', 'sh')
self::get_box_shadow('', 'sh', 'h')
self::get_expand('po', array( self::get_css_position())),
self::get_expand('disp', self::get_display())
for ($i = 1; $i <= 6; ++$i) {
$selector.=':not(.module-title)';
$heading = array_merge($heading, array(
self::get_expand(sprintf(__('Heading %s Font', 'tbp'), $i), array(
self::get_font_family('.module ' . $selector, 'f_f_' . $h),
self::get_color_type('.module ' .$selector. ' a','','f_c_t_' . $h, 'f_c_' . $h, 'f_g_c_' . $h),
self::get_font_size('.module ' . $h, 'f_s_' . $h),
self::get_line_height('.module ' . $h, 'l_h_' . $h),
self::get_letter_spacing('.module ' . $h, 'l_s_' . $h),
self::get_text_transform('.module ' . $h, 't_t_' . $h),
self::get_font_style('.module ' . $h, 'f_st_' . $h, 'f_w_' . $h),
self::get_text_shadow('.module ' .$selector, 't_sh' . $h),
self::get_heading_margin_multi_field('.module', $h, 'top'),
self::get_heading_margin_multi_field('.module', $h, 'bottom')
self::get_font_family('.module:hover ' . $selector, 'f_f_' . $h.'_h'),
self::get_color_type('.module ' . $selector. ':hover a','', 'f_c_t_' . $h.'_h', 'f_c_' . $h.'_h', 'f_g_c_' . $h.'_h'),
self::get_font_size('.module ' . $h, 'f_s_' . $h, '', 'h'),
self::get_line_height('.module ' . $h, 'l_h_' . $h, 'h'),
self::get_letter_spacing('.module ' . $h, 'l_s_' . $h, 'h'),
self::get_text_transform('.module ' . $h, 't_t_' . $h, 'h'),
self::get_font_style('.module ' . $h, 'f_st_' . $h, 'f_w_' . $h, 'h'),
self::get_text_shadow('.module:hover ' . $selector, 't_sh' . $h,'h'),
self::get_heading_margin_multi_field('.module', $h, 'top', 'h'),
self::get_heading_margin_multi_field('.module', $h, 'bottom', 'h')
public function get_live_default() {
'lightbox_w_unit' => '%',
'lightbox_h_unit' => '%',
public function get_visual_type() {
public function get_category() {
return array( 'single', 'archive', 'page' );
Themify_Builder_Model::register_module('TB_Post_Title_Module');