| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying user avatar editor for changing avatar in user profile. |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/learnpress/settings/tabs/avatar.php. |
| 6 |
* |
| 7 |
* @author ThimPress |
| 8 |
* @package Learnpress/Templates |
| 9 |
* @version 4.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
defined( 'ABSPATH' ) || exit(); |
| 13 |
$profile = LP_Profile::instance(); |
| 14 |
$image_url = $profile->get_cover_image_src(); |
| 15 |
?> |
| 16 |
<div id="lp-cover-image-upload" class="learnpress-page"> |
| 17 |
<div class="lp-cover-image-wrapper"> |
| 18 |
<img src="<?php esc_attr_e( $image_url ); ?>" id="lp-cover-image" /> |
| 19 |
</div> |
| 20 |
<div class="lp-upload-button-wrapper"> |
| 21 |
<input id="lp-cover-image-file" type="file" name="lp-cover-image" accept="image/png, image/jpeg, image/webp" hidden /> |
| 22 |
<button id="lp-upload-cover-image" class="lp-button"><?php esc_html_e( 'Upload', 'learnpress' ); ?></button> |
| 23 |
<button id="lp-save-cover-image" class="lp-button"><?php esc_html_e( 'Save', 'learnpress' ); ?></button> |
| 24 |
</div> |
| 25 |
</div> |