Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../public_h.../clone/wp-conte.../plugins/themify-.../modules
File: module-archive-title.php
<?php
[0] Fix | Delete
if (!defined('ABSPATH'))
[1] Fix | Delete
exit; // Exit if accessed directly
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Module Name: Archive Title
[5] Fix | Delete
* Description:
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
class TB_Archive_Title_Module extends Themify_Builder_Component_Module {
[9] Fix | Delete
[10] Fix | Delete
function __construct() {
[11] Fix | Delete
parent::__construct(array(
[12] Fix | Delete
'name' => __('Archive Title', 'tbp'),
[13] Fix | Delete
'slug' => 'archive-title',
[14] Fix | Delete
'category' => array('archive','product_archive')
[15] Fix | Delete
));
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
public function get_icon(){
[19] Fix | Delete
return 'text';
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
public function get_options() {
[23] Fix | Delete
return array(
[24] Fix | Delete
array(
[25] Fix | Delete
'id' => 'html_tag',
[26] Fix | Delete
'type' => 'select',
[27] Fix | Delete
'label' => __('HTML Tag', 'tbp'),
[28] Fix | Delete
'options' => array(
[29] Fix | Delete
'h1' => __('H1', 'tbp'),
[30] Fix | Delete
'h2' => __('H2', 'tbp'),
[31] Fix | Delete
'h3' => __('H3', 'tbp'),
[32] Fix | Delete
'h4' => __('H4', 'tbp'),
[33] Fix | Delete
'h5' => __('H5', 'tbp'),
[34] Fix | Delete
'h6' => __('H6', 'tbp'),
[35] Fix | Delete
'div' => __('div', 'tbp'),
[36] Fix | Delete
'p' => __('p', 'tbp')
[37] Fix | Delete
)
[38] Fix | Delete
),
[39] Fix | Delete
array('type' => 'tbp_custom_css')
[40] Fix | Delete
);
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
public function get_styling() {
[44] Fix | Delete
$general = array(
[45] Fix | Delete
// Background
[46] Fix | Delete
self::get_expand('bg', array(
[47] Fix | Delete
self::get_tab(array(
[48] Fix | Delete
'n' => array(
[49] Fix | Delete
'options' => array(
[50] Fix | Delete
self::get_image()
[51] Fix | Delete
)
[52] Fix | Delete
),
[53] Fix | Delete
'h' => array(
[54] Fix | Delete
'options' => array(
[55] Fix | Delete
self::get_image('', 'b_i','bg_c','b_r','b_p', 'h')
[56] Fix | Delete
)
[57] Fix | Delete
)
[58] Fix | Delete
))
[59] Fix | Delete
)),
[60] Fix | Delete
// Font
[61] Fix | Delete
self::get_expand('f', array(
[62] Fix | Delete
self::get_tab(array(
[63] Fix | Delete
'n' => array(
[64] Fix | Delete
'options' => array(
[65] Fix | Delete
self::get_font_family(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 'f_f'),
[66] Fix | Delete
self::get_color_type(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'),'', 'f_c_t', 'f_c', 'f_g_c'),
[67] Fix | Delete
self::get_font_size(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 'f_s'),
[68] Fix | Delete
self::get_line_height(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 'l_h'),
[69] Fix | Delete
self::get_letter_spacing(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 'l_s'),
[70] Fix | Delete
self::get_text_align(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 't_a'),
[71] Fix | Delete
self::get_text_transform(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 't_t'),
[72] Fix | Delete
self::get_font_style(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 'f_st', 'f_w'),
[73] Fix | Delete
self::get_text_decoration(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 't_d_r'),
[74] Fix | Delete
self::get_text_shadow(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'),'t_sh'),
[75] Fix | Delete
)
[76] Fix | Delete
),
[77] Fix | Delete
'h' => array(
[78] Fix | Delete
'options' => array(
[79] Fix | Delete
self::get_font_family(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 'f_f_h'),
[80] Fix | Delete
self::get_color_type(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'),'', 'f_c_t_h', 'f_c_h', 'f_g_c_h'),
[81] Fix | Delete
self::get_font_size(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 'f_s', '', 'h'),
[82] Fix | Delete
self::get_line_height(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 'l_h', 'h'),
[83] Fix | Delete
self::get_letter_spacing(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 'l_s', 'h'),
[84] Fix | Delete
self::get_text_align(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 't_a', 'h'),
[85] Fix | Delete
self::get_text_transform(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 't_t', 'h'),
[86] Fix | Delete
self::get_font_style(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 'f_st', 'f_w', 'h'),
[87] Fix | Delete
self::get_text_decoration(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'), 't_d_r', 'h'),
[88] Fix | Delete
self::get_text_shadow(array('.module h1', '.module h2', '.module h3', '.module h4', '.module h5', '.module h6', ' p'),'t_sh','h'),
[89] Fix | Delete
)
[90] Fix | Delete
)
[91] Fix | Delete
))
[92] Fix | Delete
)),
[93] Fix | Delete
// Padding
[94] Fix | Delete
self::get_expand('p', array(
[95] Fix | Delete
self::get_tab(array(
[96] Fix | Delete
'n' => array(
[97] Fix | Delete
'options' => array(
[98] Fix | Delete
self::get_padding()
[99] Fix | Delete
)
[100] Fix | Delete
),
[101] Fix | Delete
'h' => array(
[102] Fix | Delete
'options' => array(
[103] Fix | Delete
self::get_padding('', 'p', 'h')
[104] Fix | Delete
)
[105] Fix | Delete
)
[106] Fix | Delete
))
[107] Fix | Delete
)),
[108] Fix | Delete
// Margin
[109] Fix | Delete
self::get_expand('m', array(
[110] Fix | Delete
self::get_tab(array(
[111] Fix | Delete
'n' => array(
[112] Fix | Delete
'options' => array(
[113] Fix | Delete
self::get_margin()
[114] Fix | Delete
)
[115] Fix | Delete
),
[116] Fix | Delete
'h' => array(
[117] Fix | Delete
'options' => array(
[118] Fix | Delete
self::get_margin('', 'm', 'h')
[119] Fix | Delete
)
[120] Fix | Delete
)
[121] Fix | Delete
))
[122] Fix | Delete
)),
[123] Fix | Delete
// Border
[124] Fix | Delete
self::get_expand('b', array(
[125] Fix | Delete
self::get_tab(array(
[126] Fix | Delete
'n' => array(
[127] Fix | Delete
'options' => array(
[128] Fix | Delete
self::get_border()
[129] Fix | Delete
)
[130] Fix | Delete
),
[131] Fix | Delete
'h' => array(
[132] Fix | Delete
'options' => array(
[133] Fix | Delete
self::get_border('', 'b', 'h')
[134] Fix | Delete
)
[135] Fix | Delete
)
[136] Fix | Delete
))
[137] Fix | Delete
)),
[138] Fix | Delete
// Filter
[139] Fix | Delete
self::get_expand('f_l',
[140] Fix | Delete
array(
[141] Fix | Delete
self::get_tab(array(
[142] Fix | Delete
'n' => array(
[143] Fix | Delete
'options' => count($a = self::get_blend())>2 ? array($a) : $a
[144] Fix | Delete
),
[145] Fix | Delete
'h' => array(
[146] Fix | Delete
'options' => count($a = self::get_blend('','bl_m_h','h'))>2 ? array($a + array('ishover'=>true)) : $a
[147] Fix | Delete
)
[148] Fix | Delete
))
[149] Fix | Delete
)
[150] Fix | Delete
),
[151] Fix | Delete
// Width
[152] Fix | Delete
self::get_expand('w', array(
[153] Fix | Delete
self::get_tab(array(
[154] Fix | Delete
'n' => array(
[155] Fix | Delete
'options' => array(
[156] Fix | Delete
self::get_width('', 'w')
[157] Fix | Delete
)
[158] Fix | Delete
),
[159] Fix | Delete
'h' => array(
[160] Fix | Delete
'options' => array(
[161] Fix | Delete
self::get_width('', 'w', 'h')
[162] Fix | Delete
)
[163] Fix | Delete
)
[164] Fix | Delete
))
[165] Fix | Delete
)),
[166] Fix | Delete
// Rounded Corners
[167] Fix | Delete
self::get_expand('r_c', array(
[168] Fix | Delete
self::get_tab(array(
[169] Fix | Delete
'n' => array(
[170] Fix | Delete
'options' => array(
[171] Fix | Delete
self::get_border_radius()
[172] Fix | Delete
)
[173] Fix | Delete
),
[174] Fix | Delete
'h' => array(
[175] Fix | Delete
'options' => array(
[176] Fix | Delete
self::get_border_radius('', 'r_c', 'h')
[177] Fix | Delete
)
[178] Fix | Delete
)
[179] Fix | Delete
))
[180] Fix | Delete
)
[181] Fix | Delete
),
[182] Fix | Delete
// Shadow
[183] Fix | Delete
self::get_expand('sh', array(
[184] Fix | Delete
self::get_tab(array(
[185] Fix | Delete
'n' => array(
[186] Fix | Delete
'options' => array(
[187] Fix | Delete
self::get_box_shadow()
[188] Fix | Delete
)
[189] Fix | Delete
),
[190] Fix | Delete
'h' => array(
[191] Fix | Delete
'options' => array(
[192] Fix | Delete
self::get_box_shadow('', 'sh', 'h')
[193] Fix | Delete
)
[194] Fix | Delete
)
[195] Fix | Delete
))
[196] Fix | Delete
)
[197] Fix | Delete
),
[198] Fix | Delete
// Position
[199] Fix | Delete
self::get_expand('po', array( self::get_css_position())),
[200] Fix | Delete
// Display
[201] Fix | Delete
self::get_expand('disp', self::get_display())
[202] Fix | Delete
);
[203] Fix | Delete
[204] Fix | Delete
$title = array();
[205] Fix | Delete
[206] Fix | Delete
for ($i = 1; $i <= 6; ++$i) {
[207] Fix | Delete
$h = 'h' . $i;
[208] Fix | Delete
$selector = $h;
[209] Fix | Delete
if($i === 3){
[210] Fix | Delete
$selector.=':not(.module-title)';
[211] Fix | Delete
}
[212] Fix | Delete
$title = array_merge($title, array(
[213] Fix | Delete
self::get_expand(sprintf(__('Heading %s Font', 'tbp'), $i), array(
[214] Fix | Delete
self::get_tab(array(
[215] Fix | Delete
'n' => array(
[216] Fix | Delete
'options' => array(
[217] Fix | Delete
self::get_font_family('.module ' . $selector, 'f_f' . $h),
[218] Fix | Delete
self::get_color_type('.module ' .$selector,'','f_c_t_' . $h, 'f_c_' . $h, 'f_g_c_' . $h),
[219] Fix | Delete
self::get_font_size('.module ' . $h, 'f_s_' . $h),
[220] Fix | Delete
self::get_line_height('.module ' . $h, 'l_h_' . $h),
[221] Fix | Delete
self::get_letter_spacing('.module ' . $h, 'l_s_' . $h),
[222] Fix | Delete
self::get_text_transform('.module ' . $h, 't_t_' . $h),
[223] Fix | Delete
self::get_font_style('.module ' . $h, 'f_st_' . $h, 'f_w_' . $h),
[224] Fix | Delete
self::get_text_shadow('.module ' .$selector, 't_sh' . $h),
[225] Fix | Delete
// Heading Margin
[226] Fix | Delete
self::get_heading_margin_multi_field('.module', $h, 'top'),
[227] Fix | Delete
self::get_heading_margin_multi_field('.module', $h, 'bottom')
[228] Fix | Delete
)
[229] Fix | Delete
),
[230] Fix | Delete
'h' => array(
[231] Fix | Delete
'options' => array(
[232] Fix | Delete
self::get_font_family('.module:hover ' . $selector, 'f_f_' . $h.'_h'),
[233] Fix | Delete
self::get_color_type('.module:hover ' . $selector,'', 'f_c_t_' . $h.'_h', 'f_c_' . $h.'_h', 'f_g_c_' . $h.'_h'),
[234] Fix | Delete
self::get_font_size('.module ' . $h, 'f_s_' . $h, '', 'h'),
[235] Fix | Delete
self::get_line_height('.module ' . $h, 'l_h_' . $h, 'h'),
[236] Fix | Delete
self::get_letter_spacing('.module ' . $h, 'l_s_' . $h, 'h'),
[237] Fix | Delete
self::get_text_transform('.module ' . $h, 't_t_' . $h, 'h'),
[238] Fix | Delete
self::get_font_style('.module ' . $h, 'f_st_' . $h, 'f_w_' . $h, 'h'),
[239] Fix | Delete
self::get_text_shadow('.module:hover ' . $selector, 't_sh' . $h,'h'),
[240] Fix | Delete
// Heading Margin
[241] Fix | Delete
self::get_heading_margin_multi_field('.module', $h, 'top', 'h'),
[242] Fix | Delete
self::get_heading_margin_multi_field('.module', $h, 'bottom', 'h')
[243] Fix | Delete
)
[244] Fix | Delete
)
[245] Fix | Delete
))
[246] Fix | Delete
))
[247] Fix | Delete
));
[248] Fix | Delete
}
[249] Fix | Delete
[250] Fix | Delete
[251] Fix | Delete
return array(
[252] Fix | Delete
'type' => 'tabs',
[253] Fix | Delete
'options' => array(
[254] Fix | Delete
'g' => array(
[255] Fix | Delete
'options' => $general
[256] Fix | Delete
),
[257] Fix | Delete
't' => array(
[258] Fix | Delete
'label' => __('Heading', 'tbp'),
[259] Fix | Delete
'options' => $title
[260] Fix | Delete
)
[261] Fix | Delete
)
[262] Fix | Delete
);
[263] Fix | Delete
}
[264] Fix | Delete
[265] Fix | Delete
public function get_live_default() {
[266] Fix | Delete
return array(
[267] Fix | Delete
'html_tag' => 'h2'
[268] Fix | Delete
);
[269] Fix | Delete
}
[270] Fix | Delete
[271] Fix | Delete
public function get_visual_type() {
[272] Fix | Delete
return 'ajax';
[273] Fix | Delete
}
[274] Fix | Delete
[275] Fix | Delete
public function get_category() {
[276] Fix | Delete
return array( 'archive' );
[277] Fix | Delete
}
[278] Fix | Delete
[279] Fix | Delete
}
[280] Fix | Delete
[281] Fix | Delete
Themify_Builder_Model::register_module('TB_Archive_Title_Module');
[282] Fix | Delete
[283] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function