nav-bar.php
3 years ago
profile.php
1 year ago
reset-password.php
1 year ago
social-profile.php
1 year ago
withdraw-settings.php
1 year ago
social-profile.php
52 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Social Profile Template |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage Dashboard\Settings |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 2.0.0 |
| 10 | */ |
| 11 | |
| 12 | $user = wp_get_current_user(); |
| 13 | ?> |
| 14 | |
| 15 | <div class="tutor-fs-4 tutor-fw-medium tutor-mb-24"><?php esc_html_e( 'Settings', 'tutor' ); ?></div> |
| 16 | |
| 17 | <div class="tutor-dashboard-setting-social tutor-dashboard-content-inner"> |
| 18 | |
| 19 | <div class="tutor-mb-32"> |
| 20 | <?php tutor_load_template( 'dashboard.settings.nav-bar', array( 'active_setting_nav' => 'social-profile' ) ); ?> |
| 21 | <div class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mt-32"><?php esc_html_e( 'Social Profile Link', 'tutor' ); ?></div> |
| 22 | </div> |
| 23 | |
| 24 | <form id="user_social_form" action="" method="post" enctype="multipart/form-data"> |
| 25 | <?php wp_nonce_field( tutor()->nonce_action, tutor()->nonce ); ?> |
| 26 | <input type="hidden" value="tutor_social_profile" name="action" /> |
| 27 | <?php |
| 28 | do_action( 'tutor_profile_edit_before_social_media', $user ); |
| 29 | $tutor_user_social_icons = tutor_utils()->tutor_user_social_icons(); |
| 30 | foreach ( $tutor_user_social_icons as $key => $social_icon ) : |
| 31 | ?> |
| 32 | <div class="tutor-row tutor-align-center tutor-mb-32 tutor-social-field"> |
| 33 | <div class="tutor-col-12 tutor-col-sm-4 tutor-col-md-12 tutor-col-lg-3"> |
| 34 | <i class="<?php echo esc_html( $social_icon['icon_classes'] ); ?>"></i> |
| 35 | <?php echo esc_html( $social_icon['label'] ); ?> |
| 36 | </div> |
| 37 | <div class="tutor-col-12 tutor-col-sm-8 tutor-col-md-12 tutor-col-lg-6"> |
| 38 | <input class="tutor-form-control" type="url" name="<?php echo esc_attr( $key ); ?>" value="<?php echo esc_url( get_user_meta( $user->ID, $key, true ) ); ?>" placeholder="<?php echo esc_html( $social_icon['placeholder'] ); ?>"> |
| 39 | </div> |
| 40 | </div> |
| 41 | <?php endforeach; ?> |
| 42 | |
| 43 | <div class="tutor-row"> |
| 44 | <div class="tutor-col-12"> |
| 45 | <button type="submit" class="tutor-btn tutor-btn-primary"> |
| 46 | <?php esc_html_e( 'Update Profile', 'tutor' ); ?> |
| 47 | </button> |
| 48 | </div> |
| 49 | </div> |
| 50 | </form> |
| 51 | </div> |
| 52 |