PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.17
Yatra – Travel Booking & Tour Operator Software v3.0.17
3.0.17 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 All 85 releases
← All changes | templates/partials/single-trip/quick-facts.php +9 -5 3.0.3 → 3.0.17 View file →
@@ -17,9 +17,11 @@
17 17 <div class="yatra-quick-fact-content">
18 18 <div class="yatra-quick-fact-label"><?php echo esc_html__('Duration', 'yatra'); ?></div>
19 19 <div class="yatra-quick-fact-value">
20 20 <?php
21 - if ($trip->getTripType() === 'single_day') {
21 + if ($trip->isHoursBased()) {
22 + echo esc_html(yatra_format_duration(0, null, $trip->getDurationHours()));
23 + } elseif ($trip->getTripType() === 'single_day') {
22 24 echo esc_html__('Day Trip', 'yatra');
23 25 } else {
24 26 echo esc_html(yatra_format_duration($trip->getDurationDays(), $trip->getDurationNights()));
25 27 }
@@ -58,11 +60,12 @@
58 60 </div>
59 61 <div class="yatra-quick-fact-content">
60 62 <div class="yatra-quick-fact-label"><?php echo esc_html__('Landmarks', 'yatra'); ?></div>
61 63 <div class="yatra-quick-fact-value">
62 - <?php
64 + <?php
63 65 $landmark_count = count($landmarks);
64 - echo esc_html(sprintf(_n('%d landmark', '%d landmarks', $landmark_count, 'yatra'), $landmark_count));
66 + /* translators: %d: number of landmarks. */
67 + echo esc_html(sprintf(_n('%d landmark', '%d landmarks', $landmark_count, 'yatra'), $landmark_count));
65 68 ?>
66 69 </div>
67 70 </div>
68 71 </div>
@@ -76,12 +79,13 @@
76 79 </div>
77 80 <div class="yatra-quick-fact-content">
78 81 <div class="yatra-quick-fact-label"><?php echo esc_html__('Group Size', 'yatra'); ?></div>
79 82 <div class="yatra-quick-fact-value">
80 - <?php
83 + <?php
81 84 $min_travelers = $trip->getMinTravelers();
82 85 $max_travelers = $trip->getMaxTravelers();
83 - echo esc_html(sprintf(__('%d-%d travelers', 'yatra'), $min_travelers, $max_travelers));
86 + /* translators: 1: minimum travelers, 2: maximum travelers. */
87 + echo esc_html(sprintf(__('%1$d-%2$d travelers', 'yatra'), $min_travelers, $max_travelers));
84 88 ?>
85 89 </div>
86 90 </div>
87 91 </div>