Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/includes/builder/module
File: Accordion.php
<?php
[0] Fix | Delete
[1] Fix | Delete
class ET_Builder_Module_Accordion extends ET_Builder_Module {
[2] Fix | Delete
[3] Fix | Delete
function init() {
[4] Fix | Delete
$this->name = esc_html__( 'Accordion', 'et_builder' );
[5] Fix | Delete
$this->plural = esc_html__( 'Accordions', 'et_builder' );
[6] Fix | Delete
$this->slug = 'et_pb_accordion';
[7] Fix | Delete
$this->vb_support = 'on';
[8] Fix | Delete
$this->child_slug = 'et_pb_accordion_item';
[9] Fix | Delete
[10] Fix | Delete
$this->main_css_element = '%%order_class%%.et_pb_accordion';
[11] Fix | Delete
[12] Fix | Delete
$this->settings_modal_toggles = array(
[13] Fix | Delete
'advanced' => array(
[14] Fix | Delete
'toggles' => array(
[15] Fix | Delete
'icon' => esc_html__( 'Icon', 'et_builder' ),
[16] Fix | Delete
'toggle_layout' => esc_html__( 'Toggle', 'et_builder' ),
[17] Fix | Delete
'text' => array(
[18] Fix | Delete
'title' => et_builder_i18n( 'Text' ),
[19] Fix | Delete
'priority' => 49,
[20] Fix | Delete
),
[21] Fix | Delete
),
[22] Fix | Delete
),
[23] Fix | Delete
);
[24] Fix | Delete
[25] Fix | Delete
$this->advanced_fields = array(
[26] Fix | Delete
'borders' => array(
[27] Fix | Delete
'default' => array(
[28] Fix | Delete
'css' => array(
[29] Fix | Delete
'main' => array(
[30] Fix | Delete
'border_radii' => "{$this->main_css_element} .et_pb_accordion_item",
[31] Fix | Delete
'border_styles' => "{$this->main_css_element} .et_pb_accordion_item",
[32] Fix | Delete
),
[33] Fix | Delete
),
[34] Fix | Delete
'defaults' => array(
[35] Fix | Delete
'border_radii' => 'on||||',
[36] Fix | Delete
'border_styles' => array(
[37] Fix | Delete
'width' => '1px',
[38] Fix | Delete
'color' => '#d9d9d9',
[39] Fix | Delete
'style' => 'solid',
[40] Fix | Delete
),
[41] Fix | Delete
),
[42] Fix | Delete
),
[43] Fix | Delete
),
[44] Fix | Delete
'box_shadow' => array(
[45] Fix | Delete
'default' => array(
[46] Fix | Delete
'css' => array(
[47] Fix | Delete
'main' => '%%order_class%% .et_pb_toggle',
[48] Fix | Delete
),
[49] Fix | Delete
),
[50] Fix | Delete
),
[51] Fix | Delete
'fonts' => array(
[52] Fix | Delete
'toggle' => array(
[53] Fix | Delete
'label' => et_builder_i18n( 'Title' ),
[54] Fix | Delete
'css' => array(
[55] Fix | Delete
'main' => "{$this->main_css_element} h5.et_pb_toggle_title, {$this->main_css_element} h1.et_pb_toggle_title, {$this->main_css_element} h2.et_pb_toggle_title, {$this->main_css_element} h3.et_pb_toggle_title, {$this->main_css_element} h4.et_pb_toggle_title, {$this->main_css_element} h6.et_pb_toggle_title",
[56] Fix | Delete
'important' => 'plugin_only',
[57] Fix | Delete
),
[58] Fix | Delete
'header_level' => array(
[59] Fix | Delete
'default' => 'h5',
[60] Fix | Delete
),
[61] Fix | Delete
'options_priority' => array(
[62] Fix | Delete
'toggle_text_color' => 9,
[63] Fix | Delete
),
[64] Fix | Delete
),
[65] Fix | Delete
'closed_toggle' => array(
[66] Fix | Delete
'label' => esc_html__( 'Closed Title', 'et_builder' ),
[67] Fix | Delete
'css' => array(
[68] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_toggle_close h5.et_pb_toggle_title, {$this->main_css_element} .et_pb_toggle_close h1.et_pb_toggle_title, {$this->main_css_element} .et_pb_toggle_close h2.et_pb_toggle_title, {$this->main_css_element} .et_pb_toggle_close h3.et_pb_toggle_title, {$this->main_css_element} .et_pb_toggle_close h4.et_pb_toggle_title, {$this->main_css_element} .et_pb_toggle_close h6.et_pb_toggle_title",
[69] Fix | Delete
'important' => 'plugin_only',
[70] Fix | Delete
),
[71] Fix | Delete
'hide_text_color' => true,
[72] Fix | Delete
'line_height' => array(
[73] Fix | Delete
'default' => '1.7em',
[74] Fix | Delete
),
[75] Fix | Delete
'font_size' => array(
[76] Fix | Delete
'default' => '16px',
[77] Fix | Delete
),
[78] Fix | Delete
'letter_spacing' => array(
[79] Fix | Delete
'default' => '0px',
[80] Fix | Delete
),
[81] Fix | Delete
),
[82] Fix | Delete
'body' => array(
[83] Fix | Delete
'label' => et_builder_i18n( 'Body' ),
[84] Fix | Delete
'css' => array(
[85] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_toggle_content",
[86] Fix | Delete
'limited_main' => "{$this->main_css_element} .et_pb_toggle_content, {$this->main_css_element} .et_pb_toggle_content p",
[87] Fix | Delete
'line_height' => "{$this->main_css_element} .et_pb_toggle_content p",
[88] Fix | Delete
),
[89] Fix | Delete
'block_elements' => array(
[90] Fix | Delete
'tabbed_subtoggles' => true,
[91] Fix | Delete
'bb_icons_support' => true,
[92] Fix | Delete
),
[93] Fix | Delete
),
[94] Fix | Delete
),
[95] Fix | Delete
'margin_padding' => array(
[96] Fix | Delete
'draggable_padding' => false,
[97] Fix | Delete
'css' => array(
[98] Fix | Delete
'padding' => "{$this->main_css_element} .et_pb_toggle_content",
[99] Fix | Delete
'margin' => $this->main_css_element,
[100] Fix | Delete
'important' => array( 'custom_margin' ),
[101] Fix | Delete
),
[102] Fix | Delete
),
[103] Fix | Delete
'scroll_effects' => array(
[104] Fix | Delete
'grid_support' => 'yes',
[105] Fix | Delete
),
[106] Fix | Delete
'button' => false,
[107] Fix | Delete
);
[108] Fix | Delete
[109] Fix | Delete
$this->custom_css_fields = array(
[110] Fix | Delete
'toggle' => array(
[111] Fix | Delete
'label' => esc_html__( 'Toggle', 'et_builder' ),
[112] Fix | Delete
'selector' => '.et_pb_toggle',
[113] Fix | Delete
),
[114] Fix | Delete
'open_toggle' => array(
[115] Fix | Delete
'label' => esc_html__( 'Open Toggle', 'et_builder' ),
[116] Fix | Delete
'selector' => '.et_pb_toggle_open',
[117] Fix | Delete
),
[118] Fix | Delete
'toggle_title' => array(
[119] Fix | Delete
'label' => esc_html__( 'Toggle Title', 'et_builder' ),
[120] Fix | Delete
'selector' => '.et_pb_toggle_title',
[121] Fix | Delete
),
[122] Fix | Delete
'toggle_icon' => array(
[123] Fix | Delete
'label' => esc_html__( 'Toggle Icon', 'et_builder' ),
[124] Fix | Delete
'selector' => '.et_pb_toggle_title:before',
[125] Fix | Delete
),
[126] Fix | Delete
'toggle_content' => array(
[127] Fix | Delete
'label' => esc_html__( 'Toggle Content', 'et_builder' ),
[128] Fix | Delete
'selector' => '.et_pb_toggle_content',
[129] Fix | Delete
),
[130] Fix | Delete
);
[131] Fix | Delete
[132] Fix | Delete
$this->help_videos = array(
[133] Fix | Delete
array(
[134] Fix | Delete
'id' => 'OBbuKXTJyj8',
[135] Fix | Delete
'name' => esc_html__( 'An introduction to the Accordion module', 'et_builder' ),
[136] Fix | Delete
),
[137] Fix | Delete
);
[138] Fix | Delete
}
[139] Fix | Delete
[140] Fix | Delete
function get_fields() {
[141] Fix | Delete
$fields = array(
[142] Fix | Delete
'open_toggle_text_color' => array(
[143] Fix | Delete
'label' => esc_html__( 'Open Title Text Color', 'et_builder' ),
[144] Fix | Delete
'description' => esc_html__( 'You can pick unique text colors for toggle titles when they are open and closed. Choose the open state title color here.', 'et_builder' ),
[145] Fix | Delete
'type' => 'color-alpha',
[146] Fix | Delete
'custom_color' => true,
[147] Fix | Delete
'tab_slug' => 'advanced',
[148] Fix | Delete
'toggle_slug' => 'toggle',
[149] Fix | Delete
'hover' => 'tabs',
[150] Fix | Delete
'mobile_options' => true,
[151] Fix | Delete
'sticky' => true,
[152] Fix | Delete
),
[153] Fix | Delete
'open_toggle_background_color' => array(
[154] Fix | Delete
'label' => esc_html__( 'Open Toggle Background Color', 'et_builder' ),
[155] Fix | Delete
'description' => esc_html__( 'You can pick unique background colors for toggles when they are in their open and closed states. Choose the open state background color here.', 'et_builder' ),
[156] Fix | Delete
'type' => 'color-alpha',
[157] Fix | Delete
'custom_color' => true,
[158] Fix | Delete
'tab_slug' => 'advanced',
[159] Fix | Delete
'toggle_slug' => 'toggle_layout',
[160] Fix | Delete
'hover' => 'tabs',
[161] Fix | Delete
'mobile_options' => true,
[162] Fix | Delete
'sticky' => true,
[163] Fix | Delete
),
[164] Fix | Delete
'closed_toggle_text_color' => array(
[165] Fix | Delete
'label' => esc_html__( 'Closed Title Text Color', 'et_builder' ),
[166] Fix | Delete
'description' => esc_html__( 'You can pick unique text colors for toggle titles when they are open and closed. Choose the closed state title color here.', 'et_builder' ),
[167] Fix | Delete
'type' => 'color-alpha',
[168] Fix | Delete
'custom_color' => true,
[169] Fix | Delete
'tab_slug' => 'advanced',
[170] Fix | Delete
'toggle_slug' => 'closed_toggle',
[171] Fix | Delete
'hover' => 'tabs',
[172] Fix | Delete
'mobile_options' => true,
[173] Fix | Delete
'sticky' => true,
[174] Fix | Delete
),
[175] Fix | Delete
'closed_toggle_background_color' => array(
[176] Fix | Delete
'label' => esc_html__( 'Closed Toggle Background Color', 'et_builder' ),
[177] Fix | Delete
'description' => esc_html__( 'You can pick unique background colors for toggles when they are in their open and closed states. Choose the closed state background color here.', 'et_builder' ),
[178] Fix | Delete
'type' => 'color-alpha',
[179] Fix | Delete
'custom_color' => true,
[180] Fix | Delete
'tab_slug' => 'advanced',
[181] Fix | Delete
'toggle_slug' => 'toggle_layout',
[182] Fix | Delete
'hover' => 'tabs',
[183] Fix | Delete
'mobile_options' => true,
[184] Fix | Delete
'sticky' => true,
[185] Fix | Delete
),
[186] Fix | Delete
'icon_color' => array(
[187] Fix | Delete
'label' => esc_html__( 'Icon Color', 'et_builder' ),
[188] Fix | Delete
'description' => esc_html__( 'Here you can define a custom color for the toggle icon.', 'et_builder' ),
[189] Fix | Delete
'type' => 'color-alpha',
[190] Fix | Delete
'custom_color' => true,
[191] Fix | Delete
'tab_slug' => 'advanced',
[192] Fix | Delete
'toggle_slug' => 'icon',
[193] Fix | Delete
'hover' => 'tabs',
[194] Fix | Delete
'mobile_options' => true,
[195] Fix | Delete
'sticky' => true,
[196] Fix | Delete
),
[197] Fix | Delete
'use_icon_font_size' => array(
[198] Fix | Delete
'label' => esc_html__( 'Use Icon Font Size', 'et_builder' ),
[199] Fix | Delete
'description' => esc_html__( 'If you would like to control the size of the icon, you must first enable this option.', 'et_builder' ),
[200] Fix | Delete
'type' => 'yes_no_button',
[201] Fix | Delete
'options' => array(
[202] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[203] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[204] Fix | Delete
),
[205] Fix | Delete
'default_on_front' => 'off',
[206] Fix | Delete
'affects' => array(
[207] Fix | Delete
'icon_font_size',
[208] Fix | Delete
),
[209] Fix | Delete
'depends_show_if' => 'on',
[210] Fix | Delete
'tab_slug' => 'advanced',
[211] Fix | Delete
'toggle_slug' => 'icon',
[212] Fix | Delete
'option_category' => 'font_option',
[213] Fix | Delete
),
[214] Fix | Delete
'icon_font_size' => array(
[215] Fix | Delete
'label' => esc_html__( 'Icon Font Size', 'et_builder' ),
[216] Fix | Delete
'description' => esc_html__( 'Control the size of the icon by increasing or decreasing the font size.', 'et_builder' ),
[217] Fix | Delete
'type' => 'range',
[218] Fix | Delete
'option_category' => 'font_option',
[219] Fix | Delete
'tab_slug' => 'advanced',
[220] Fix | Delete
'toggle_slug' => 'icon',
[221] Fix | Delete
'default' => '16px',
[222] Fix | Delete
'default_unit' => 'px',
[223] Fix | Delete
'default_on_front' => '',
[224] Fix | Delete
'range_settings' => array(
[225] Fix | Delete
'min' => '1',
[226] Fix | Delete
'max' => '120',
[227] Fix | Delete
'step' => '1',
[228] Fix | Delete
),
[229] Fix | Delete
'mobile_options' => true,
[230] Fix | Delete
'sticky' => true,
[231] Fix | Delete
'depends_show_if' => 'on',
[232] Fix | Delete
'hover' => 'tabs',
[233] Fix | Delete
),
[234] Fix | Delete
);
[235] Fix | Delete
return $fields;
[236] Fix | Delete
}
[237] Fix | Delete
[238] Fix | Delete
public function get_transition_fields_css_props() {
[239] Fix | Delete
$fields = parent::get_transition_fields_css_props();
[240] Fix | Delete
$title = '%%order_class%% .et_pb_toggle .et_pb_toggle_title';
[241] Fix | Delete
[242] Fix | Delete
$fields['icon_color'] = array( 'color' => '%%order_class%% .et_pb_toggle .et_pb_toggle_title:before' );
[243] Fix | Delete
$fields['icon_font_size'] = array(
[244] Fix | Delete
'font-size' => '%%order_class%% .et_pb_toggle .et_pb_toggle_title:before',
[245] Fix | Delete
'margin-top' => '%%order_class%% .et_pb_toggle .et_pb_toggle_title:before',
[246] Fix | Delete
'right' => '%%order_class%% .et_pb_toggle .et_pb_toggle_title:before',
[247] Fix | Delete
);
[248] Fix | Delete
[249] Fix | Delete
$fields['toggle_text_color'] = array( 'color' => $title );
[250] Fix | Delete
$fields['toggle_font_size'] = array( 'font-size' => $title );
[251] Fix | Delete
$fields['toggle_letter_spacing'] = array( 'letter-spacing' => $title );
[252] Fix | Delete
$fields['toggle_line_height'] = array( 'line-height' => $title );
[253] Fix | Delete
$fields['toggle_text_shadow_style'] = array( 'text-shadow' => $title );
[254] Fix | Delete
[255] Fix | Delete
$fields['closed_toggle_text_color'] = array( 'color' => '%%order_class%%.et_pb_accordion .et_pb_toggle_close .et_pb_toggle_title' );
[256] Fix | Delete
$fields['closed_toggle_background_color'] = array( 'background-color' => '%%order_class%% .et_pb_toggle_close' );
[257] Fix | Delete
[258] Fix | Delete
$fields['open_toggle_text_color'] = array( 'color' => '%%order_class%%.et_pb_accordion .et_pb_toggle_open .et_pb_toggle_title' );
[259] Fix | Delete
$fields['open_toggle_background_color'] = array( 'background-color' => '%%order_class%% .et_pb_toggle_open' );
[260] Fix | Delete
[261] Fix | Delete
return $fields;
[262] Fix | Delete
}
[263] Fix | Delete
[264] Fix | Delete
function before_render() {
[265] Fix | Delete
global $et_pb_accordion_item_number, $et_pb_accordion_header_level;
[266] Fix | Delete
[267] Fix | Delete
$et_pb_accordion_item_number = 1;
[268] Fix | Delete
$et_pb_accordion_header_level = $this->props['toggle_level'];
[269] Fix | Delete
}
[270] Fix | Delete
[271] Fix | Delete
/**
[272] Fix | Delete
* Renders the module output.
[273] Fix | Delete
*
[274] Fix | Delete
* @param array $attrs List of attributes.
[275] Fix | Delete
* @param string $content Content being processed.
[276] Fix | Delete
* @param string $render_slug Slug of module that is used for rendering output.
[277] Fix | Delete
*
[278] Fix | Delete
* @return string
[279] Fix | Delete
*/
[280] Fix | Delete
public function render( $attrs, $content, $render_slug ) {
[281] Fix | Delete
global $et_pb_accordion_item_number;
[282] Fix | Delete
[283] Fix | Delete
$video_background = $this->video_background();
[284] Fix | Delete
$parallax_image_background = $this->get_parallax_image_background();
[285] Fix | Delete
[286] Fix | Delete
// Open Toggle Background Color.
[287] Fix | Delete
$this->generate_styles(
[288] Fix | Delete
array(
[289] Fix | Delete
'type' => 'color',
[290] Fix | Delete
'render_slug' => $render_slug,
[291] Fix | Delete
'base_attr_name' => 'open_toggle_background_color',
[292] Fix | Delete
'css_property' => 'background-color',
[293] Fix | Delete
'selector' => '%%order_class%% .et_pb_toggle_open',
[294] Fix | Delete
)
[295] Fix | Delete
);
[296] Fix | Delete
[297] Fix | Delete
// Closed Toggle Background Color.
[298] Fix | Delete
$this->generate_styles(
[299] Fix | Delete
array(
[300] Fix | Delete
'type' => 'color',
[301] Fix | Delete
'render_slug' => $render_slug,
[302] Fix | Delete
'base_attr_name' => 'closed_toggle_background_color',
[303] Fix | Delete
'css_property' => 'background-color',
[304] Fix | Delete
'selector' => '%%order_class%% .et_pb_toggle_close',
[305] Fix | Delete
)
[306] Fix | Delete
);
[307] Fix | Delete
[308] Fix | Delete
// Open Toggle Text Color.
[309] Fix | Delete
$this->generate_styles(
[310] Fix | Delete
array(
[311] Fix | Delete
'type' => 'color',
[312] Fix | Delete
'render_slug' => $render_slug,
[313] Fix | Delete
'base_attr_name' => 'open_toggle_text_color',
[314] Fix | Delete
'css_property' => 'color',
[315] Fix | Delete
'important' => true,
[316] Fix | Delete
'selector' => '%%order_class%%.et_pb_accordion .et_pb_toggle_open h5.et_pb_toggle_title, %%order_class%%.et_pb_accordion .et_pb_toggle_open h1.et_pb_toggle_title, %%order_class%%.et_pb_accordion .et_pb_toggle_open h2.et_pb_toggle_title, %%order_class%%.et_pb_accordion .et_pb_toggle_open h3.et_pb_toggle_title, %%order_class%%.et_pb_accordion .et_pb_toggle_open h4.et_pb_toggle_title, %%order_class%%.et_pb_accordion .et_pb_toggle_open h6.et_pb_toggle_title',
[317] Fix | Delete
'hover_selector' => '%%order_class%%:hover .et_pb_toggle_open h5.et_pb_toggle_title, %%order_class%%:hover .et_pb_toggle_open h1.et_pb_toggle_title, %%order_class%%:hover .et_pb_toggle_open h2.et_pb_toggle_title, %%order_class%%:hover .et_pb_toggle_open h3.et_pb_toggle_title, %%order_class%%:hover .et_pb_toggle_open h4.et_pb_toggle_title, %%order_class%%:hover .et_pb_toggle_open h6.et_pb_toggle_title',
[318] Fix | Delete
)
[319] Fix | Delete
);
[320] Fix | Delete
[321] Fix | Delete
// Closed Toggle Text Color.
[322] Fix | Delete
$this->generate_styles(
[323] Fix | Delete
array(
[324] Fix | Delete
'type' => 'color',
[325] Fix | Delete
'render_slug' => $render_slug,
[326] Fix | Delete
'base_attr_name' => 'closed_toggle_text_color',
[327] Fix | Delete
'css_property' => 'color',
[328] Fix | Delete
'important' => true,
[329] Fix | Delete
'selector' => '%%order_class%%.et_pb_accordion .et_pb_toggle_close h5.et_pb_toggle_title, %%order_class%%.et_pb_accordion .et_pb_toggle_close h1.et_pb_toggle_title, %%order_class%%.et_pb_accordion .et_pb_toggle_close h2.et_pb_toggle_title, %%order_class%%.et_pb_accordion .et_pb_toggle_close h3.et_pb_toggle_title, %%order_class%%.et_pb_accordion .et_pb_toggle_close h4.et_pb_toggle_title, %%order_class%%.et_pb_accordion .et_pb_toggle_close h6.et_pb_toggle_title',
[330] Fix | Delete
'hover_selector' => '%%order_class%%:hover .et_pb_toggle_close h5.et_pb_toggle_title, %%order_class%%:hover .et_pb_toggle_close h1.et_pb_toggle_title, %%order_class%%:hover .et_pb_toggle_close h2.et_pb_toggle_title, %%order_class%%:hover .et_pb_toggle_close h3.et_pb_toggle_title, %%order_class%%:hover .et_pb_toggle_close h4.et_pb_toggle_title, %%order_class%%:hover .et_pb_toggle_close h6.et_pb_toggle_title',
[331] Fix | Delete
)
[332] Fix | Delete
);
[333] Fix | Delete
[334] Fix | Delete
// Icon Size.
[335] Fix | Delete
$use_icon_font_size = $this->props['use_icon_font_size'];
[336] Fix | Delete
$icon_font_size_values = et_pb_responsive_options()->get_property_values( $this->props, 'icon_font_size' );
[337] Fix | Delete
$icon_font_size_any_values = et_pb_responsive_options()->get_property_values( $this->props, 'icon_font_size', '16px', true ); // 16px is default toggle icon size.
[338] Fix | Delete
[339] Fix | Delete
if ( 'off' !== $use_icon_font_size ) {
[340] Fix | Delete
// Calculate icon font size and its right position.
[341] Fix | Delete
$this->generate_styles(
[342] Fix | Delete
array(
[343] Fix | Delete
'base_attr_name' => 'icon_font_size',
[344] Fix | Delete
'selector' => '%%order_class%% .et_pb_toggle_title:before',
[345] Fix | Delete
'hover_pseudo_selector_location' => 'suffix',
[346] Fix | Delete
'sticky_pseudo_selector_location' => 'prefix',
[347] Fix | Delete
'render_slug' => $render_slug,
[348] Fix | Delete
'type' => 'range',
[349] Fix | Delete
'css_property' => 'font-size',
[350] Fix | Delete
[351] Fix | Delete
// processed attr value can't be directly assigned to single css property so
[352] Fix | Delete
// custom processor is needed to render this attr.
[353] Fix | Delete
'processor' => array(
[354] Fix | Delete
'ET_Builder_Module_Helper_Style_Processor',
[355] Fix | Delete
'process_toggle_title_icon_font_size',
[356] Fix | Delete
),
[357] Fix | Delete
)
[358] Fix | Delete
);
[359] Fix | Delete
}
[360] Fix | Delete
[361] Fix | Delete
// Icon Color.
[362] Fix | Delete
$this->generate_styles(
[363] Fix | Delete
array(
[364] Fix | Delete
'type' => 'color',
[365] Fix | Delete
'render_slug' => $render_slug,
[366] Fix | Delete
'base_attr_name' => 'icon_color',
[367] Fix | Delete
'css_property' => 'color',
[368] Fix | Delete
'selector' => '%%order_class%% .et_pb_toggle_title:before',
[369] Fix | Delete
'hover_pseudo_selector_location' => 'suffix',
[370] Fix | Delete
'sticky_pseudo_selector_location' => 'prefix',
[371] Fix | Delete
'priority' => ET_Builder_Element::DEFAULT_PRIORITY,
[372] Fix | Delete
)
[373] Fix | Delete
);
[374] Fix | Delete
[375] Fix | Delete
// Module classnames.
[376] Fix | Delete
$this->add_classname( $this->get_text_orientation_classname() );
[377] Fix | Delete
[378] Fix | Delete
$output = sprintf(
[379] Fix | Delete
'<div%3$s class="%2$s">
[380] Fix | Delete
%5$s
[381] Fix | Delete
%4$s
[382] Fix | Delete
%1$s
[383] Fix | Delete
</div> <!-- .et_pb_accordion -->',
[384] Fix | Delete
$this->content,
[385] Fix | Delete
$this->module_classname( $render_slug ),
[386] Fix | Delete
$this->module_id(),
[387] Fix | Delete
$video_background,
[388] Fix | Delete
$parallax_image_background
[389] Fix | Delete
);
[390] Fix | Delete
[391] Fix | Delete
return $output;
[392] Fix | Delete
}
[393] Fix | Delete
[394] Fix | Delete
public function add_new_child_text() {
[395] Fix | Delete
return esc_html__( 'Add New Accordion Item', 'et_builder' );
[396] Fix | Delete
}
[397] Fix | Delete
}
[398] Fix | Delete
[399] Fix | Delete
new ET_Builder_Module_Accordion();
[400] Fix | Delete
[401] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function