| @@ -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> |