Skip to content

Commit

Permalink
TMZ-74 advanced tab
Browse files Browse the repository at this point in the history
  • Loading branch information
mserino committed Nov 8, 2024
1 parent 2cd26a5 commit f4caf04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion modules/template-parts/widgets/ehp-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ protected function render(): void {
protected function register_controls(): void {
$this->add_content_section();
$this->add_style_section();
$this->add_advanced_tab();
}

public function add_content_section(): void {
Expand Down
10 changes: 7 additions & 3 deletions modules/template-parts/widgets/ehp-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ protected function add_style_tab() {
$this->add_style_navigation_section();
$this->add_style_cta_section();
$this->add_style_box_section();
$this->add_style_behavior_section();
}

protected function add_advanced_tab(): void {
$this->add_advanced_behavior_section();
parent::add_advanced_tab();
}

protected function add_content_site_logo_section() {
Expand Down Expand Up @@ -1561,12 +1565,12 @@ protected function add_cta_button_controls( string $type, bool $add_condition =
);
}

private function add_style_behavior_section(): void {
private function add_advanced_behavior_section(): void {
$this->start_controls_section(
'advanced_behavior_section',
[
'label' => esc_html__( 'Behavior', 'hello-plus' ),
'tab' => Controls_Manager::TAB_STYLE,
'tab' => Controls_Manager::TAB_ADVANCED,
]
);

Expand Down

0 comments on commit f4caf04

Please sign in to comment.