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/shortcodes/destination.php +6 -5 3.0.2.8 → 3.0.16 View file →
@@ -24,13 +24,14 @@
24 24 <h2 class="yatra-destination-title"><?php esc_html_e('Destination Showcase', 'yatra'); ?></h2>
25 25 <?php endif; ?>
26 26 <?php if (!empty($destinations)): ?>
27 27 <div class="yatra-destination-count">
28 - <?php
28 + <?php
29 29 printf(
30 - esc_html__('Showing %d of %d destinations', 'yatra'),
31 - esc_html(count($destinations)),
32 - esc_html($total_found)
30 + /* translators: 1: number of destinations shown, 2: total destinations available. */
31 + esc_html__('Showing %1$d of %2$d destinations', 'yatra'),
32 + (int) count($destinations),
33 + (int) $total_found
33 34 );
34 35 ?>
35 36 </div>
36 37 <?php endif; ?>
@@ -88,9 +89,9 @@
88 89 <?php if (!empty($destination['min_price'])): ?>
89 90 <div class="category-stat price">
90 91 <span class="category-stat-icon">$</span>
91 92 <span class="category-stat-value">
92 - <?php esc_html_e('From', 'yatra'); ?> <?php echo esc_html(yatra_get_currency_symbol(get_option('yatra_currency', 'USD')) . number_format($destination['min_price'], 2)); ?>
93 + <?php esc_html_e('From', 'yatra'); ?> <?php echo esc_html(yatra_format_price((float) $destination['min_price'])); ?>
93 94 </span>
94 95 </div>
95 96 <?php endif; ?>
96 97 </div>