| @@ -1,27 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -$currencies = learn_press_currencies(); | |
| 3 | -foreach ( $currencies as $code => $name ) { | |
| 4 | - $currency_symbol = learn_press_get_currency_symbol( $code ); | |
| 5 | - $currencies[ $code ] = sprintf( '%s (%s)', $name, $currency_symbol ); | |
| 6 | -} | |
| 7 | - | |
| 8 | -$settings = LP_Settings::instance(); | |
| 9 | -$user = wp_get_current_user(); | |
| 10 | -$username = $user->user_login; | |
| 11 | -$settings_slug = $settings->get( 'profile_endpoints.settings', 'settings' ); | |
| 12 | -$profile_slug = 'profile'; | |
| 13 | - | |
| 14 | -if ( learn_press_get_page_id( 'profile' ) ) { | |
| 15 | - $profile_post = get_post( learn_press_get_page_id( 'profile' ) ); | |
| 16 | - | |
| 17 | - if ( $profile_post ) { | |
| 18 | - $profile_slug = $profile_post->post_name; | |
| 19 | - } | |
| 20 | -} | |
| 21 | - | |
| 22 | -$profile_url = site_url() . '/' . $profile_slug . '/' . $username; | |
| 23 | - | |
| 24 | 2 | return apply_filters( |
| 25 | 3 | 'lp/settings/profile', |
| 26 | 4 | apply_filters( |
| 27 | 5 | 'learn-press/profile-settings-fields/general', |
| @@ -34,8 +12,14 @@ | ||
| 34 | 12 | array( |
| 35 | 13 | 'title' => esc_html__( 'Avatar Dimensions', 'learnpress' ), |
| 36 | 14 | 'id' => 'avatar_dimensions', |
| 37 | 15 | 'default' => array( 250, 250, 'yes' ), |
| 16 | + 'type' => 'image-dimensions', | |
| 17 | + ), | |
| 18 | + array( | |
| 19 | + 'title' => esc_html__( 'Cover Image Dimensions', 'learnpress' ), | |
| 20 | + 'id' => 'cover_image_dimensions', | |
| 21 | + 'default' => array( 1290, 250, 'yes' ), | |
| 38 | 22 | 'type' => 'image-dimensions', |
| 39 | 23 | ), |
| 40 | 24 | array( |
| 41 | 25 | 'title' => esc_html__( 'Enable login form', 'learnpress' ), |