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/partials/traveler-input-simple.php +9 -3 3.0.3 → 3.0.16 View file →
@@ -3,9 +3,9 @@
3 3 exit;
4 4 }
5 5
6 6 // Simple Traveler Input for Regular Pricing (NO DROPDOWN)
7 -// Expected variables: $input_id, $input_name, $value, $min, $max, $range_text
7 +// Expected variables: $input_id, $input_name, $value, $min, $max
8 8 ?>
9 9 <div class="yatra-booking-travelers-simple">
10 10 <div class="yatra-booking-field-icon">
11 11 <?php echo yatra_svg_icon('users', 'yatra-icon-sm'); ?>
@@ -30,8 +30,14 @@
30 30 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/>
31 31 </svg>
32 32 </button>
33 33 </div>
34 - <?php if (isset($range_text)): ?>
35 - <span class="yatra-travelers-range"><?php echo esc_html($range_text); ?></span>
34 + <?php if (isset($min, $max)): ?>
35 + <span class="yatra-travelers-range"><?php
36 + // Separate short labels so Loco/po files can translate "Min" / "Max" without a long combined msgid.
37 + // Colons are literal (not part of the translatable strings).
38 + echo esc_html(
39 + __('Min', 'yatra') . ': ' . (int) $min . ', ' . __('Max', 'yatra') . ': ' . (int) $max
40 + );
41 + ?></span>
36 42 <?php endif; ?>
37 43 </div>