PluginProbe
Booking Calendar / 11.9
Booking Calendar v11.9
11.9 11.8.4 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 All 205 releases
← All changes | includes/ui_settings/parts/ui__nav_horis.php +18 -11 11.5 → 11.9 View file →
@@ -32,26 +32,33 @@
32 32 'attr' => array(),
33 33 );
34 34 $params = wp_parse_args( $args, $defaults );
35 35
36 - $active_page_arr = array(
37 - 'active_page' => $args['active_page'], // wpbc-settings.
38 - 'active_tab' => $args ['active_tab'], // calendar_appearance.
39 - 'active_subtab' => $args['active_subtab'], // calendar_appearance_skin.
40 - );
36 + $active_page_arr = array(
37 + 'active_page' => $args['active_page'], // wpbc-settings.
38 + 'active_tab' => $args ['active_tab'], // calendar_appearance.
39 + 'active_subtab' => $args['active_subtab'], // calendar_appearance_skin.
40 + );
41 +
42 + if ( function_exists( 'wpbc_booking_modes_v3_compile_horizontal_navigation' ) ) {
43 + $args['page_nav_tabs'] = wpbc_booking_modes_v3_compile_horizontal_navigation(
44 + $args['page_nav_tabs'],
45 + $active_page_arr['active_page'],
46 + $active_page_arr['active_tab'],
47 + $active_page_arr['active_subtab']
48 + );
49 + }
41 50
42 51 // Available Main Menu - slug => titles.
43 - $show_these_pages_arr = array(
52 + $show_these_pages_arr = array(
44 53 'wpbc' => __( 'Bookings', 'booking' ),
45 54 'wpbc-availability' => __( 'Availability', 'booking' ),
46 55 'wpbc-prices' => __( 'Prices', 'booking' ),
47 56 'wpbc-resources' => __( 'Resources', 'booking' ),
48 57 'wpbc-settings' => __( 'Settings', 'booking' ),
49 - 'wpbc-setup' => __( 'Setup', 'booking' ),
50 - );
51 -
52 -
53 - // Ability to click on panel, only if there 'min' class - panel minimized!
58 + 'wpbc-setup' => __( 'Setup', 'booking' ),
59 + );
60 + // Ability to click on panel, only if there 'min' class - panel minimized!
54 61 echo '<div class="wpbc_ui_el__horis_top_bar__wrapper">';
55 62
56 63 echo ' <div class="wpbc_ui_el__horis_top_bar__content">';
57 64