Skip to content

Instructor Home Page ( Functionalities )#2329

Open
sanjana4khan wants to merge 153 commits into4.0.0-devfrom
instructor-home-functionalities-free
Open

Instructor Home Page ( Functionalities )#2329
sanjana4khan wants to merge 153 commits into4.0.0-devfrom
instructor-home-functionalities-free

Conversation

@sanjana4khan
Copy link
Collaborator

No description provided.

* @since 4.0.0
* @var string
*/
protected string $wrapper_class = '';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need all these classes? All the classes we can directly put on HTML markup. If a particular tab design is different, then you don't need to use the component.


$complete_status = tutor_utils()->get_earnings_completed_statuses();

$amount_type = is_admin() ? 'earnings.admin_amount' : 'earnings.instructor_amount';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_admin() does not check a user’s capabilities; it only verifies whether the current request is for the WordPress admin area. In this context, you should use TUTOR\User::is_admin() instead.

$complete_status = tutor_utils()->get_earnings_completed_statuses();

$amount_type = is_admin() ? 'earnings.admin_amount' : 'earnings.instructor_amount';
$amount_rate = is_admin() ? 'earnings.admin_rate' : 'earnings.instructor_rate';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

* @since 4.0.0
*
* @param array $top_courses List of course objects returned from analytics.
* @return array Formatted top performing courses data.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a new line before return stmt comment.

* @since 4.0.0
*
* @param int $instructor_id Instructor (author) user ID.
* @return array List of upcoming live task posts.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

* @since 4.0.0
*
* @param array $upcoming_live_tasks List of live task post objects.
* @return array Formatted upcoming live tasks data.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

* @link https://themeum.com
* @since 4.0.0
*/

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prevent direct access

</div>
<ul class="tutor-user-profile-details">
<li>
<?php echo esc_html__( 'Username', 'tutor-pro' ); ?> :
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

invalid text domain

<span><?php echo esc_html( $student_details->user_login ); ?></span>
</li>
<li>
<?php echo esc_html__( 'Email', 'tutor-pro' ); ?> :
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

<span><?php echo esc_html( $student_details->user_email ); ?></span>
</li>
<li>
<?php echo esc_html__( 'Phone', 'tutor-pro' ); ?> :
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

</div>
<div class="tutor-profile-member-since">
<?php tutor_utils()->render_svg_icon( Icon::MEMBER ); ?>
<?php echo esc_html__( 'Member since', 'tutor-pro' ); ?>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0.0 Tutor v4.w0w

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants