[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.145.12.79: ~ $
<?php
/**
 * Answer page
 *
 * @package Tutor\Views
 * @author Themeum <support@themeum.com>
 * @link https://themeum.com
 * @since 2.0.0
 */

use TUTOR\Input;

$question_id = Input::get( 'question_id', 0, Input::TYPE_INT );
$question    = tutor_utils()->get_qa_question( $question_id );
?>

<div class="wrap">
	<h2><?php esc_html_e( 'Answer', 'tutor' ); ?></h2>

	<div class="tutor-qanda-wrap">
		<form action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" id="tutor_admin_answer_form" method="post">
			<?php wp_nonce_field( tutor()->nonce_action, tutor()->nonce ); ?>
			<input type="hidden" value="tutor_place_answer" name="action"/>
			<input type="hidden" value="<?php echo esc_attr( $question_id ); ?>" name="question_id"/>

			<div class="tutor-option-field-row">
				<div class="tutor-option-field">
					<?php
					$settings = array(
						'teeny'         => true,
						'media_buttons' => false,
						'quicktags'     => false,
						'editor_height' => 200,
					);
					wp_editor( null, 'answer', $settings );
					?>

					<p class="desc"><?php esc_html_e( 'Write an answer here', 'tutor' ); ?></p>
				</div>

				<div class="tutor-option-field">
					<button type="submit" name="tutor_answer_submit_btn" class="button button-primary"><?php esc_html_e( 'Place answer', 'tutor' ); ?></button>
				</div>
			</div>
		</form>
	</div>

	<div class="tutor-admin-individual-question">
		<div class="tutor_original_question tutor-bg-white ">
			<div class="question-left">
				<?php
					echo wp_kses( tutor_utils()->get_tutor_avatar( $question->user_id ), tutor_utils()->allowed_avatar_tags() );
				?>
			</div>

			<div class="question-right">

				<div class="question-top-meta">
					<p class="review-meta">
						<?php echo esc_attr( $question->display_name ); ?> -
						<span class="tutor-color-muted">
							<?php echo wp_sprintf( __( '%s ago', 'tutor' ), human_time_diff( strtotime( $question->comment_date ) ) ); //phpcs:ignore ?>
						</span>
					</p>
				</div>

				<div class="tutor_question_area">
					<p>
						<strong>
							<?php echo esc_html( stripslashes( $question->question_title ) ); ?>
						</strong>

						<span class="tutor-color-muted">
							<?php esc_html_e( 'on', 'tutor' ); ?> <?php echo esc_attr( $question->post_title ); ?>
						</span>
					</p>
					<?php echo wp_kses_post( wpautop( stripslashes( $question->comment_content ) ) ); ?>
				</div>

			</div>
		</div>

		<?php
		$answers = tutor_utils()->get_qa_answer_by_question( $question_id );
		?>

		<div class="tutor_admin_answers_list_wrap">
			<?php
			if ( is_array( $answers ) && count( $answers ) ) {
				foreach ( $answers as $answer ) {
					?>
					<div class="tutor_original_question <?php echo $question->user_id == $answer->user_id ? 'tutor-bg-white' : 'tutor-bg-light'; ?>">
						<div class="question-left">
							<?php
								echo wp_kses(
									tutor_utils()->get_tutor_avatar( $answer->user_id ),
									tutor_utils()->allowed_avatar_tags()
								);
							?>
						</div>

						<div class="question-right">
							<div class="question-top-meta">
								<p class="review-meta">
									<?php echo esc_attr( $answer->display_name ); ?> -
									<span class="tutor-color-muted">
										<?php echo wp_sprintf( __( '%s ago', 'tutor' ), human_time_diff( strtotime( $answer->comment_date ) ) ); //phpcs:ignore ?>
									</span>
								</p>
							</div>

							<div class="tutor_question_area">
								<?php echo wp_kses_post( wpautop( stripslashes( $answer->comment_content ) ) ); ?>
							</div>
						</div>
					</div>
					<?php
				}
			}
			?>
		</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