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.2 3.5.0 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.8.0 3.8.1 3.8.2 3.8.3 3.9.0 3.9.1 3.9.10 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 3.9.7 3.9.8 3.9.9
tutor / templates / student-public-profile.php
tutor / templates Last commit date
dashboard 6 years ago email 6 years ago global 6 years ago loop 6 years ago profile 6 years ago shortcode 6 years ago single 6 years ago widget 6 years ago archive-course.php 6 years ago course-none.php 6 years ago dashboard.php 6 years ago login.php 6 years ago single-assignment.php 6 years ago single-course-enrolled-announcements.php 6 years ago single-course-enrolled-overview.php 6 years ago single-course-enrolled-questions.php 6 years ago single-course-enrolled.php 6 years ago single-course.php 6 years ago single-lesson.php 6 years ago single-preview-lesson.php 6 years ago single-quiz.php 6 years ago student-public-profile.php 6 years ago
student-public-profile.php
130 lines
1 <?php
2 /**
3 * Template for displaying student Public Profile
4 *
5 * @since v.1.0.0
6 *
7 * @author Themeum
8 * @url https://themeum.com
9 */
10
11 get_header();
12
13 $user_name = sanitize_text_field(get_query_var('tutor_student_username'));
14 $sub_page = sanitize_text_field(get_query_var('profile_sub_page'));
15 $get_user = tutor_utils()->get_user_by_login($user_name);
16 $user_id = $get_user->ID;
17
18
19 global $wp_query;
20
21 $profile_sub_page = '';
22 if (isset($wp_query->query_vars['profile_sub_page']) && $wp_query->query_vars['profile_sub_page']) {
23 $profile_sub_page = $wp_query->query_vars['profile_sub_page'];
24 }
25
26
27 ?>
28
29 <?php do_action('tutor_student/before/wrap'); ?>
30
31 <div <?php tutor_post_class('tutor-full-width-student-profile tutor-page-wrap'); ?>>
32 <div class="tutor-container">
33 <div class="tutor-row">
34 <div class="tutor-col-12">
35 <div class="tutor-dashboard-header">
36 <div class="tutor-dashboard-header-avatar">
37 <img src="<?php echo get_avatar_url($user_id, array('size' => 150)); ?>" />
38 </div>
39 <div class="tutor-dashboard-header-info">
40 <div class="tutor-dashboard-header-display-name">
41 <h4><?php _e('Howdy,', 'tutor'); ?> <strong><?php echo $get_user->display_name; ?></strong> </h4>
42 </div>
43 <?php
44 if (user_can($user_id, tutor()->instructor_role)){
45 $instructor_rating = tutor_utils()->get_instructor_ratings($get_user->ID);
46 ?>
47 <div class="tutor-dashboard-header-stats">
48 <div class="tutor-dashboard-header-ratings">
49 <?php tutor_utils()->star_rating_generator($instructor_rating->rating_avg); ?>
50 <span><?php echo esc_html($instructor_rating->rating_avg); ?></span>
51 <span> (<?php _e(sprintf('%d Ratings', $instructor_rating->rating_count), 'tutor') ?>) </span>
52 </div>
53 <!--<div class="tutor-dashboard-header-notifications">
54 <?php /*_e('Notification'); */?> <span>9</span>
55 </div>-->
56 </div>
57 <?php } ?>
58 </div>
59 <?php
60 $tutor_user_social_icons = tutor_utils()->tutor_user_social_icons();
61 if(count($tutor_user_social_icons)){
62 ?>
63 <div class="tutor-dashboard-social-icons">
64 <?php
65 $i=0;
66 foreach ($tutor_user_social_icons as $key => $social_icon){
67 $icon_url = get_user_meta($user_id,$key,true);
68 if($icon_url){
69 if($i==0){
70 ?>
71 <h4><?php esc_html_e("Follow me", "tutor"); ?></h4>
72 <?php
73 }
74 echo "<a href='".esc_url($icon_url)."' target='_blank' class='".$social_icon['icon_classes']."'></a>";
75 }
76 $i++;
77 }
78 ?>
79 </div>
80 <?php
81 }
82 ?>
83 </div>
84 </div>
85 </div>
86 </div>
87 <div <?php tutor_post_class('tutor-dashboard-student'); ?>>
88
89 <div class="tutor-container">
90 <div class="tutor-row">
91 <div class="tutor-col-3">
92 <?php
93 $permalinks = tutor_utils()->user_profile_permalinks();
94 $student_profile_url = tutor_utils()->profile_url($user_id);
95 ?>
96 <ul class="tutor-dashboard-permalinks">
97 <li class="tutor-dashboard-menu-bio <?php echo $profile_sub_page == '' ? 'active' : ''; ?>"><a href="<?php echo tutor_utils()->profile_url($user_id); ?>"><?php _e('Bio', 'tutor'); ?></a></li>
98 <?php
99 if (is_array($permalinks) && count($permalinks)){
100 foreach ($permalinks as $permalink_key => $permalink){
101 $li_class = "tutor-dashboard-menu-{$permalink_key}";
102 $active_class = $profile_sub_page == $permalink_key ? "active" : "";
103 echo '<li class="'. $active_class . ' ' . $li_class .'"><a href="'.trailingslashit($student_profile_url).$permalink_key.'"> '.$permalink.' </a> </li>';
104 }
105 }
106 ?>
107 </ul>
108 </div>
109 <div class="tutor-col-9">
110 <div class="tutor-dashboard-content">
111 <?php
112 if ($sub_page){
113 tutor_load_template('profile.'.$sub_page);
114 }else{
115 tutor_load_template('profile.bio');
116 }
117 ?>
118 </div>
119 </div> <!-- .tutor-col-8 -->
120 </div>
121
122 </div> <!-- .tutor-row -->
123 </div> <!-- .tutor-container -->
124 </div>
125
126 <?php do_action('tutor_student/after/wrap'); ?>
127
128 <?php
129 get_footer();
130