Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
* @link https://themeum.com * @since 1.4.3 */ use TUTOR\Input; use Tutor\Models\CourseModel; // Get the user ID and active tab. $current_user_id = get_current_user_id(); ! isset( $active_tab ) ? $active_tab = 'my-courses' : 0; // Map required course status according to page. $status_map = array( 'my-courses' => CourseModel::STATUS_PUBLISH, 'my-courses/draft-courses' => CourseModel::STATUS_DRAFT, 'my-courses/pending-courses' => CourseModel::STATUS_PENDING, ); // Set currently required course status fo rcurrent tab. $status = isset( $status_map[ $active_tab ] ) ? $status_map[ $active_tab ] : CourseModel::STATUS_PUBLISH; // Get counts for course tabs. $count_map = array( 'publish' => CourseModel::get_courses_by_instructor( $current_user_id, CourseModel::STATUS_PUBLISH, 0, 0, true ), 'pending' => CourseModel::get_courses_by_instructor( $current_user_id, CourseModel::STATUS_PENDING, 0, 0, true ), 'draft' => CourseModel::get_courses_by_instructor( $current_user_id, CourseModel::STATUS_DRAFT, 0, 0, true ), ); $course_archive_arg = isset( $GLOBALS['tutor_course_archive_arg'] ) ? $GLOBALS['tutor_course_archive_arg']['column_per_row'] : null; $courseCols = null === $course_archive_arg ? tutor_utils()->get_option( 'courses_col_per_row', 4 ) : $course_archive_arg; $per_page = tutor_utils()->get_option( 'courses_per_page', 10 ); $paged = Input::get( 'current_page', 1, Input::TYPE_INT ); $offset = $per_page * ( $paged - 1 ); $results = CourseModel::get_courses_by_instructor( $current_user_id, $status, $offset, $per_page ); $show_course_delete = true; if ( ! current_user_can( 'administrator' ) && ! tutor_utils()->get_option( 'instructor_can_delete_course' ) ) { $show_course_delete = false; } ?>
url . 'assets/images/placeholder.svg'; if ( ! is_array( $results ) || ( ! count( $results ) && 1 == $paged ) ) { tutor_utils()->tutor_empty_state( tutor_utils()->not_found_text() ); } else { ?>
nonce_action ); foreach ( $results as $post ) : setup_postdata( $post ); $avg_rating = tutor_utils()->get_course_rating()->rating_avg; $tutor_course_img = get_tutor_course_thumbnail_src(); $id_string_delete = 'tutor_my_courses_delete_' . $post->ID; $row_id = 'tutor-dashboard-my-course-' . $post->ID; $course_duration = get_tutor_course_duration_context( $post->ID, true ); $course_students = tutor_utils()->count_enrolled_users_by_course(); $is_main_instructor = CourseModel::is_main_instructor( $post->ID ); ?>
<?php the_title(); ?>
array( 'class' => true ), ) ); ?>
array( 'class' => true ), ) ); ?>
$per_page ) { $pagination_data = array( 'total_items' => $count_map[ $status ], 'per_page' => $per_page, 'paged' => $paged, ); tutor_load_template_from_custom_path( tutor()->path . 'templates/dashboard/elements/pagination.php', $pagination_data ); } ?>