| @@ -1,8 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace Better_Payment\Lite\Campaign; |
| 4 | 4 | |
| 5 | +use Better_Payment\Lite\Campaign\Support\Money; | |
| 6 | + | |
| 5 | 7 | use Better_Payment\Lite\Controller; |
| 6 | 8 | |
| 7 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 8 | 10 | exit; |
| @@ -39,15 +41,15 @@ | ||
| 39 | 41 | |
| 40 | 42 | printf( |
| 41 | 43 | '<strong>%s %s</strong> raised<br><small>%d donors | %d%%</small>', |
| 42 | 44 | esc_html( $currency ), |
| 43 | - esc_html( number_format( $raised, 2 ) ), | |
| 45 | + esc_html( Money::format( $raised ) ), | |
| 44 | 46 | (int) $stats['donor_count'], |
| 45 | 47 | (int) $progress |
| 46 | 48 | ); |
| 47 | 49 | |
| 48 | 50 | if ( $goal > 0 ) { |
| 49 | - printf( '<br><small>of %s %s goal</small>', esc_html( $currency ), esc_html( number_format( $goal, 2 ) ) ); | |
| 51 | + printf( '<br><small>of %s %s goal</small>', esc_html( $currency ), esc_html( Money::format( $goal ) ) ); | |
| 50 | 52 | } |
| 51 | 53 | } |
| 52 | 54 | |
| 53 | 55 | if ( $column === 'campaign_builder' ) { |