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.../httpdocs/clone/wp-conte.../themes/Divi/includes/builder/module
File: Testimonial.php
<?php
[0] Fix | Delete
[1] Fix | Delete
class ET_Builder_Module_Testimonial extends ET_Builder_Module {
[2] Fix | Delete
function init() {
[3] Fix | Delete
$this->name = esc_html__( 'Testimonial', 'et_builder' );
[4] Fix | Delete
$this->plural = esc_html__( 'Testimonials', 'et_builder' );
[5] Fix | Delete
$this->slug = 'et_pb_testimonial';
[6] Fix | Delete
$this->vb_support = 'on';
[7] Fix | Delete
$this->main_css_element = '%%order_class%%.et_pb_testimonial';
[8] Fix | Delete
[9] Fix | Delete
$this->settings_modal_toggles = array(
[10] Fix | Delete
'general' => array(
[11] Fix | Delete
'toggles' => array(
[12] Fix | Delete
'main_content' => et_builder_i18n( 'Text' ),
[13] Fix | Delete
'image' => et_builder_i18n( 'Image' ),
[14] Fix | Delete
'elements' => et_builder_i18n( 'Elements' ),
[15] Fix | Delete
),
[16] Fix | Delete
),
[17] Fix | Delete
'advanced' => array(
[18] Fix | Delete
'toggles' => array(
[19] Fix | Delete
'icon' => esc_html__( 'Quote Icon', 'et_builder' ),
[20] Fix | Delete
'text' => array(
[21] Fix | Delete
'title' => et_builder_i18n( 'Text' ),
[22] Fix | Delete
'priority' => 51,
[23] Fix | Delete
),
[24] Fix | Delete
'image' => array(
[25] Fix | Delete
'title' => et_builder_i18n( 'Image' ),
[26] Fix | Delete
'priority' => 49,
[27] Fix | Delete
),
[28] Fix | Delete
'animation' => array(
[29] Fix | Delete
'title' => esc_html__( 'Animation', 'et_builder' ),
[30] Fix | Delete
'priority' => 100,
[31] Fix | Delete
),
[32] Fix | Delete
),
[33] Fix | Delete
),
[34] Fix | Delete
);
[35] Fix | Delete
[36] Fix | Delete
$this->advanced_fields = array(
[37] Fix | Delete
'fonts' => array(
[38] Fix | Delete
'body' => array(
[39] Fix | Delete
'label' => et_builder_i18n( 'Body' ),
[40] Fix | Delete
'css' => array(
[41] Fix | Delete
'main' => "{$this->main_css_element} *",
[42] Fix | Delete
),
[43] Fix | Delete
'hide_text_shadow' => true,
[44] Fix | Delete
'block_elements' => array(
[45] Fix | Delete
'tabbed_subtoggles' => true,
[46] Fix | Delete
'bb_icons_support' => true,
[47] Fix | Delete
),
[48] Fix | Delete
),
[49] Fix | Delete
'author' => array(
[50] Fix | Delete
'label' => esc_html__( 'Author', 'et_builder' ),
[51] Fix | Delete
'css' => array(
[52] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_testimonial_author",
[53] Fix | Delete
),
[54] Fix | Delete
'font' => array(
[55] Fix | Delete
'default' => '|700|||||||',
[56] Fix | Delete
),
[57] Fix | Delete
'line_height' => array(
[58] Fix | Delete
'default' => floatval( et_get_option( 'body_font_height', '1.5' ) ) . 'em',
[59] Fix | Delete
),
[60] Fix | Delete
'font_size' => array(
[61] Fix | Delete
'default' => absint( et_get_option( 'body_font_size', '14' ) ) . 'px',
[62] Fix | Delete
),
[63] Fix | Delete
'letter_spacing' => array(
[64] Fix | Delete
'default' => '0px',
[65] Fix | Delete
),
[66] Fix | Delete
),
[67] Fix | Delete
'position' => array(
[68] Fix | Delete
'label' => et_builder_i18n( 'Position' ),
[69] Fix | Delete
'css' => array(
[70] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_testimonial_position, {$this->main_css_element} .et_pb_testimonial_separator",
[71] Fix | Delete
),
[72] Fix | Delete
'hide_text_align' => true,
[73] Fix | Delete
'line_height' => array(
[74] Fix | Delete
'default' => floatval( et_get_option( 'body_font_height', '1.5' ) ) . 'em',
[75] Fix | Delete
),
[76] Fix | Delete
'font_size' => array(
[77] Fix | Delete
'default' => absint( et_get_option( 'body_font_size', '14' ) ) . 'px',
[78] Fix | Delete
),
[79] Fix | Delete
'letter_spacing' => array(
[80] Fix | Delete
'default' => '0px',
[81] Fix | Delete
),
[82] Fix | Delete
),
[83] Fix | Delete
'company' => array(
[84] Fix | Delete
'label' => esc_html__( 'Company', 'et_builder' ),
[85] Fix | Delete
'css' => array(
[86] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_testimonial_company, {$this->main_css_element} .et_pb_testimonial_company a",
[87] Fix | Delete
),
[88] Fix | Delete
'hide_text_align' => true,
[89] Fix | Delete
'line_height' => array(
[90] Fix | Delete
'default' => floatval( et_get_option( 'body_font_height', '1.5' ) ) . 'em',
[91] Fix | Delete
),
[92] Fix | Delete
'font_size' => array(
[93] Fix | Delete
'default' => absint( et_get_option( 'body_font_size', '14' ) ) . 'px',
[94] Fix | Delete
),
[95] Fix | Delete
'letter_spacing' => array(
[96] Fix | Delete
'default' => '0px',
[97] Fix | Delete
),
[98] Fix | Delete
),
[99] Fix | Delete
),
[100] Fix | Delete
'background' => array(
[101] Fix | Delete
'has_background_color_toggle' => true,
[102] Fix | Delete
'use_background_color' => true,
[103] Fix | Delete
'options' => array(
[104] Fix | Delete
'use_background_color' => array(
[105] Fix | Delete
'default' => 'on',
[106] Fix | Delete
),
[107] Fix | Delete
'background_color' => array(
[108] Fix | Delete
'depends_show_if' => 'on',
[109] Fix | Delete
'default' => '#f5f5f5',
[110] Fix | Delete
),
[111] Fix | Delete
),
[112] Fix | Delete
'settings' => array(
[113] Fix | Delete
'color' => 'alpha',
[114] Fix | Delete
),
[115] Fix | Delete
),
[116] Fix | Delete
'borders' => array(
[117] Fix | Delete
'default' => array(),
[118] Fix | Delete
'portrait' => array(
[119] Fix | Delete
'css' => array(
[120] Fix | Delete
'main' => array(
[121] Fix | Delete
'border_radii' => "%%order_class%% .et_pb_testimonial_portrait, %%order_class%% .et_pb_testimonial_portrait:before",
[122] Fix | Delete
'border_styles' => "%%order_class%% .et_pb_testimonial_portrait",
[123] Fix | Delete
),
[124] Fix | Delete
),
[125] Fix | Delete
'label_prefix' => et_builder_i18n( 'Image' ),
[126] Fix | Delete
'tab_slug' => 'advanced',
[127] Fix | Delete
'toggle_slug' => 'image',
[128] Fix | Delete
'defaults' => array(
[129] Fix | Delete
'border_radii' => 'on|90px|90px|90px|90px',
[130] Fix | Delete
'border_styles' => array(
[131] Fix | Delete
'width' => '0px',
[132] Fix | Delete
'color' => '#333333',
[133] Fix | Delete
'style' => 'solid',
[134] Fix | Delete
),
[135] Fix | Delete
),
[136] Fix | Delete
),
[137] Fix | Delete
),
[138] Fix | Delete
'box_shadow' => array(
[139] Fix | Delete
'default' => array(),
[140] Fix | Delete
'image' => array(
[141] Fix | Delete
'label' => esc_html__( 'Image Box Shadow', 'et_builder' ),
[142] Fix | Delete
'option_category' => 'layout',
[143] Fix | Delete
'tab_slug' => 'advanced',
[144] Fix | Delete
'toggle_slug' => 'image',
[145] Fix | Delete
'css' => array(
[146] Fix | Delete
'main' => '%%order_class%% .et_pb_testimonial_portrait:before',
[147] Fix | Delete
),
[148] Fix | Delete
'default_on_fronts' => array(
[149] Fix | Delete
'color' => '',
[150] Fix | Delete
'position' => '',
[151] Fix | Delete
),
[152] Fix | Delete
),
[153] Fix | Delete
),
[154] Fix | Delete
'margin_padding' => array(
[155] Fix | Delete
'css' => array(
[156] Fix | Delete
'important' => 'all',
[157] Fix | Delete
),
[158] Fix | Delete
),
[159] Fix | Delete
'text' => array(
[160] Fix | Delete
'use_background_layout' => true,
[161] Fix | Delete
'options' => array(
[162] Fix | Delete
'text_orientation' => array(
[163] Fix | Delete
'default' => 'left',
[164] Fix | Delete
),
[165] Fix | Delete
'background_layout' => array(
[166] Fix | Delete
'default' => 'light',
[167] Fix | Delete
'hover' => 'tabs',
[168] Fix | Delete
),
[169] Fix | Delete
),
[170] Fix | Delete
'css' => array(
[171] Fix | Delete
'main' => implode(', ', array(
[172] Fix | Delete
'%%order_class%% .et_pb_testimonial_description p',
[173] Fix | Delete
'%%order_class%% .et_pb_testimonial_description a',
[174] Fix | Delete
'%%order_class%% .et_pb_testimonial_description .et_pb_testimonial_author',
[175] Fix | Delete
))
[176] Fix | Delete
)
[177] Fix | Delete
),
[178] Fix | Delete
'filters' => array(
[179] Fix | Delete
'child_filters_target' => array(
[180] Fix | Delete
'tab_slug' => 'advanced',
[181] Fix | Delete
'toggle_slug' => 'image',
[182] Fix | Delete
),
[183] Fix | Delete
),
[184] Fix | Delete
'image' => array(
[185] Fix | Delete
'css' => array(
[186] Fix | Delete
'main' => '%%order_class%% .et_pb_testimonial_portrait',
[187] Fix | Delete
),
[188] Fix | Delete
),
[189] Fix | Delete
'position_fields' => array(
[190] Fix | Delete
'default' => 'relative',
[191] Fix | Delete
),
[192] Fix | Delete
);
[193] Fix | Delete
[194] Fix | Delete
$this->custom_css_fields = array(
[195] Fix | Delete
'testimonial_portrait' => array(
[196] Fix | Delete
'label' => esc_html__( 'Testimonial Portrait', 'et_builder' ),
[197] Fix | Delete
'selector' => '.et_pb_testimonial_portrait',
[198] Fix | Delete
),
[199] Fix | Delete
'testimonial_description' => array(
[200] Fix | Delete
'label' => esc_html__( 'Testimonial Description', 'et_builder' ),
[201] Fix | Delete
'selector' => '.et_pb_testimonial_description',
[202] Fix | Delete
),
[203] Fix | Delete
'testimonial_author' => array(
[204] Fix | Delete
'label' => esc_html__( 'Testimonial Author', 'et_builder' ),
[205] Fix | Delete
'selector' => '.et_pb_testimonial_author',
[206] Fix | Delete
),
[207] Fix | Delete
'testimonial_meta' => array(
[208] Fix | Delete
'label' => esc_html__( 'Testimonial Meta', 'et_builder' ),
[209] Fix | Delete
'selector' => '.et_pb_testimonial_meta',
[210] Fix | Delete
),
[211] Fix | Delete
);
[212] Fix | Delete
[213] Fix | Delete
$this->help_videos = array(
[214] Fix | Delete
array(
[215] Fix | Delete
'id' => 'FkQuawiGWUw',
[216] Fix | Delete
'name' => esc_html__( 'An introduction to the Testimonial module', 'et_builder' ),
[217] Fix | Delete
),
[218] Fix | Delete
);
[219] Fix | Delete
}
[220] Fix | Delete
[221] Fix | Delete
function get_fields() {
[222] Fix | Delete
$fields = array(
[223] Fix | Delete
'author' => array(
[224] Fix | Delete
'label' => esc_html__( 'Author', 'et_builder' ),
[225] Fix | Delete
'type' => 'text',
[226] Fix | Delete
'option_category' => 'basic_option',
[227] Fix | Delete
'description' => esc_html__( 'Input the name of the testimonial author.', 'et_builder' ),
[228] Fix | Delete
'toggle_slug' => 'main_content',
[229] Fix | Delete
'dynamic_content' => 'text',
[230] Fix | Delete
'mobile_options' => true,
[231] Fix | Delete
'hover' => 'tabs',
[232] Fix | Delete
),
[233] Fix | Delete
'job_title' => array(
[234] Fix | Delete
'label' => esc_html__( 'Job Title', 'et_builder' ),
[235] Fix | Delete
'type' => 'text',
[236] Fix | Delete
'option_category' => 'basic_option',
[237] Fix | Delete
'description' => esc_html__( 'Input the job title.', 'et_builder' ),
[238] Fix | Delete
'toggle_slug' => 'main_content',
[239] Fix | Delete
'dynamic_content' => 'text',
[240] Fix | Delete
'mobile_options' => true,
[241] Fix | Delete
'hover' => 'tabs',
[242] Fix | Delete
),
[243] Fix | Delete
'company_name' => array(
[244] Fix | Delete
'label' => esc_html__( 'Company', 'et_builder' ),
[245] Fix | Delete
'type' => 'text',
[246] Fix | Delete
'option_category' => 'basic_option',
[247] Fix | Delete
'description' => esc_html__( 'Input the name of the company.', 'et_builder' ),
[248] Fix | Delete
'toggle_slug' => 'main_content',
[249] Fix | Delete
'dynamic_content' => 'text',
[250] Fix | Delete
'mobile_options' => true,
[251] Fix | Delete
'hover' => 'tabs',
[252] Fix | Delete
),
[253] Fix | Delete
'url' => array(
[254] Fix | Delete
'label' => esc_html__( 'Company Link URL', 'et_builder' ),
[255] Fix | Delete
'type' => 'text',
[256] Fix | Delete
'option_category' => 'basic_option',
[257] Fix | Delete
'description' => esc_html__( 'Input the website of the author or leave blank for no link.', 'et_builder' ),
[258] Fix | Delete
'toggle_slug' => 'link_options',
[259] Fix | Delete
'dynamic_content' => 'url',
[260] Fix | Delete
),
[261] Fix | Delete
'url_new_window' => array(
[262] Fix | Delete
'label' => esc_html__( 'Company Link Target', 'et_builder' ),
[263] Fix | Delete
'type' => 'select',
[264] Fix | Delete
'option_category' => 'configuration',
[265] Fix | Delete
'options' => array(
[266] Fix | Delete
'off' => esc_html__( 'In The Same Window', 'et_builder' ),
[267] Fix | Delete
'on' => esc_html__( 'In The New Tab', 'et_builder' ),
[268] Fix | Delete
),
[269] Fix | Delete
'toggle_slug' => 'link_options',
[270] Fix | Delete
'description' => esc_html__( 'Choose whether or not the URL should open in a new window.', 'et_builder' ),
[271] Fix | Delete
'default_on_front' => 'off',
[272] Fix | Delete
),
[273] Fix | Delete
'portrait_url' => array(
[274] Fix | Delete
'label' => et_builder_i18n( 'Image' ),
[275] Fix | Delete
'type' => 'upload',
[276] Fix | Delete
'option_category' => 'basic_option',
[277] Fix | Delete
'upload_button_text' => et_builder_i18n( 'Upload an image' ),
[278] Fix | Delete
'choose_text' => esc_attr__( 'Choose an Image', 'et_builder' ),
[279] Fix | Delete
'update_text' => esc_attr__( 'Set As Image', 'et_builder' ),
[280] Fix | Delete
'description' => esc_html__( 'Upload your desired image, or type in the URL to the image you would like to display.', 'et_builder' ),
[281] Fix | Delete
'toggle_slug' => 'image',
[282] Fix | Delete
'dynamic_content' => 'image',
[283] Fix | Delete
'mobile_options' => true,
[284] Fix | Delete
'hover' => 'tabs',
[285] Fix | Delete
),
[286] Fix | Delete
'quote_icon' => array(
[287] Fix | Delete
'label' => esc_html__( 'Show Quote Icon', 'et_builder' ),
[288] Fix | Delete
'type' => 'yes_no_button',
[289] Fix | Delete
'option_category' => 'configuration',
[290] Fix | Delete
'options' => array(
[291] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[292] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[293] Fix | Delete
),
[294] Fix | Delete
'default_on_front' => 'on',
[295] Fix | Delete
'description' => esc_html__( 'Choose whether or not the quote icon should be visible.', 'et_builder' ),
[296] Fix | Delete
'toggle_slug' => 'elements',
[297] Fix | Delete
'mobile_options' => true,
[298] Fix | Delete
'hover' => 'tabs',
[299] Fix | Delete
),
[300] Fix | Delete
'content' => array(
[301] Fix | Delete
'label' => et_builder_i18n( 'Body' ),
[302] Fix | Delete
'type' => 'tiny_mce',
[303] Fix | Delete
'option_category' => 'basic_option',
[304] Fix | Delete
'description' => esc_html__( 'Input the main text content for your module here.', 'et_builder' ),
[305] Fix | Delete
'toggle_slug' => 'main_content',
[306] Fix | Delete
'dynamic_content' => 'text',
[307] Fix | Delete
'mobile_options' => true,
[308] Fix | Delete
'hover' => 'tabs',
[309] Fix | Delete
),
[310] Fix | Delete
'quote_icon_color' => array(
[311] Fix | Delete
'label' => esc_html__( 'Quote Icon Color', 'et_builder' ),
[312] Fix | Delete
'description' => esc_html__( 'Here you can define a custom color for the quote icon.', 'et_builder' ),
[313] Fix | Delete
'type' => 'color-alpha',
[314] Fix | Delete
'custom_color' => true,
[315] Fix | Delete
'tab_slug' => 'advanced',
[316] Fix | Delete
'toggle_slug' => 'icon',
[317] Fix | Delete
'hover' => 'tabs',
[318] Fix | Delete
'mobile_options' => true,
[319] Fix | Delete
),
[320] Fix | Delete
'quote_icon_background_color' => array(
[321] Fix | Delete
'label' => esc_html__( 'Quote Icon Background Color', 'et_builder' ),
[322] Fix | Delete
'description' => esc_html__( 'Pick a color to use for the circular background area behind the quote icon.', 'et_builder' ),
[323] Fix | Delete
'type' => 'color-alpha',
[324] Fix | Delete
'custom_color' => true,
[325] Fix | Delete
'tab_slug' => 'advanced',
[326] Fix | Delete
'toggle_slug' => 'icon',
[327] Fix | Delete
'default' => '#f5f5f5',
[328] Fix | Delete
'default_on_front' => '',
[329] Fix | Delete
'hover' => 'tabs',
[330] Fix | Delete
'mobile_options' => true,
[331] Fix | Delete
),
[332] Fix | Delete
'portrait_width' => array(
[333] Fix | Delete
'label' => esc_html__( 'Image Width', 'et_builder' ),
[334] Fix | Delete
'description' => esc_html__( "Adjust the width of the person's portrait photo within the testimonial.", 'et_builder' ),
[335] Fix | Delete
'type' => 'range',
[336] Fix | Delete
'option_category' => 'layout',
[337] Fix | Delete
'tab_slug' => 'advanced',
[338] Fix | Delete
'toggle_slug' => 'image',
[339] Fix | Delete
'default_unit' => 'px',
[340] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[341] Fix | Delete
'range_settings' => array(
[342] Fix | Delete
'min' => '1',
[343] Fix | Delete
'max' => '200',
[344] Fix | Delete
'step' => '1',
[345] Fix | Delete
),
[346] Fix | Delete
'mobile_options' => true,
[347] Fix | Delete
),
[348] Fix | Delete
'portrait_height' => array(
[349] Fix | Delete
'label' => esc_html__( 'Image Height', 'et_builder' ),
[350] Fix | Delete
'description' => esc_html__( "Adjust the height of the person's portrait photo within the testimonial.", 'et_builder' ),
[351] Fix | Delete
'type' => 'range',
[352] Fix | Delete
'option_category' => 'layout',
[353] Fix | Delete
'tab_slug' => 'advanced',
[354] Fix | Delete
'toggle_slug' => 'image',
[355] Fix | Delete
'allowed_units' => array( 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[356] Fix | Delete
'range_settings' => array(
[357] Fix | Delete
'min' => '1',
[358] Fix | Delete
'max' => '200',
[359] Fix | Delete
'step' => '1',
[360] Fix | Delete
),
[361] Fix | Delete
'mobile_options' => true,
[362] Fix | Delete
),
[363] Fix | Delete
'use_icon_font_size' => array(
[364] Fix | Delete
'label' => esc_html__( 'Use Custom Quote Icon Size', 'et_builder' ),
[365] Fix | Delete
'description' => esc_html__( 'If you would like to control the size of the icon, you must first enable this option.', 'et_builder' ),
[366] Fix | Delete
'type' => 'yes_no_button',
[367] Fix | Delete
'options' => array(
[368] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[369] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[370] Fix | Delete
),
[371] Fix | Delete
'default_on_front' => 'off',
[372] Fix | Delete
'affects' => array(
[373] Fix | Delete
'icon_font_size',
[374] Fix | Delete
),
[375] Fix | Delete
'tab_slug' => 'advanced',
[376] Fix | Delete
'toggle_slug' => 'icon',
[377] Fix | Delete
'option_category' => 'font_option',
[378] Fix | Delete
),
[379] Fix | Delete
'icon_font_size' => array(
[380] Fix | Delete
'label' => esc_html__( 'Quote Icon Font Size', 'et_builder' ),
[381] Fix | Delete
'description' => esc_html__( 'Control the size of the icon by increasing or decreasing the font size.', 'et_builder' ),
[382] Fix | Delete
'type' => 'range',
[383] Fix | Delete
'option_category' => 'font_option',
[384] Fix | Delete
'tab_slug' => 'advanced',
[385] Fix | Delete
'toggle_slug' => 'icon',
[386] Fix | Delete
'default' => '32px',
[387] Fix | Delete
'default_unit' => 'px',
[388] Fix | Delete
'default_on_front' => '',
[389] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[390] Fix | Delete
'range_settings' => array(
[391] Fix | Delete
'min' => '1',
[392] Fix | Delete
'max' => '120',
[393] Fix | Delete
'step' => '1',
[394] Fix | Delete
),
[395] Fix | Delete
'mobile_options' => true,
[396] Fix | Delete
'depends_show_if' => 'on',
[397] Fix | Delete
'responsive' => true,
[398] Fix | Delete
'hover' => 'tabs',
[399] Fix | Delete
),
[400] Fix | Delete
);
[401] Fix | Delete
[402] Fix | Delete
return $fields;
[403] Fix | Delete
}
[404] Fix | Delete
[405] Fix | Delete
public function get_transition_fields_css_props() {
[406] Fix | Delete
$fields = parent::get_transition_fields_css_props();
[407] Fix | Delete
[408] Fix | Delete
$fields['quote_icon_color'] = array( 'color' => '%%order_class%%.et_pb_testimonial:before' );
[409] Fix | Delete
$fields['quote_icon_background_color'] = array( 'background-color' => '%%order_class%%.et_pb_testimonial:before' );
[410] Fix | Delete
$fields['icon_font_size'] = array(
[411] Fix | Delete
'font-size' => '%%order_class%%:before',
[412] Fix | Delete
'border-radius' => '%%order_class%%:before',
[413] Fix | Delete
'height' => '%%order_class%% .et-fb-quick-access-item-testimonial-icon',
[414] Fix | Delete
'width' => '%%order_class%% .et-fb-quick-access-item-testimonial-icon',
[415] Fix | Delete
'top' => '%%order_class%%:before, %%order_class%% .et-fb-quick-access-item-testimonial-icon',
[416] Fix | Delete
'margin-left' => '%%order_class%%:before, %%order_class%% .et-fb-quick-access-item-testimonial-icon',
[417] Fix | Delete
);
[418] Fix | Delete
[419] Fix | Delete
return $fields;
[420] Fix | Delete
}
[421] Fix | Delete
[422] Fix | Delete
public function get_transition_image_fields_css_props() {
[423] Fix | Delete
$fields = parent::get_transition_image_fields_css_props();
[424] Fix | Delete
$fields = array_merge( $this->get_transition_borders_fields_css_props( 'portrait' ), $fields );
[425] Fix | Delete
[426] Fix | Delete
return $fields;
[427] Fix | Delete
}
[428] Fix | Delete
[429] Fix | Delete
function render( $attrs, $content = null, $render_slug ) {
[430] Fix | Delete
$multi_view = et_pb_multi_view_options( $this );
[431] Fix | Delete
// Allowing full html for backwards compatibility.
[432] Fix | Delete
$author = $this->_esc_attr( 'author', 'full' );
[433] Fix | Delete
$job_title = $this->_esc_attr( 'job_title' );
[434] Fix | Delete
$portrait_url = $this->props['portrait_url'];
[435] Fix | Delete
// Allowing full html for backwards compatibility.
[436] Fix | Delete
$company_name = $this->_esc_attr( 'company_name', 'full' );
[437] Fix | Delete
$url = $this->props['url'];
[438] Fix | Delete
$quote_icon = $this->props['quote_icon'];
[439] Fix | Delete
$url_new_window = $this->props['url_new_window'];
[440] Fix | Delete
$use_background_color = $this->props['use_background_color'];
[441] Fix | Delete
$background_color = $this->props['background_color'];
[442] Fix | Delete
$background_color_hover = $this->get_hover_value( 'background_color' );
[443] Fix | Delete
$use_icon_font_size = $this->props['use_icon_font_size'];
[444] Fix | Delete
$quote_icon_color_hover = $this->get_hover_value('quote_icon_color');
[445] Fix | Delete
$quote_icon_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'quote_icon_color' );
[446] Fix | Delete
$quote_icon_background_color_hover = $this->get_hover_value('quote_icon_background_color');
[447] Fix | Delete
$quote_icon_background_colors = et_pb_responsive_options()->get_property_values( $this->props, 'quote_icon_background_color' );
[448] Fix | Delete
$portrait_width_values = et_pb_responsive_options()->get_property_values( $this->props, 'portrait_width' );
[449] Fix | Delete
$portrait_height_values = et_pb_responsive_options()->get_property_values( $this->props, 'portrait_height' );
[450] Fix | Delete
$icon_font_size_hover = $this->get_hover_value( 'icon_font_size' );
[451] Fix | Delete
$icon_font_size_values = et_pb_responsive_options()->get_property_values( $this->props, 'icon_font_size' );
[452] Fix | Delete
[453] Fix | Delete
// Potrait Width.
[454] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $portrait_width_values, '%%order_class%% .et_pb_testimonial_portrait', 'width', $render_slug, ' !important;' );
[455] Fix | Delete
[456] Fix | Delete
// Potrait Height.
[457] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $portrait_height_values, '%%order_class%% .et_pb_testimonial_portrait', 'height', $render_slug, ' !important;' );
[458] Fix | Delete
[459] Fix | Delete
// Quote Icon Color.
[460] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $quote_icon_color_values, '%%order_class%%.et_pb_testimonial:before', 'color', $render_slug, '', 'color' );
[461] Fix | Delete
[462] Fix | Delete
if ( et_builder_is_hover_enabled( 'quote_icon_color', $this->props ) ) {
[463] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[464] Fix | Delete
'selector' => '%%order_class%%.et_pb_testimonial:hover:before',
[465] Fix | Delete
'declaration' => sprintf(
[466] Fix | Delete
'color: %1$s;',
[467] Fix | Delete
esc_html( $quote_icon_color_hover )
[468] Fix | Delete
),
[469] Fix | Delete
) );
[470] Fix | Delete
}
[471] Fix | Delete
[472] Fix | Delete
// Quote Icon Background Color.
[473] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $quote_icon_background_colors, '%%order_class%%.et_pb_testimonial:before', 'background-color', $render_slug, '', 'color' );
[474] Fix | Delete
[475] Fix | Delete
if ( et_builder_is_hover_enabled( 'quote_icon_background_color', $this->props ) ) {
[476] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[477] Fix | Delete
'selector' => '%%order_class%%.et_pb_testimonial:hover:before',
[478] Fix | Delete
'declaration' => sprintf(
[479] Fix | Delete
'background-color: %1$s;',
[480] Fix | Delete
esc_html( $quote_icon_background_color_hover )
[481] Fix | Delete
),
[482] Fix | Delete
) );
[483] Fix | Delete
}
[484] Fix | Delete
[485] Fix | Delete
// Icon Size.
[486] Fix | Delete
$icon_selector = '%%order_class%%:before';
[487] Fix | Delete
if ( 'off' !== $quote_icon && 'off' !== $use_icon_font_size ) {
[488] Fix | Delete
// Proccess for each devices.
[489] Fix | Delete
foreach ( $icon_font_size_values as $font_size_key => $font_size_value ) {
[490] Fix | Delete
if ( '' === $font_size_value ) {
[491] Fix | Delete
continue;
[492] Fix | Delete
}
[493] Fix | Delete
[494] Fix | Delete
$media_query = 'general';
[495] Fix | Delete
if ( 'tablet' === $font_size_key ) {
[496] Fix | Delete
$media_query = ET_Builder_Element::get_media_query( 'max_width_980' );
[497] Fix | Delete
} elseif ( 'phone' === $font_size_key ) {
[498] Fix | Delete
$media_query = ET_Builder_Element::get_media_query( 'max_width_767' );
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function