PluginProbe
Booking Calendar / 11.8.3
Booking Calendar v11.8.3
11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 All 203 releases
← All changes | includes/ui_settings/class-menu-structure.php +18 -5 11.711.8.3 View file →
@@ -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