PATH:
home
/
letacommog
/
broderie
/
wp-content
/
themes
/
Divi
/
includes
/
builder
/
module
<?php class ET_Builder_Module_Accordion_Item extends ET_Builder_Module { function init() { $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->type = 'child'; $this->child_title_var = 'title'; $this->no_render = true; $this->main_css_element = '%%order_class%%.et_pb_toggle'; $this->settings_modal_toggles = array( 'general' => array( 'toggles' => array( 'main_content' => esc_html__( 'Text', 'et_builder' ), ), ), 'advanced' => array( 'toggles' => array( 'icon' => esc_html__( 'Icon', 'et_builder' ), 'text' => array( 'title' => esc_html__( 'Text', 'et_builder' ), 'priority' => 49, ), 'toggle' => esc_html__( 'Toggle', 'et_builder' ), ), ), ); $this->advanced_fields = array( 'borders' => array( 'default' => array( 'css' => array( 'main' => array( // 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}", ) ), 'defaults' => array( 'border_radii' => 'on||||', 'border_styles' => array( 'width' => '1px', 'color' => '#d9d9d9', 'style' => 'solid', ), ), ), ), 'box_shadow' => array( 'default' => array( 'css' => array( 'important' => true, ), ), ), 'margin_padding' => array( 'draggable_margin' => false, 'draggable_padding' => false, 'css' => array( 'important' => 'all', ), ), 'max_width' => array( 'use_module_alignment' => false, 'css' => array( 'module_alignment' => "%%order_class%%.et_pb_toggle", ), ), 'text' => array( 'css' => array( 'text_orientation' => '%%order_class%%', ), ), 'fonts' => false, 'button' => false, 'height' => array( 'css' => array( 'main' => '%%order_class%% .et_pb_toggle_content' ) ), ); $this->custom_css_fields = array( 'toggle' => array( 'label' => esc_html__( 'Toggle', 'et_builder' ), ), 'open_toggle' => array( 'label' => esc_html__( 'Open Toggle', 'et_builder' ), 'selector' => '.et_pb_toggle_open', 'no_space_before_selector' => true, ), 'toggle_title' => array( 'label' => esc_html__( 'Toggle Title', 'et_builder' ), 'selector' => '.et_pb_toggle_title', ), 'toggle_icon' => array( '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( array( 'id' => esc_html( 'OBbuKXTJyj8' ), 'name' => esc_html__( 'An introduction to the Accordion module', 'et_builder' ), ), ); } function get_fields() { $fields = array( 'title' => array( 'label' => esc_html__( 'Title', 'et_builder' ), 'type' => 'text', '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', ), 'content' => array( 'label' => esc_html__( 'Content', 'et_builder' ), 'type' => 'tiny_mce', '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', ), 'open_toggle_text_color' => array( 'label' => esc_html__( 'Open Toggle Text Color', 'et_builder' ), 'type' => 'color-alpha', 'custom_color' => true, 'tab_slug' => 'advanced', 'toggle_slug' => 'toggle', 'hover' => 'tabs', ), 'open_toggle_background_color' => array( 'label' => esc_html__( 'Open Toggle Background Color', 'et_builder' ), 'type' => 'color-alpha', 'custom_color' => true, 'tab_slug' => 'advanced', 'toggle_slug' => 'toggle', 'hover' => 'tabs', ), 'closed_toggle_text_color' => array( 'label' => esc_html__( 'Closed Toggle Text Color', 'et_builder' ), 'type' => 'color-alpha', 'custom_color' => true, 'tab_slug' => 'advanced', 'toggle_slug' => 'toggle', 'hover' => 'tabs', ), 'closed_toggle_background_color' => array( 'label' => esc_html__( 'Closed Toggle Background Color', 'et_builder' ), 'type' => 'color-alpha', 'custom_color' => true, 'tab_slug' => 'advanced', 'toggle_slug' => 'toggle', 'hover' => 'tabs', ), 'icon_color' => array( 'label' => esc_html__( 'Icon Color', 'et_builder' ), 'type' => 'color-alpha', 'custom_color' => true, 'tab_slug' => 'advanced', 'toggle_slug' => 'icon', 'hover' => 'tabs', ), ); return $fields; } } new ET_Builder_Module_Accordion_Item;
[+]
..
[-] TeamMember.php
[edit]
[+]
type
[-] FullwidthPortfolio.php
[edit]
[-] BarCounters.php
[edit]
[-] Code.php
[edit]
[-] VideoSlider.php
[edit]
[-] FullwidthPostTitle.php
[edit]
[-] PostSlider.php
[edit]
[-] Gallery.php
[edit]
[-] CountdownTimer.php
[edit]
[-] MapItem.php
[edit]
[-] PricingTables.php
[edit]
[-] Image.php
[edit]
[-] BarCountersItem.php
[edit]
[-] Divider.php
[edit]
[-] VideoSliderItem.php
[edit]
[-] FilterablePortfolio.php
[edit]
[-] Map.php
[edit]
[-] Sidebar.php
[edit]
[-] Search.php
[edit]
[-] AccordionItem.php
[edit]
[-] Tabs.php
[edit]
[-] Video.php
[edit]
[-] Text.php
[edit]
[-] PostsNavigation.php
[edit]
[-] Slider.php
[edit]
[-] Testimonial.php
[edit]
[-] TabsItem.php
[edit]
[-] Blurb.php
[edit]
[-] FullwidthPostSlider.php
[edit]
[-] FullwidthMap.php
[edit]
[-] FullwidthSlider.php
[edit]
[-] FullwidthMenu.php
[edit]
[-] Portfolio.php
[edit]
[+]
settings
[-] SignupItem.php
[edit]
[-] PricingTablesItem.php
[edit]
[-] SocialMediaFollow.php
[edit]
[-] Toggle.php
[edit]
[+]
field
[-] SliderItem.php
[edit]
[-] CircleCounter.php
[edit]
[-] Blog.php
[edit]
[-] ContactForm.php
[edit]
[-] Audio.php
[edit]
[-] NumberCounter.php
[edit]
[-] PostTitle.php
[edit]
[-] SocialMediaFollowItem.php
[edit]
[-] FullwidthImage.php
[edit]
[-] Button.php
[edit]
[-] Comments.php
[edit]
[+]
helpers
[-] Signup.php
[edit]
[-] Cta.php
[edit]
[-] FullwidthHeader.php
[edit]
[-] FullwidthCode.php
[edit]
[-] Login.php
[edit]
[-] ContactFormItem.php
[edit]
[-] Shop.php
[edit]
[-] Accordion.php
[edit]