| @@ -427,10 +427,13 @@ | ||
| 427 | 427 | <div class="yatra-summary-meta"> |
| 428 | 428 | <?php |
| 429 | 429 | $duration_days = (int) ($trip->duration_days ?? 0); |
| 430 | 430 | $duration_nights = isset($trip->duration_nights) ? (int) $trip->duration_nights : null; |
| 431 | + $duration_hours = (int) ($trip->duration_hours ?? 0); | |
| 431 | 432 | ?> |
| 432 | - <?php if ($duration_days > 0) : ?> | |
| 433 | + <?php if ($duration_hours > 0) : ?> | |
| 434 | + <span><?php echo esc_html(yatra_format_duration(0, null, $duration_hours)); ?></span> | |
| 435 | + <?php elseif ($duration_days > 0) : ?> | |
| 433 | 436 | <?php if ($duration_days <= 1) : ?> |
| 434 | 437 | <span><?php esc_html_e('Day Trip', 'yatra'); ?></span> |
| 435 | 438 | <?php else : ?> |
| 436 | 439 | <span><?php echo esc_html(yatra_format_duration($duration_days, $duration_nights)); ?></span> |