PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | inc/admin/views/setup/setup-paypal.php +7 -4 4.1.74.4.8 View file →
@@ -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>
@@ -18,9 +18,9 @@
18 18 <td>
19 19 <input class="regular-text" type="email" name="settings[paypal][paypal_email]" id="settings-paypal-email"
20 20 value="<?php echo esc_attr( $settings->get( 'paypal.paypal_email', '' ) ); ?>">
21 21 <p class="description">
22 - <?php _e( 'Your Paypal email in live mode.', 'learnpress' ); ?>
22 + <?php _e( 'Your Paypal email is in live mode.', 'learnpress' ); ?>
23 23 </p>
24 24 <input type="hidden" name="settings[paypal][enable]" value="yes"/>
25 25 </td>
26 26 </tr>
@@ -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 ?>