Edit File by line
/home/barbar84/www/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(
[172] Fix | Delete
', ',
[173] Fix | Delete
array(
[174] Fix | Delete
'%%order_class%% .et_pb_testimonial_description p',
[175] Fix | Delete
'%%order_class%% .et_pb_testimonial_description a',
[176] Fix | Delete
'%%order_class%% .et_pb_testimonial_description .et_pb_testimonial_author',
[177] Fix | Delete
)
[178] Fix | Delete
),
[179] Fix | Delete
),
[180] Fix | Delete
),
[181] Fix | Delete
'filters' => array(
[182] Fix | Delete
'child_filters_target' => array(
[183] Fix | Delete
'tab_slug' => 'advanced',
[184] Fix | Delete
'toggle_slug' => 'image',
[185] Fix | Delete
),
[186] Fix | Delete
),
[187] Fix | Delete
'image' => array(
[188] Fix | Delete
'css' => array(
[189] Fix | Delete
'main' => '%%order_class%% .et_pb_testimonial_portrait',
[190] Fix | Delete
),
[191] Fix | Delete
),
[192] Fix | Delete
'position_fields' => array(
[193] Fix | Delete
'default' => 'relative',
[194] Fix | Delete
),
[195] Fix | Delete
);
[196] Fix | Delete
[197] Fix | Delete
$this->custom_css_fields = array(
[198] Fix | Delete
'testimonial_portrait' => array(
[199] Fix | Delete
'label' => esc_html__( 'Testimonial Portrait', 'et_builder' ),
[200] Fix | Delete
'selector' => '.et_pb_testimonial_portrait',
[201] Fix | Delete
),
[202] Fix | Delete
'testimonial_description' => array(
[203] Fix | Delete
'label' => esc_html__( 'Testimonial Description', 'et_builder' ),
[204] Fix | Delete
'selector' => '.et_pb_testimonial_description',
[205] Fix | Delete
),
[206] Fix | Delete
'testimonial_author' => array(
[207] Fix | Delete
'label' => esc_html__( 'Testimonial Author', 'et_builder' ),
[208] Fix | Delete
'selector' => '.et_pb_testimonial_author',
[209] Fix | Delete
),
[210] Fix | Delete
'testimonial_meta' => array(
[211] Fix | Delete
'label' => esc_html__( 'Testimonial Meta', 'et_builder' ),
[212] Fix | Delete
'selector' => '.et_pb_testimonial_meta',
[213] Fix | Delete
),
[214] Fix | Delete
);
[215] Fix | Delete
[216] Fix | Delete
$this->help_videos = array(
[217] Fix | Delete
array(
[218] Fix | Delete
'id' => 'FkQuawiGWUw',
[219] Fix | Delete
'name' => esc_html__( 'An introduction to the Testimonial module', 'et_builder' ),
[220] Fix | Delete
),
[221] Fix | Delete
);
[222] Fix | Delete
}
[223] Fix | Delete
[224] Fix | Delete
function get_fields() {
[225] Fix | Delete
$fields = array(
[226] Fix | Delete
'author' => array(
[227] Fix | Delete
'label' => esc_html__( 'Author', 'et_builder' ),
[228] Fix | Delete
'type' => 'text',
[229] Fix | Delete
'option_category' => 'basic_option',
[230] Fix | Delete
'description' => esc_html__( 'Input the name of the testimonial author.', 'et_builder' ),
[231] Fix | Delete
'toggle_slug' => 'main_content',
[232] Fix | Delete
'dynamic_content' => 'text',
[233] Fix | Delete
'mobile_options' => true,
[234] Fix | Delete
'hover' => 'tabs',
[235] Fix | Delete
),
[236] Fix | Delete
'job_title' => array(
[237] Fix | Delete
'label' => esc_html__( 'Job Title', 'et_builder' ),
[238] Fix | Delete
'type' => 'text',
[239] Fix | Delete
'option_category' => 'basic_option',
[240] Fix | Delete
'description' => esc_html__( 'Input the job title.', 'et_builder' ),
[241] Fix | Delete
'toggle_slug' => 'main_content',
[242] Fix | Delete
'dynamic_content' => 'text',
[243] Fix | Delete
'mobile_options' => true,
[244] Fix | Delete
'hover' => 'tabs',
[245] Fix | Delete
),
[246] Fix | Delete
'company_name' => array(
[247] Fix | Delete
'label' => esc_html__( 'Company', 'et_builder' ),
[248] Fix | Delete
'type' => 'text',
[249] Fix | Delete
'option_category' => 'basic_option',
[250] Fix | Delete
'description' => esc_html__( 'Input the name of the company.', 'et_builder' ),
[251] Fix | Delete
'toggle_slug' => 'main_content',
[252] Fix | Delete
'dynamic_content' => 'text',
[253] Fix | Delete
'mobile_options' => true,
[254] Fix | Delete
'hover' => 'tabs',
[255] Fix | Delete
),
[256] Fix | Delete
'url' => array(
[257] Fix | Delete
'label' => esc_html__( 'Company Link URL', 'et_builder' ),
[258] Fix | Delete
'type' => 'text',
[259] Fix | Delete
'option_category' => 'basic_option',
[260] Fix | Delete
'description' => esc_html__( 'Input the website of the author or leave blank for no link.', 'et_builder' ),
[261] Fix | Delete
'toggle_slug' => 'link_options',
[262] Fix | Delete
'dynamic_content' => 'url',
[263] Fix | Delete
),
[264] Fix | Delete
'url_new_window' => array(
[265] Fix | Delete
'label' => esc_html__( 'Company Link Target', 'et_builder' ),
[266] Fix | Delete
'type' => 'select',
[267] Fix | Delete
'option_category' => 'configuration',
[268] Fix | Delete
'options' => array(
[269] Fix | Delete
'off' => esc_html__( 'In The Same Window', 'et_builder' ),
[270] Fix | Delete
'on' => esc_html__( 'In The New Tab', 'et_builder' ),
[271] Fix | Delete
),
[272] Fix | Delete
'toggle_slug' => 'link_options',
[273] Fix | Delete
'description' => esc_html__( 'Choose whether or not the URL should open in a new window.', 'et_builder' ),
[274] Fix | Delete
'default_on_front' => 'off',
[275] Fix | Delete
),
[276] Fix | Delete
'portrait_url' => array(
[277] Fix | Delete
'label' => et_builder_i18n( 'Image' ),
[278] Fix | Delete
'type' => 'upload',
[279] Fix | Delete
'option_category' => 'basic_option',
[280] Fix | Delete
'upload_button_text' => et_builder_i18n( 'Upload an image' ),
[281] Fix | Delete
'choose_text' => esc_attr__( 'Choose an Image', 'et_builder' ),
[282] Fix | Delete
'update_text' => esc_attr__( 'Set As Image', 'et_builder' ),
[283] Fix | Delete
'description' => esc_html__( 'Upload your desired image, or type in the URL to the image you would like to display.', 'et_builder' ),
[284] Fix | Delete
'toggle_slug' => 'image',
[285] Fix | Delete
'dynamic_content' => 'image',
[286] Fix | Delete
'mobile_options' => true,
[287] Fix | Delete
'hover' => 'tabs',
[288] Fix | Delete
),
[289] Fix | Delete
'quote_icon' => array(
[290] Fix | Delete
'label' => esc_html__( 'Show Quote Icon', 'et_builder' ),
[291] Fix | Delete
'type' => 'yes_no_button',
[292] Fix | Delete
'option_category' => 'configuration',
[293] Fix | Delete
'options' => array(
[294] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[295] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[296] Fix | Delete
),
[297] Fix | Delete
'default_on_front' => 'on',
[298] Fix | Delete
'description' => esc_html__( 'Choose whether or not the quote icon should be visible.', 'et_builder' ),
[299] Fix | Delete
'toggle_slug' => 'elements',
[300] Fix | Delete
'mobile_options' => true,
[301] Fix | Delete
'hover' => 'tabs',
[302] Fix | Delete
),
[303] Fix | Delete
'content' => array(
[304] Fix | Delete
'label' => et_builder_i18n( 'Body' ),
[305] Fix | Delete
'type' => 'tiny_mce',
[306] Fix | Delete
'option_category' => 'basic_option',
[307] Fix | Delete
'description' => esc_html__( 'Input the main text content for your module here.', 'et_builder' ),
[308] Fix | Delete
'toggle_slug' => 'main_content',
[309] Fix | Delete
'dynamic_content' => 'text',
[310] Fix | Delete
'mobile_options' => true,
[311] Fix | Delete
'hover' => 'tabs',
[312] Fix | Delete
),
[313] Fix | Delete
'quote_icon_color' => array(
[314] Fix | Delete
'label' => esc_html__( 'Quote Icon Color', 'et_builder' ),
[315] Fix | Delete
'description' => esc_html__( 'Here you can define a custom color for the quote icon.', 'et_builder' ),
[316] Fix | Delete
'type' => 'color-alpha',
[317] Fix | Delete
'custom_color' => true,
[318] Fix | Delete
'tab_slug' => 'advanced',
[319] Fix | Delete
'toggle_slug' => 'icon',
[320] Fix | Delete
'hover' => 'tabs',
[321] Fix | Delete
'mobile_options' => true,
[322] Fix | Delete
'sticky' => true,
[323] Fix | Delete
),
[324] Fix | Delete
'quote_icon_background_color' => array(
[325] Fix | Delete
'label' => esc_html__( 'Quote Icon Background Color', 'et_builder' ),
[326] Fix | Delete
'description' => esc_html__( 'Pick a color to use for the circular background area behind the quote icon.', 'et_builder' ),
[327] Fix | Delete
'type' => 'color-alpha',
[328] Fix | Delete
'custom_color' => true,
[329] Fix | Delete
'tab_slug' => 'advanced',
[330] Fix | Delete
'toggle_slug' => 'icon',
[331] Fix | Delete
'default' => '#f5f5f5',
[332] Fix | Delete
'default_on_front' => '',
[333] Fix | Delete
'hover' => 'tabs',
[334] Fix | Delete
'mobile_options' => true,
[335] Fix | Delete
'sticky' => true,
[336] Fix | Delete
),
[337] Fix | Delete
'portrait_width' => array(
[338] Fix | Delete
'label' => esc_html__( 'Image Width', 'et_builder' ),
[339] Fix | Delete
'description' => esc_html__( "Adjust the width of the person's portrait photo within the testimonial.", 'et_builder' ),
[340] Fix | Delete
'type' => 'range',
[341] Fix | Delete
'option_category' => 'layout',
[342] Fix | Delete
'tab_slug' => 'advanced',
[343] Fix | Delete
'toggle_slug' => 'image',
[344] Fix | Delete
'default_unit' => 'px',
[345] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[346] Fix | Delete
'range_settings' => array(
[347] Fix | Delete
'min' => '1',
[348] Fix | Delete
'max' => '200',
[349] Fix | Delete
'step' => '1',
[350] Fix | Delete
),
[351] Fix | Delete
'mobile_options' => true,
[352] Fix | Delete
'sticky' => true,
[353] Fix | Delete
),
[354] Fix | Delete
'portrait_height' => array(
[355] Fix | Delete
'label' => esc_html__( 'Image Height', 'et_builder' ),
[356] Fix | Delete
'description' => esc_html__( "Adjust the height of the person's portrait photo within the testimonial.", 'et_builder' ),
[357] Fix | Delete
'type' => 'range',
[358] Fix | Delete
'option_category' => 'layout',
[359] Fix | Delete
'tab_slug' => 'advanced',
[360] Fix | Delete
'toggle_slug' => 'image',
[361] Fix | Delete
'allowed_units' => array( 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[362] Fix | Delete
'range_settings' => array(
[363] Fix | Delete
'min' => '1',
[364] Fix | Delete
'max' => '200',
[365] Fix | Delete
'step' => '1',
[366] Fix | Delete
),
[367] Fix | Delete
'mobile_options' => true,
[368] Fix | Delete
'sticky' => true,
[369] Fix | Delete
),
[370] Fix | Delete
'use_icon_font_size' => array(
[371] Fix | Delete
'label' => esc_html__( 'Use Custom Quote Icon Size', 'et_builder' ),
[372] Fix | Delete
'description' => esc_html__( 'If you would like to control the size of the icon, you must first enable this option.', 'et_builder' ),
[373] Fix | Delete
'type' => 'yes_no_button',
[374] Fix | Delete
'options' => array(
[375] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[376] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[377] Fix | Delete
),
[378] Fix | Delete
'default_on_front' => 'off',
[379] Fix | Delete
'affects' => array(
[380] Fix | Delete
'icon_font_size',
[381] Fix | Delete
),
[382] Fix | Delete
'tab_slug' => 'advanced',
[383] Fix | Delete
'toggle_slug' => 'icon',
[384] Fix | Delete
'option_category' => 'font_option',
[385] Fix | Delete
),
[386] Fix | Delete
'icon_font_size' => array(
[387] Fix | Delete
'label' => esc_html__( 'Quote Icon Font Size', 'et_builder' ),
[388] Fix | Delete
'description' => esc_html__( 'Control the size of the icon by increasing or decreasing the font size.', 'et_builder' ),
[389] Fix | Delete
'type' => 'range',
[390] Fix | Delete
'option_category' => 'font_option',
[391] Fix | Delete
'tab_slug' => 'advanced',
[392] Fix | Delete
'toggle_slug' => 'icon',
[393] Fix | Delete
'default' => '32px',
[394] Fix | Delete
'default_unit' => 'px',
[395] Fix | Delete
'default_on_front' => '',
[396] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[397] Fix | Delete
'range_settings' => array(
[398] Fix | Delete
'min' => '1',
[399] Fix | Delete
'max' => '120',
[400] Fix | Delete
'step' => '1',
[401] Fix | Delete
),
[402] Fix | Delete
'mobile_options' => true,
[403] Fix | Delete
'depends_show_if' => 'on',
[404] Fix | Delete
'responsive' => true,
[405] Fix | Delete
'sticky' => true,
[406] Fix | Delete
'hover' => 'tabs',
[407] Fix | Delete
),
[408] Fix | Delete
);
[409] Fix | Delete
[410] Fix | Delete
return $fields;
[411] Fix | Delete
}
[412] Fix | Delete
[413] Fix | Delete
public function get_transition_fields_css_props() {
[414] Fix | Delete
$fields = parent::get_transition_fields_css_props();
[415] Fix | Delete
[416] Fix | Delete
$fields['portrait_width'] = array( 'width' => '%%order_class%% .et_pb_testimonial_portrait' );
[417] Fix | Delete
$fields['portrait_height'] = array( 'height' => '%%order_class%% .et_pb_testimonial_portrait' );
[418] Fix | Delete
$fields['quote_icon_color'] = array( 'color' => '%%order_class%%.et_pb_testimonial:before' );
[419] Fix | Delete
$fields['quote_icon_background_color'] = array( 'background-color' => '%%order_class%%.et_pb_testimonial:before' );
[420] Fix | Delete
$fields['icon_font_size'] = array(
[421] Fix | Delete
'font-size' => '%%order_class%%:before',
[422] Fix | Delete
'border-radius' => '%%order_class%%:before',
[423] Fix | Delete
'height' => '%%order_class%% .et-fb-quick-access-item-testimonial-icon',
[424] Fix | Delete
'width' => '%%order_class%% .et-fb-quick-access-item-testimonial-icon',
[425] Fix | Delete
'top' => '%%order_class%%:before, %%order_class%% .et-fb-quick-access-item-testimonial-icon',
[426] Fix | Delete
'margin-left' => '%%order_class%%:before, %%order_class%% .et-fb-quick-access-item-testimonial-icon',
[427] Fix | Delete
);
[428] Fix | Delete
[429] Fix | Delete
return $fields;
[430] Fix | Delete
}
[431] Fix | Delete
[432] Fix | Delete
public function get_transition_image_fields_css_props() {
[433] Fix | Delete
$fields = parent::get_transition_image_fields_css_props();
[434] Fix | Delete
$fields = array_merge( $this->get_transition_borders_fields_css_props( 'portrait' ), $fields );
[435] Fix | Delete
[436] Fix | Delete
return $fields;
[437] Fix | Delete
}
[438] Fix | Delete
[439] Fix | Delete
/**
[440] Fix | Delete
* Renders the module output.
[441] Fix | Delete
*
[442] Fix | Delete
* @param array $attrs List of attributes.
[443] Fix | Delete
* @param string $content Content being processed.
[444] Fix | Delete
* @param string $render_slug Slug of module that is used for rendering output.
[445] Fix | Delete
*
[446] Fix | Delete
* @return string
[447] Fix | Delete
*/
[448] Fix | Delete
public function render( $attrs, $content, $render_slug ) {
[449] Fix | Delete
$multi_view = et_pb_multi_view_options( $this );
[450] Fix | Delete
// Allowing full html for backwards compatibility.
[451] Fix | Delete
$author = $this->_esc_attr( 'author', 'full' );
[452] Fix | Delete
$job_title = $this->_esc_attr( 'job_title' );
[453] Fix | Delete
$portrait_url = $this->props['portrait_url'];
[454] Fix | Delete
// Allowing full html for backwards compatibility.
[455] Fix | Delete
$company_name = $this->_esc_attr( 'company_name', 'full' );
[456] Fix | Delete
$url = $this->props['url'];
[457] Fix | Delete
$quote_icon = $this->props['quote_icon'];
[458] Fix | Delete
$url_new_window = $this->props['url_new_window'];
[459] Fix | Delete
$use_background_color = $this->props['use_background_color'];
[460] Fix | Delete
$background_color = $this->props['background_color'];
[461] Fix | Delete
$background_color_hover = $this->get_hover_value( 'background_color' );
[462] Fix | Delete
$use_icon_font_size = $this->props['use_icon_font_size'];
[463] Fix | Delete
$icon_font_size_values = et_pb_responsive_options()->get_property_values( $this->props, 'icon_font_size' );
[464] Fix | Delete
[465] Fix | Delete
// Potrait Width.
[466] Fix | Delete
$this->generate_styles(
[467] Fix | Delete
array(
[468] Fix | Delete
'hover' => false,
[469] Fix | Delete
'base_attr_name' => 'portrait_width',
[470] Fix | Delete
'selector' => '%%order_class%% .et_pb_testimonial_portrait',
[471] Fix | Delete
'sticky_pseudo_selector_location' => 'prefix',
[472] Fix | Delete
'css_property' => 'width',
[473] Fix | Delete
'important' => true,
[474] Fix | Delete
'render_slug' => $render_slug,
[475] Fix | Delete
'type' => 'range',
[476] Fix | Delete
)
[477] Fix | Delete
);
[478] Fix | Delete
[479] Fix | Delete
// Potrait Height.
[480] Fix | Delete
$this->generate_styles(
[481] Fix | Delete
array(
[482] Fix | Delete
'hover' => false,
[483] Fix | Delete
'base_attr_name' => 'portrait_height',
[484] Fix | Delete
'selector' => '%%order_class%% .et_pb_testimonial_portrait',
[485] Fix | Delete
'sticky_pseudo_selector_location' => 'prefix',
[486] Fix | Delete
'css_property' => 'height',
[487] Fix | Delete
'important' => true,
[488] Fix | Delete
'render_slug' => $render_slug,
[489] Fix | Delete
'type' => 'range',
[490] Fix | Delete
)
[491] Fix | Delete
);
[492] Fix | Delete
[493] Fix | Delete
// Quote Icon Color.
[494] Fix | Delete
$this->generate_styles(
[495] Fix | Delete
array(
[496] Fix | Delete
'base_attr_name' => 'quote_icon_color',
[497] Fix | Delete
'selector' => '%%order_class%%.et_pb_testimonial:before',
[498] Fix | Delete
'hover_pseudo_selector_location' => 'suffix',
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function