| @@ -25,11 +25,12 @@ | ||
| 25 | 25 | <?php if (!empty($categories)): ?> |
| 26 | 26 | <div class="yatra-destination-count"> |
| 27 | 27 | <?php |
| 28 | 28 | printf( |
| 29 | - esc_html__('Showing %d of %d categories', 'yatra'), | |
| 30 | - esc_html(count($categories)), | |
| 31 | - esc_html($total_found) | |
| 29 | + /* translators: 1: number of categories shown, 2: total categories available. */ | |
| 30 | + esc_html__('Showing %1$d of %2$d categories', 'yatra'), | |
| 31 | + (int) count($categories), | |
| 32 | + (int) $total_found | |
| 32 | 33 | ); |
| 33 | 34 | ?> |
| 34 | 35 | </div> |
| 35 | 36 | <?php endif; ?> |
| @@ -83,9 +84,9 @@ | ||
| 83 | 84 | <?php if (!empty($category_row['min_price'])): ?> |
| 84 | 85 | <div class="category-stat price"> |
| 85 | 86 | <span class="category-stat-icon">$</span> |
| 86 | 87 | <span class="category-stat-value"> |
| 87 | - <?php esc_html_e('From', 'yatra'); ?> <?php echo esc_html(yatra_get_currency_symbol(get_option('yatra_currency', 'USD')) . number_format($category_row['min_price'], 2)); ?> | |
| 88 | + <?php esc_html_e('From', 'yatra'); ?> <?php echo esc_html(yatra_format_price((float) $category_row['min_price'])); ?> | |
| 88 | 89 | </span> |
| 89 | 90 | </div> |
| 90 | 91 | <?php endif; ?> |
| 91 | 92 | </div> |