| @@ -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 | |