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/activity.php +6 -5 3.0.4 → 3.0.16 View file →
@@ -32,13 +32,14 @@
32 32 <h2 class="yatra-activity-title"><?php esc_html_e('Activity Listings', 'yatra'); ?></h2>
33 33 <?php endif; ?>
34 34 <?php if (!empty($activities)): ?>
35 35 <div class="yatra-activity-count">
36 - <?php
36 + <?php
37 37 printf(
38 - esc_html__('Showing %d of %d activities', 'yatra'),
39 - esc_html(count($activities)),
40 - esc_html($total_found)
38 + /* translators: 1: number of activities shown, 2: total activities available. */
39 + esc_html__('Showing %1$d of %2$d activities', 'yatra'),
40 + (int) count($activities),
41 + (int) $total_found
41 42 );
42 43 ?>
43 44 </div>
44 45 <?php endif; ?>
@@ -96,9 +97,9 @@
96 97 <?php if (!empty($activity['min_price'])): ?>
97 98 <div class="category-stat price">
98 99 <span class="category-stat-icon">$</span>
99 100 <span class="category-stat-value">
100 - <?php esc_html_e('From', 'yatra'); ?> <?php echo esc_html(yatra_get_currency_symbol(get_option('yatra_currency', 'USD')) . number_format($activity['min_price'], 2)); ?>
101 + <?php esc_html_e('From', 'yatra'); ?> <?php echo esc_html(yatra_format_price((float) $activity['min_price'])); ?>
101 102 </span>
102 103 </div>
103 104 <?php endif; ?>
104 105 </div>