getFilterData(); } $yatra_trip_list = $ctx['trip_list'] ?? ($GLOBALS['yatra_trip_list'] ?? null); $trips_source = $ctx['trips'] ?? []; $trip_total = (int) ($ctx['total'] ?? 0); $trip_total_pages = (int) ($ctx['pages'] ?? 1); $trip_current_page = (int) ($ctx['current_page'] ?? 1); $trip_dest_options = $ctx['destinations'] ?? []; $trip_act_options = $ctx['activities'] ?? []; $active_filters = $ctx['active_filters'] ?? []; $yatra_listing_title = $ctx['listing_title'] ?? __('All Trips', 'yatra'); $current_filter_type = $ctx['taxonomy_type'] ?? ''; $current_filter_slug = $ctx['taxonomy_slug'] ?? ''; $current_filter_name = $ctx['taxonomy_name'] ?? ''; $yatra_results = $ctx['results'] ?? [ 'display_total' => 0, 'start_item' => 0, 'end_item' => 0, 'per_page' => yatra_get_posts_per_page(), ]; $yatra_pagination = $ctx['pagination'] ?? [ 'total_pages' => 1, 'current_page' => 1, 'prev_url' => null, 'next_url' => null, 'items' => [], ]; $yatra_sort_options = $ctx['sort_options'] ?? []; $show_taxonomy_context = !empty($ctx['show_taxonomy_context']); yatra_get_header(); ?>
'search_show_keyword', 'destination' => 'search_show_destination', 'activities' => 'search_show_activities', 'duration' => 'search_show_duration', 'budget' => 'search_show_budget', ]; $yatra_search_atts = ''; foreach ($yatra_search_field_settings as $yatra_arg => $yatra_setting_key) { $yatra_search_atts .= sprintf( ' %s="%s"', $yatra_arg, \Yatra\Services\SettingsService::isEnabled($yatra_setting_key) ? 'yes' : 'no' ); } echo do_shortcode('[yatra_search' . $yatra_search_atts . ']'); ?>

0) { echo sprintf( /* translators: 1: first item index on the page, 2: last item index on the page, 3: total trips, 4: current page number, 5: total page count. */ __('Showing %1$d-%2$d of %3$d trips (Page %4$d of %5$d)', 'yatra'), (int) $yatra_results['start_item'], (int) $yatra_results['end_item'], (int) $yatra_results['display_total'], $trip_current_page, $trip_total_pages ); } else { echo esc_html__('No trips found', 'yatra'); } ?>

0) : ?>

...