| @@ -9,9 +9,9 @@ | ||
| 9 | 9 | |
| 10 | 10 | defined( 'ABSPATH' ) or exit; |
| 11 | 11 | |
| 12 | 12 | $settings = LP_Settings::instance(); |
| 13 | - | |
| 13 | +$currency = $settings->get( 'currency', 'USD' ); | |
| 14 | 14 | ?> |
| 15 | 15 | <table> |
| 16 | 16 | <tr> |
| 17 | 17 | <th><?php _e( 'Paypal Email', 'learnpress' ); ?></th> |
| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | |
| 28 | 28 | <tr> |
| 29 | 29 | <th><?php _e( 'Currency', 'learnpress' ); ?></th> |
| 30 | 30 | <td> |
| 31 | - <select id="currency" name="settings[currency][currency]" class="lp-select-2"> | |
| 31 | + <select id="currency" name="settings[currency][currency]" class="lp-tom-select"> | |
| 32 | 32 | <?php |
| 33 | 33 | $payment_currencies = learn_press_currencies(); |
| 34 | 34 | |
| 35 | 35 | if ( $payment_currencies ) { |
| @@ -34,9 +34,12 @@ | ||
| 34 | 34 | |
| 35 | 35 | if ( $payment_currencies ) { |
| 36 | 36 | foreach ( $payment_currencies as $code => $symbol ) { |
| 37 | 37 | ?> |
| 38 | - <option value="<?php echo esc_attr( $code ); ?>" data-symbol="<?php echo learn_press_get_currency_symbol( $code ); ?>" <?php selected( $code == 'USD' ); ?>><?php echo esc_html( $symbol ); ?></option> | |
| 38 | + <option value="<?php echo esc_attr( $code ); ?>" | |
| 39 | + data-symbol="<?php echo learn_press_get_currency_symbol( $code ); ?>" | |
| 40 | + <?php selected( $code === $currency ); ?>><?php echo esc_html( $symbol ); ?> | |
| 41 | + </option> | |
| 39 | 42 | <?php |
| 40 | 43 | } |
| 41 | 44 | } |
| 42 | 45 | ?> |