| @@ -302,8 +302,11 @@ | ||
| 302 | 302 | return $this->current_page_params; |
| 303 | 303 | } |
| 304 | 304 | |
| 305 | 305 | public function get_nav_tabs() { |
| 306 | + if ( function_exists( 'wpbc_booking_modes_v3_capture_navigation_source' ) ) { | |
| 307 | + return wpbc_booking_modes_v3_capture_navigation_source( self::$nav_tabs ); | |
| 308 | + } | |
| 306 | 309 | |
| 307 | 310 | if ( |
| 308 | 311 | function_exists( 'wpbc_booking_modes_is_navigation_boundary_enabled' ) |
| 309 | 312 | && wpbc_booking_modes_is_navigation_boundary_enabled() |
| @@ -442,13 +445,23 @@ | ||
| 442 | 445 | * @return void |
| 443 | 446 | */ |
| 444 | 447 | protected function define_current_page_parameters( $this_tab_tag, $this_tab, $this_subtab_tag, $this_subtab ) { |
| 445 | 448 | |
| 446 | - $this->current_page_params = array( | |
| 447 | - 'tab' => array_merge( $this_tab, array( 'tag' => $this_tab_tag ) ), | |
| 448 | - 'subtab' => array_merge( $this_subtab, array( 'tag' => $this_subtab_tag ) ), | |
| 449 | - ); | |
| 450 | - } | |
| 449 | + $this->current_page_params = array( | |
| 450 | + 'tab' => array_merge( $this_tab, array( 'tag' => $this_tab_tag ) ), | |
| 451 | + 'subtab' => array_merge( $this_subtab, array( 'tag' => $this_subtab_tag ) ), | |
| 452 | + ); | |
| 453 | + | |
| 454 | + if ( function_exists( 'wpbc_booking_modes_v3_apply_current_page_options' ) ) { | |
| 455 | + $context = wpbc_booking_modes_get_context(); | |
| 456 | + $this->current_page_params = wpbc_booking_modes_v3_apply_current_page_options( | |
| 457 | + $this->current_page_params, | |
| 458 | + $context['page'], | |
| 459 | + $this_tab_tag, | |
| 460 | + $this_subtab_tag | |
| 461 | + ); | |
| 462 | + } | |
| 463 | + } | |
| 451 | 464 | |
| 452 | 465 | |
| 453 | 466 | /** |
| 454 | 467 | * Get all SubTabs of current opened page Tab |