PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | templates/single-taxonomy.php +19 -4 3.0.2.9 → 3.0.16 View file →
@@ -68,18 +68,21 @@
68 68 $type_labels = [
69 69 'destination' => [
70 70 'singular' => __('Destination', 'yatra'),
71 71 'plural' => __('Destinations', 'yatra'),
72 + /* translators: %s: destination name (e.g. "Nepal"). */
72 73 'trips_title' => __('Trips in %s', 'yatra'),
73 74 ],
74 75 'activity' => [
75 76 'singular' => __('Activity', 'yatra'),
76 77 'plural' => __('Activities', 'yatra'),
78 + /* translators: %s: term name (activity or category, e.g. "Hiking" or "Adventure"). */
77 79 'trips_title' => __('%s Trips', 'yatra'),
78 80 ],
79 81 'category' => [
80 82 'singular' => __('Category', 'yatra'),
81 83 'plural' => __('Categories', 'yatra'),
84 + /* translators: %s: term name (activity or category, e.g. "Hiking" or "Adventure"). */
82 85 'trips_title' => __('%s Trips', 'yatra'),
83 86 ],
84 87 ];
85 88
@@ -147,11 +150,16 @@
147 150 $entity_image = $placeholder_src;
148 151 }
149 152
150 153 yatra_get_header();
154 +
155 +// Trip-listing card layout (Settings → Design); follows the site-wide setting.
156 +$yatra_listing_layout_class = \Yatra\Providers\FrontendAssetsProvider::listingLayoutClasses(
157 + \Yatra\Providers\FrontendAssetsProvider::resolveListingLayout()
158 +);
151 159 ?>
152 160
153 -<div class="yatra-listing-page yatra-taxonomy-page yatra-<?php echo esc_attr($type); ?>-page">
161 +<div class="yatra-listing-page yatra-taxonomy-page yatra-<?php echo esc_attr($type); ?>-page<?php echo $yatra_listing_layout_class ? ' ' . esc_attr($yatra_listing_layout_class) : ''; ?>">
154 162
155 163 <!-- Hero Section -->
156 164 <div class="yatra-taxonomy-hero"<?php echo $entity_image ? ' style="background-image: url(' . esc_url($entity_image) . ');"' : ''; ?>>
157 165 <div class="yatra-taxonomy-hero-overlay"></div>
@@ -164,9 +172,12 @@
164 172 <span class="yatra-taxonomy-trip-count">
165 173 <svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
166 174 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"/>
167 175 </svg>
168 - <?php echo sprintf(_n('%d Trip', '%d Trips', $total_trips, 'yatra'), (int) $total_trips); ?>
176 + <?php
177 + /* translators: %d: total number of trips in this taxonomy term. */
178 + echo sprintf(_n('%d Trip', '%d Trips', $total_trips, 'yatra'), (int) $total_trips);
179 + ?>
169 180 </span>
170 181 </div>
171 182 </div>
172 183 </div>
@@ -186,9 +197,10 @@
186 197 $end_item = min($current_page * $per_page, $total_trips);
187 198
188 199 if ($total_trips > 0) {
189 200 echo sprintf(
190 - __('Showing <strong>%d-%d</strong> of %d trips (Page %d of %d)', 'yatra'),
201 + /* 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. */
202 + __('Showing <strong>%1$d-%2$d</strong> of %3$d trips (Page %4$d of %5$d)', 'yatra'),
191 203 $start_item,
192 204 $end_item,
193 205 $total_trips,
194 206 $current_page,
@@ -256,9 +268,12 @@
256 268 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"/>
257 269 </svg>
258 270 </div>
259 271 <h3><?php echo esc_html__('No trips found', 'yatra'); ?></h3>
260 - <p><?php echo sprintf(esc_html__('There are no trips available for %s at the moment. Please check back later or explore other options.', 'yatra'), esc_html($taxonomy_data->name)); ?></p>
272 + <p><?php
273 + /* translators: %s: taxonomy term name (destination, activity, or category). */
274 + echo sprintf(esc_html__('There are no trips available for %s at the moment. Please check back later or explore other options.', 'yatra'), esc_html($taxonomy_data->name));
275 + ?></p>
261 276 <a href="<?php echo esc_url(home_url('/' . \Yatra\Services\SettingsService::getTripBase() . '/')); ?>" class="yatra-btn yatra-btn-primary yatra-archive-card-cta">
262 277 <?php echo yatra_svg_icon('globe', 'yatra-btn-icon'); ?>
263 278 <span><?php echo esc_html__('Browse All Trips', 'yatra'); ?></span>
264 279 </a>