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 * @version 1.6.4 */ use TUTOR\Input; use TUTOR\Instructor; use TUTOR\Q_And_A; $question_id = Input::get( 'question_id', null, Input::TYPE_INT ); if ( $question_id ) { $question = tutor_utils()->get_qa_question( $question_id ); $user_id = get_current_user_id(); if ( $question && ! Q_And_A::has_qna_access( $user_id, $question->comment_post_ID ) ) { tutor_utils()->tutor_empty_state( tutor_utils()->error_message() ); return; } tutor_load_template_from_custom_path( tutor()->path . '/views/qna/qna-single.php', array( 'question_id' => $question_id, 'context' => 'frontend-dashboard-qna-single', ) ); return; } if ( in_array( Input::get( 'view_as' ), array( 'student', 'instructor' ) ) ) { update_user_meta( get_current_user_id(), 'tutor_qa_view_as', Input::get( 'view_as' ) ); } $is_instructor = tutor_utils()->is_instructor( null, true ); $view_option = get_user_meta( get_current_user_id(), 'tutor_qa_view_as', true ); $view_as = $is_instructor ? ( $view_option ? $view_option : 'instructor' ) : 'student'; $as_instructor_url = add_query_arg( array( 'view_as' => 'instructor' ), tutor()->current_url ); $as_student_url = add_query_arg( array( 'view_as' => 'student' ), tutor()->current_url ); $qna_tabs = \Tutor\Q_And_A::tabs_key_value( 'student' == $view_as ? get_current_user_id() : null ); $active_tab = Input::get( 'tab', 'all' ); ?>
:
get_option( 'pagination_per_page', 10 ); $current_page = max( 1, tutor_utils()->avalue_dot( 'current_page', $_GET ) ); $offset = ( $current_page - 1 ) * $per_page; $q_status = Input::get( 'tab' ); $asker_id = 'instructor' == $view_as ? null : get_current_user_id(); $total_items = tutor_utils()->get_qa_questions( $offset, $per_page, '', null, null, $asker_id, $q_status, true ); $questions = tutor_utils()->get_qa_questions( $offset, $per_page, '', null, null, $asker_id, $q_status ); tutor_load_template_from_custom_path( tutor()->path . '/views/qna/qna-table.php', array( 'qna_list' => $questions, 'context' => 'frontend-dashboard-qna-table-' . $view_as, 'view_as' => $view_as, 'qna_pagination' => array( 'base' => '?current_page=%#%', 'total_items' => $total_items, 'per_page' => $per_page, 'paged' => $current_page, ), ) ); ?>