[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.147.74.100: ~ $
<?php
/**
 * Question & Answer list page
 *
 * @package Tutor\Views
 * @subpackage Tutor\Q&A
 * @author Themeum <support@themeum.com>
 * @link https://themeum.com
 * @since 2.0.0
 */

use TUTOR\Input;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$question_id = Input::get( 'question_id', 0, Input::TYPE_INT );
if ( $question_id > 0 ) {
	tutor_load_template_from_custom_path(
		tutor()->path . '/views/qna/qna-single.php',
		array(
			'question_id' => $question_id,
			'context'     => 'backend-dashboard-qna-single',
		)
	);
	return;
}

$qna_object     = new \TUTOR\Question_Answers_List( false );
$qna            = $qna_object->get_items( $_GET );
$qna_list       = $qna['items'];
$qna_pagination = $qna['pagination'];

$filters = array(
	'bulk_action'   => true,
	'bulk_actions'  => $qna_object->get_bulk_actions(),
	'ajax_action'   => 'tutor_qna_bulk_action',
	'filters'       => true,
	'course_filter' => true,
);

/**
 * Determine active tab
 */

$active_tab = Input::get( 'tab', 'all' );

$navbar_data = array(
	'page_title' => __( 'Question & Answer', 'tutor' ),
	'tabs'       => \Tutor\Q_And_A::tabs_key_value(),
	'active'     => $active_tab,
);
?>

<div class="tutor-admin-wrap">
	<?php
		/**
		 * Load Templates with data.
		 */
		$navbar_template  = tutor()->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 );
	?>
	<div class="tutor-admin-body">
		<div class="tutor-mt-24">
			<?php
				tutor_load_template_from_custom_path(
					tutor()->path . '/views/qna/qna-table.php',
					array(
						'qna_list'       => $qna_list,
						'context'        => 'backend-dashboard-qna-table',
						'qna_pagination' => $qna_pagination,
					)
				);
				?>
		</div>
	</div>
</div>

Filemanager

Name Type Size Permission Actions
ecommerce Folder 0755
tools Folder 0755
add_new_instructor.php File 5.02 KB 0644
addons.php File 4.4 KB 0644
announcements.php File 3.62 KB 0644
answer.php File 3.54 KB 0644
course-builder.php File 710 B 0644
course-list.php File 14.87 KB 0644
enable_disable_addons.php File 206 B 0644
feature-promotion.php File 1.29 KB 0644
get-pro.php File 591 B 0644
instructors.php File 19.27 KB 0644
question_answer.php File 1.83 KB 0644
quiz_attempts.php File 2.88 KB 0644
students.php File 5.86 KB 0644
tools.php File 1.45 KB 0644
tutor-pro-addons.php File 22.2 KB 0644
view_attempt.php File 1.73 KB 0644
welcome.php File 10.18 KB 0644
whats-new.php File 15.75 KB 0644
withdraw_requests.php File 26.05 KB 0644