} if ($i == 0) { $first_display_tab = $tab['id']; } if ($tab['id'] == 'reviews' && $enable_reviews) { BYT_Theme_Utils::render_tab("cruise", $tab['id'], '', '<a href="#' . $tab['id'] . '" title="' . $tab_label . '">' . $tab_label . '</a>'); } elseif ($tab['id'] == 'locations') { if ($cruise_locations && count($cruise_locations) > 0) { BYT_Theme_Utils::render_tab("cruise", $tab['id'], '', '<a href="#' . $tab['id'] . '" title="' . $tab_label . '">' . $tab_label . '</a>'); } } elseif ($tab['id'] == 'description' || $tab['id'] == 'availability') { BYT_Theme_Utils::render_tab("tour", $tab['id'], '', '<a href="#' . $tab['id'] . '" title="' . $tab_label . '">' . $tab_label . '</a>'); } else { $all_empty_fields = BYT_Theme_Utils::are_tab_fields_empty('cruise_extra_fields', $cruise_extra_fields, $tab['id'], $cruise_obj); if (!$all_empty_fields) { BYT_Theme_Utils::render_tab("cruise", $tab['id'], '', '<a href="#' . $tab['id'] . '" title="' . $tab_label . '">' . $tab_label . '</a>'); } } $i++; } } } do_action('byt_show_single_cruise_tab_items_after'); ?> </ul> </nav> <!--//inner navigation--> <?php do_action('byt_show_single_cruise_tab_content_before'); ?> <!--description-->
echo json_encode(__('Children', 'bookyourtravel')); ?> ; window.pricePerChildLabel = <?php echo json_encode(__('Price per child', 'bookyourtravel')); ?> ; window.pricePerDayLabel = <?php echo json_encode(__('Price per day', 'bookyourtravel')); ?> ; window.priceTotalLabel = <?php echo json_encode($total_price_label); ?> ; window.dateLabel = <?php echo json_encode(__('Date', 'bookyourtravel')); ?> ; </script> <?php $accommodation_obj->render_image_gallery(); ?> <!--inner navigation--> <nav class="inner-nav"> <ul> <?php do_action('byt_show_single_accommodation_tab_items_before'); $first_display_tab = ''; $i = 0; if (is_array($tab_array) && count($tab_array) > 0) {
?> <?php $first_display_tab = ''; $i = 0; if (is_array($tab_array) && count($tab_array) > 0) { foreach ($tab_array as $tab) { if (!isset($tab['hide']) || $tab['hide'] != '1') { $tab_label = ''; if (isset($tab['label'])) { $tab_label = $tab['label']; $tab_label = $byt_theme_of_custom->get_translated_dynamic_string($byt_theme_of_custom->get_option_id_context('car_rental_tabs') . ' ' . $tab['label'], $tab_label); } if ($i == 0) { $first_display_tab = $tab['id']; } BYT_Theme_Utils::render_tab('car_rental', $tab['id'], '', '<a href="#' . $tab['id'] . '" title="' . $tab_label . '">' . $tab_label . '</a>'); $i++; } } } ?> <?php do_action('byt_show_single_car_rental_tab_items_after'); ?> </ul> </nav> <!--//inner navigation--> <?php do_action('byt_show_single_car_rental_tab_content_before'); ?> <!--description-->