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/booking-confirmation.php +13 -3 3.0.14.1 → 3.0.16 View file →
@@ -307,9 +307,9 @@
307 307 </div>
308 308 <?php endif; ?>
309 309
310 310 <div class="yatra-trip-meta">
311 - <?php if (!empty($booking->duration_days)) : ?>
311 + <?php if (!empty($booking->duration_days) || !empty($booking->duration_hours)) : ?>
312 312 <span class="yatra-meta-item">
313 313 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
314 314 <circle cx="12" cy="12" r="10"></circle>
315 315 <polyline points="12 6 12 12 16 14"></polyline>
@@ -316,11 +316,21 @@
316 316 </svg>
317 317 <?php
318 318 $days = (int) ($booking->duration_days ?? 0);
319 319 $nights = (int) ($booking->duration_nights ?? 0);
320 + $hours = (int) ($booking->duration_hours ?? 0);
320 321
321 - if ($days > 0 && $nights > 0) {
322 + if ($hours > 0) {
323 + // Hour-based day tour: "8 Hours", not "1 Day".
322 324 printf(
325 + esc_html(
326 + /* translators: %d: number of hours. */
327 + _n('%d Hour', '%d Hours', $hours, 'yatra')
328 + ),
329 + $hours
330 + );
331 + } elseif ($days > 0 && $nights > 0) {
332 + printf(
323 333 /* translators: 1: number of days, 2: number of nights. */
324 334 esc_html__('%1$d Days / %2$d Nights', 'yatra'),
325 335 $days,
326 336 $nights
@@ -741,9 +751,9 @@
741 751 </div>
742 752
743 753 <div class="yatra-payment-method">
744 754 <span class="yatra-pm-label"><?php esc_html_e('Payment Method:', 'yatra'); ?></span>
745 - <span class="yatra-pm-value"><?php echo esc_html(ucwords(str_replace('_', ' ', (string) $display_payment_gateway))); ?></span>
755 + <span class="yatra-pm-value"><?php echo esc_html(yatra_payment_gateway_label((string) $display_payment_gateway)); ?></span>
746 756 </div>
747 757 </div>
748 758
749 759 <!-- Contact Info Card -->