class ET_Builder_Module_Accordion_Item extends ET_Builder_Module {
$this->name = esc_html__( 'Accordion', 'et_builder' );
$this->plural = esc_html__( 'Accordions', 'et_builder' );
$this->slug = 'et_pb_accordion_item';
$this->vb_support = 'on';
$this->child_title_var = 'title';
$this->main_css_element = '%%order_class%%.et_pb_toggle';
$this->settings_modal_toggles = array(
'main_content' => et_builder_i18n( 'Text' ),
'icon' => esc_html__( 'Icon', 'et_builder' ),
'toggle_layout' => esc_html__( 'Toggle', 'et_builder' ),
'title' => et_builder_i18n( 'Text' ),
$this->advanced_fields = array(
'label' => et_builder_i18n( 'Title' ),
'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",
'important' => 'plugin_only',
'options_priority' => array(
'toggle_text_color' => 9,
'closed_toggle' => array(
'label' => esc_html__( 'Closed Toggle', 'et_builder' ),
'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",
'important' => 'plugin_only',
'hide_text_color' => true,
'letter_spacing' => array(
'label' => et_builder_i18n( 'Body' ),
'main' => "{$this->main_css_element} .et_pb_toggle_content",
'limited_main' => "{$this->main_css_element} .et_pb_toggle_content, {$this->main_css_element} .et_pb_toggle_content p",
'line_height' => "{$this->main_css_element} .et_pb_toggle_content p",
'block_elements' => array(
'tabbed_subtoggles' => true,
'bb_icons_support' => true,
// Accordion Item can use %%parent_class%% because its slug is parent_slug + `_item` suffix
'border_radii' => "%%parent_class%% .et_pb_module{$this->main_css_element}",
'border_styles' => "%%parent_class%% .et_pb_module{$this->main_css_element}",
'border_radii' => 'on||||',
'border_styles' => array(
'margin_padding' => array(
'draggable_margin' => false,
'draggable_padding' => false,
'module_alignment' => '%%order_class%%.et_pb_toggle',
'text_orientation' => '%%order_class%%',
'main' => '%%order_class%% .et_pb_toggle_content',
'position_fields' => array(
$this->custom_css_fields = array(
'label' => esc_html__( 'Toggle', 'et_builder' ),
'label' => esc_html__( 'Open Toggle', 'et_builder' ),
'selector' => '.et_pb_toggle_open',
'no_space_before_selector' => true,
'label' => esc_html__( 'Toggle Title', 'et_builder' ),
'selector' => '.et_pb_toggle_title',
'label' => esc_html__( 'Toggle Icon', 'et_builder' ),
'selector' => '.et_pb_toggle_title:before',
'toggle_content' => array(
'label' => esc_html__( 'Toggle Content', 'et_builder' ),
'selector' => '.et_pb_toggle_content',
$this->help_videos = array(
'name' => esc_html__( 'An introduction to the Accordion module', 'et_builder' ),
'label' => et_builder_i18n( 'Title' ),
'option_category' => 'basic_option',
'description' => esc_html__( 'The title will appear above the content and when the toggle is closed.', 'et_builder' ),
'toggle_slug' => 'main_content',
'dynamic_content' => 'text',
'mobile_options' => true,
'label' => et_builder_i18n( 'Body' ),
'option_category' => 'basic_option',
'description' => esc_html__( 'Here you can define the content that will be placed within the current tab.', 'et_builder' ),
'toggle_slug' => 'main_content',
'dynamic_content' => 'text',
'mobile_options' => true,
'open_toggle_text_color' => array(
'label' => esc_html__( 'Open Title Text Color', 'et_builder' ),
'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' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'toggle',
'mobile_options' => true,
'open_toggle_background_color' => array(
'label' => esc_html__( 'Open Toggle Background Color', 'et_builder' ),
'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' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'toggle_layout',
'mobile_options' => true,
'closed_toggle_text_color' => array(
'label' => esc_html__( 'Closed Title Text Color', 'et_builder' ),
'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' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'closed_toggle',
'mobile_options' => true,
'closed_toggle_background_color' => array(
'label' => esc_html__( 'Closed Toggle Background Color', 'et_builder' ),
'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' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'toggle_layout',
'mobile_options' => true,
'label' => esc_html__( 'Icon Color', 'et_builder' ),
'description' => esc_html__( 'Here you can define a custom color for the toggle icon.', 'et_builder' ),
'tab_slug' => 'advanced',
'mobile_options' => true,
'use_icon_font_size' => array(
'label' => esc_html__( 'Use Icon Font Size', 'et_builder' ),
'description' => esc_html__( 'If you would like to control the size of the icon, you must first enable this option.', 'et_builder' ),
'type' => 'yes_no_button',
'off' => et_builder_i18n( 'No' ),
'on' => et_builder_i18n( 'Yes' ),
'default_on_front' => 'off',
'depends_show_if' => 'on',
'tab_slug' => 'advanced',
'option_category' => 'font_option',
'icon_font_size' => array(
'label' => esc_html__( 'Icon Font Size', 'et_builder' ),
'description' => esc_html__( 'Control the size of the icon by increasing or decreasing the font size.', 'et_builder' ),
'option_category' => 'font_option',
'tab_slug' => 'advanced',
'default_on_front' => '',
'range_settings' => array(
'mobile_options' => true,
'depends_show_if' => 'on',
new ET_Builder_Module_Accordion_Item();