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 2.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } use TUTOR\Input; $courses = \TUTOR\Tutor::instance()->course_list; /** * Short able params */ $course_id = Input::get( 'course-id', '' ); $order_filter = Input::get( 'order', 'DESC' ); $date = Input::get( 'date', '' ); $search_filter = Input::get( 'search', '' ); $category_slug = Input::get( 'category', '' ); /** * Determine active tab */ $active_tab = Input::get( 'data', 'all' ); /** * Pagination data */ $paged_filter = Input::get( 'paged', 1, Input::TYPE_INT ); $limit = tutor_utils()->get_option( 'pagination_per_page' ); $offset = ( $limit * $paged_filter ) - $limit; /** * Navbar data to make nav menu */ $add_course_url = esc_url( admin_url( 'admin.php?page=create-course' ) ); $navbar_data = array( 'page_title' => $courses->page_title, 'tabs' => $courses->tabs_key_value( $category_slug, $course_id, $date, $search_filter ), 'active' => $active_tab, 'add_button' => true, 'button_title' => __( 'Add New', 'tutor' ), 'button_url' => '#', 'button_class' => 'tutor-create-new-course', ); /** * Bulk action & filters */ $filters = array( 'bulk_action' => $courses->bulk_action, 'bulk_actions' => $courses->prepare_bulk_actions(), 'ajax_action' => 'tutor_course_list_bulk_action', 'filters' => true, 'category_filter' => true, ); $args = array( 'post_type' => tutor()->course_post_type, 'orderby' => 'ID', 'order' => $order_filter, 'paged' => $paged_filter, 'offset' => $offset, 'posts_per_page' => tutor_utils()->get_option( 'pagination_per_page' ), ); if ( 'all' === $active_tab || 'mine' === $active_tab ) { $args['post_status'] = array( 'publish', 'pending', 'draft', 'private', 'future' ); } else { //phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $status = 'published' === $active_tab ? 'publish' : $active_tab; $args['post_status'] = array( $status ); } if ( 'mine' === $active_tab ) { $args['author'] = get_current_user_id(); } $date_filter = sanitize_text_field( tutor_utils()->array_get( 'date', $_GET, '' ) ); //phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $year = gmdate( 'Y', strtotime( $date_filter ) ); $month = gmdate( 'm', strtotime( $date_filter ) ); $day = gmdate( 'd', strtotime( $date_filter ) ); // Add date query. if ( '' !== $date_filter ) { $args['date_query'] = array( array( 'year' => $year, 'month' => $month, 'day' => $day, ), ); } if ( '' !== $course_id ) { $args['p'] = $course_id; } // Add author param. if ( 'mine' === $active_tab || ! current_user_can( 'administrator' ) ) { $args['author'] = get_current_user_id(); } // Search filter. if ( '' !== $search_filter ) { $args['s'] = $search_filter; } // Category filter. if ( '' !== $category_slug ) { $args['tax_query'] = array( array( 'taxonomy' => 'course-category', 'field' => 'slug', 'terms' => $category_slug, ), ); } add_filter( 'posts_search', '_tutor_search_by_title_only', 500, 2 ); $the_query = new WP_Query( $args ); remove_filter( 'posts_search', '_tutor_search_by_title_only', 500 ); $available_status = array( 'publish' => array( __( 'Publish', 'tutor' ), 'select-success' ), 'pending' => array( __( 'Pending', 'tutor' ), 'select-warning' ), 'trash' => array( __( 'Trash', 'tutor' ), 'select-danger' ), 'draft' => array( __( 'Draft', 'tutor' ), 'select-default' ), 'private' => array( __( 'Private', 'tutor' ), 'select-default' ), ); if ( ! tutor_utils()->get_option( 'instructor_can_delete_course' ) && ! current_user_can( 'administrator' ) ) { unset( $available_status['trash'] ); } $future_list = array( 'publish' => array( __( 'Publish', 'tutor' ), 'select-success' ), 'future' => array( __( 'Schedule', 'tutor' ), 'select-default' ), ); $show_course_delete = false; if ( 'trash' === $active_tab && current_user_can( 'administrator' ) ) { $show_course_delete = true; } ?>
path . 'views/elements/navbar.php'; $filters_template = tutor()->path . 'views/elements/filters.php'; tutor_load_template_from_custom_path( $navbar_template, $navbar_data ); tutor_load_template_from_custom_path( $filters_template, $filters ); ?>
have_posts() ) : ?> posts, 'ID' ); $course_meta_data = tutor_utils()->get_course_meta_data( $course_ids ); $authors = array(); //phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited foreach ( $the_query->posts as $key => $post ) : $count_lesson = isset( $course_meta_data[ $post->ID ] ) ? $course_meta_data[ $post->ID ]['lesson'] : 0; $count_quiz = isset( $course_meta_data[ $post->ID ] ) ? $course_meta_data[ $post->ID ]['tutor_quiz'] : 0; $count_assignment = isset( $course_meta_data[ $post->ID ] ) ? $course_meta_data[ $post->ID ]['tutor_assignments'] : 0; $count_topic = isset( $course_meta_data[ $post->ID ] ) ? $course_meta_data[ $post->ID ]['topics'] : 0; $thumbnail_id = (int) get_post_thumbnail_id( $post->ID ); $thumbnail = $thumbnail_id ? wp_get_attachment_image_url( $thumbnail_id, 'thumbnail', false ) : tutor()->url . 'assets/images/placeholder.svg'; /** * Prevent re-query for same author details inside loop */ if ( ! isset( $authors[ $post->post_author ] ) ) { $authors[ $post->post_author ] = tutils()->get_tutor_user( $post->post_author ); } $author_details = $authors[ $post->post_author ]; $edit_link = $add_course_url . "&course_id=$post->ID"; ?>
ID, 'course-category' ); if ( count( $terms ) ) { echo esc_html( implode( ', ', array_column( $terms, 'name' ) ) . ' ' ); } else { echo '...'; } ?>
get_tutor_avatar( $author_details, 'sm' ), tutor_utils()->allowed_avatar_tags() ) ?>
get_course_price( $post->ID ); if ( null == $price ) { esc_html_e( 'Free', 'tutor' ); } else { echo $price; //phpcs:ignore } // Alert class for course status. //phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $status = ( 'publish' === $post->post_status ? 'select-success' : ( 'pending' === $post->post_status ? 'select-warning' : ( 'trash' === $post->post_status ? 'select-danger' : ( 'private' === $post->post_status ? 'select-default' : 'select-default' ) ) ) ); ?>
post_date ) ); ?>
post_date ) ); ?>
ID ); ?> ID ); ?> ID ); ?>
tutor_empty_state( tutor_utils()->not_found_text() ); ?>
found_posts > $limit ) { $pagination_data = array( 'total_items' => $the_query->found_posts, 'per_page' => $limit, 'paged' => $paged_filter, ); $pagination_template = tutor()->path . 'views/elements/pagination.php'; tutor_load_template_from_custom_path( $pagination_template, $pagination_data ); } ?>
path . 'views/elements/common-confirm-popup.php', array( 'message' => __( 'Deletion of the course will erase all its topics, lessons, quizzes, events, and other information. Please confirm your choice.', 'tutor' ), ) );