[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.223.195.1: ~ $
<?php
/**
 * Displays a topic.
 *
 * Available Variables:
 *
 * $course_id       : (int) ID of the course
 * $course      : (object) Post object of the course
 * $course_settings : (array) Settings specific to current course
 * $course_status   : Course Status
 * $has_access  : User has access to course or is enrolled.
 *
 * $courses_options : Options/Settings as configured on Course Options page
 * $lessons_options : Options/Settings as configured on Lessons Options page
 * $quizzes_options : Options/Settings as configured on Quiz Options page
 *
 * $user_id         : (object) Current User ID
 * $logged_in       : (true/false) User is logged in
 * $current_user    : (object) Currently logged in user object
 * $quizzes         : (array) Quizzes Array
 * $post            : (object) The topic post object
 * $lesson_post     : (object) Lesson post object in which the topic exists
 * $topics      : (array) Array of Topics in the current lesson
 * $all_quizzes_completed : (true/false) User has completed all quizzes on the lesson Or, there are no quizzes.
 * $lesson_progression_enabled  : (true/false)
 * $show_content    : (true/false) true if lesson progression is disabled or if previous lesson and topic is completed.
 * $previous_lesson_completed   : (true/false) true if previous lesson is completed
 * $previous_topic_completed    : (true/false) true if previous topic is completed
 *
 * @since 2.1.0
 *
 * @package LearnDash\Templates\Legacy\Quiz
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<?php
/**
 * Topic Dots
 */
?>
<?php if ( ! empty( $topics ) ) : ?>
	<div id='learndash_topic_dots-<?php echo esc_attr( $lesson_id ); ?>' class="learndash_topic_dots type-dots">

		<b>
		<?php
		printf(
			// translators: placeholder: Topic.
			esc_html_x( '%s Progress:', 'placeholder: Topic', 'learndash' ),
			LearnDash_Custom_Label::get_label( 'topic' ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Method escapes output
		);
		?>
		</b>

		<?php foreach ( $topics as $key => $topic ) : ?>
			<?php $completed_class = empty( $topic->completed ) ? 'topic-notcompleted' : 'topic-completed'; ?>
			<?php $completed_class .= ( $topic->ID === $post->ID ) ? ' ld-topic-current' : ''; ?>
			<a class='<?php echo esc_attr( $completed_class ); ?>' href='<?php echo esc_url( learndash_get_step_permalink( $topic->ID, $course_id ) ); ?>' title='<?php echo esc_html( $topic->post_title ); ?>'>
				<span title='<?php echo esc_html( $topic->post_title ); ?>'></span>
			</a>
		<?php endforeach; ?>

	</div>
<?php endif; ?>

<?php if ( ! empty( $course_id ) ) { ?>
<div id="learndash_back_to_lesson"><a href='<?php echo esc_url( learndash_get_step_permalink( $lesson_id, $course_id ) ); ?>'>&larr;
													<?php
														echo learndash_get_label_course_step_back( get_post_type( $lesson_id ) );
													?>
	</a></div>
<?php } ?>

<?php if ( $lesson_progression_enabled && ! $previous_topic_completed ) : ?>

	<span id="learndash_complete_prev_topic">
	<?php
		$previous_item = learndash_get_previous( $post );
	if ( empty( $previous_item ) ) {
		$previous_item = learndash_get_previous( $lesson_post );
	}

	if ( ( ! empty( $previous_item ) ) && ( $previous_item instanceof WP_Post ) ) {
		if ( 'sfwd-quiz' === $previous_item->post_type ) {
			echo sprintf(
				// translators: placeholder: quiz URL.
				esc_html_x( 'Please go back and complete the previous %s.', 'placeholder: quiz URL', 'learndash' ),
				'<a class="learndash-link-previous-incomplete" href="' . esc_url( learndash_get_step_permalink( $previous_item->ID, $course_id ) ) . '">' . esc_html( learndash_get_custom_label_lower( 'quiz' ) ) . '</a>'
			);

		} elseif ( 'sfwd-topic' === $previous_item->post_type ) {
			echo sprintf(
				// translators: placeholder: topic URL.
				esc_html_x( 'Please go back and complete the previous %s.', 'placeholder: topic URL', 'learndash' ),
				'<a class="learndash-link-previous-incomplete" href="' . esc_url( learndash_get_step_permalink( $previous_item->ID, $course_id ) ) . '">' . esc_html( learndash_get_custom_label_lower( 'topic' ) ) . '</a>'
			);
		} else {
			echo sprintf(
				// translators: placeholder: lesson URL.
				esc_html_x( 'Please go back and complete the previous %s.', 'placeholder: lesson URL', 'learndash' ),
				'<a class="learndash-link-previous-incomplete" href="' . esc_url( learndash_get_step_permalink( $previous_item->ID, $course_id ) ) . '">' . esc_html( learndash_get_custom_label_lower( 'lesson' ) ) . '</a>'
			);
		}
	} else {
		echo sprintf(
			// translators: placeholder: lesson.
			esc_html_x( 'Please go back and complete the previous %s.', 'placeholder: lesson', 'learndash' ),
			esc_html( learndash_get_custom_label_lower( 'lesson' ) )
		);
	}
	?>
	</span>
	<br />

<?php elseif ( $lesson_progression_enabled && ! $previous_lesson_completed ) : ?>

	<span id="learndash_complete_prev_lesson">
	<?php
		$previous_item = learndash_get_previous( $post );
	if ( empty( $previous_item ) ) {
		$previous_item = learndash_get_previous( $lesson_post );
	}

	if ( ( ! empty( $previous_item ) ) && ( $previous_item instanceof WP_Post ) ) {
		if ( 'sfwd-quiz' === $previous_item->post_type ) {
			echo sprintf(
				// translators: placeholder: quiz URL.
				esc_html_x( 'Please go back and complete the previous %s.', 'placeholder: quiz URL', 'learndash' ),
				'<a class="learndash-link-previous-incomplete" href="' . esc_url( learndash_get_step_permalink( $previous_item->ID, $course_id ) ) . '">' . esc_html( learndash_get_custom_label_lower( 'quiz' ) ) . '</a>'
			);

		} elseif ( 'sfwd-topic' === $previous_item->post_type ) {
			echo sprintf(
				// translators: placeholder: topic URL.
				esc_html_x( 'Please go back and complete the previous %s.', 'placeholder: topic URL', 'learndash' ),
				'<a class="learndash-link-previous-incomplete" href="' . esc_url( learndash_get_step_permalink( $previous_item->ID, $course_id ) ) . '">' . esc_html( learndash_get_custom_label_lower( 'topic' ) ) . '</a>'
			);
		} else {
			echo sprintf(
				// translators: placeholder: lesson URL.
				esc_html_x( 'Please go back and complete the previous %s.', 'placeholder: lesson URL', 'learndash' ),
				'<a class="learndash-link-previous-incomplete" href="' . esc_url( learndash_get_step_permalink( $previous_item->ID, $course_id ) ) . '">' . esc_html( learndash_get_custom_label_lower( 'lesson' ) ) . '</a>'
			);
		}
	} else {
		// translators: placeholder: lesson.
		echo sprintf( esc_html_x( 'Please go back and complete the previous %s.', 'placeholder: lesson', 'learndash' ), esc_html( learndash_get_custom_label_lower( 'lesson' ) ) );
	}
	?>
	</span>
	<br />

<?php endif; ?>

<?php if ( $show_content ) : ?>
	<?php if ( ( isset( $materials ) ) && ( ! empty( $materials ) ) ) : ?>
		<div id="learndash_topic_materials" class="learndash_topic_materials">
			<h4>
			<?php
			// translators: placeholder: Topic.
			printf( esc_html_x( '%s Materials', 'placeholder: Topic', 'learndash' ), LearnDash_Custom_Label::get_label( 'topic' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Method escapes output
			?>
			</h4>
			<p><?php echo $materials; ?></p>
		</div>
	<?php endif; ?>

	<div class="learndash_content"><?php echo $content; ?></div>

	<?php if ( ! empty( $quizzes ) ) : ?>
		<div id="learndash_quizzes" class="learndash_quizzes">
			<div id="quiz_heading"><span><?php echo LearnDash_Custom_Label::get_label( 'quizzes' ); ?></span><span class="right"><?php esc_html_e( 'Status', 'learndash' ); ?></span></div> <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Method escapes output ?>

			<div id="quiz_list" class="quiz_list">
			<?php foreach ( $quizzes as $quiz ) : ?>
				<div id='post-<?php echo esc_attr( $quiz['post']->ID ); ?>' class='<?php echo esc_attr( $quiz['sample'] ); ?>'>
					<div class="list-count"><?php echo esc_html( $quiz['sno'] ); ?></div>
					<h4>
						<a class='<?php echo esc_attr( $quiz['status'] ); ?>' href='<?php echo esc_url( $quiz['permalink'] ); ?>'><?php echo $quiz['post']->post_title; ?></a>
					</h4>
				</div>
			<?php endforeach; ?>
			</div>
		</div>
	<?php endif; ?>

	<?php if ( ( learndash_lesson_hasassignments( $post ) ) && ( ! empty( $user_id ) ) ) : // cspell:disable-line. ?>
		<?php
			$ret = SFWD_LMS::get_template(
				'learndash_lesson_assignment_uploads_list.php',
				array(
					'course_step_post' => $post,
					'user_id'          => $user_id,
				)
			);
			echo $ret;
		?>
	<?php endif; ?>


	<?php
	/**
	 * Show Mark Complete Button
	 */
	?>
	<?php if ( $all_quizzes_completed && $logged_in && ! empty( $course_id ) ) : ?>
		<?php
		echo '<br />' . learndash_mark_complete(
			$post,
			array(
				'form'   => array(
					'id' => 'sfwd-mark-complete',
				),
				'button' => array(
					'id' => 'learndash_mark_complete_button',
				),
				'timer'  => array(
					'id' => 'learndash_timer',
				),
			)
		);
		?>
	<?php endif; ?>

<?php endif; ?>

<?php
$ret = SFWD_LMS::get_template(
	'learndash_course_steps_navigation.php',
	array(
		'course_id'        => $course_id,
		'course_step_post' => $post,
		'user_id'          => $user_id,
		'course_settings'  => isset( $course_settings ) ? $course_settings : array(),
	)
);
echo $ret;

Filemanager

Name Type Size Permission Actions
images Folder 0755
quiz Folder 0755
course.php File 10.51 KB 0644
course_content_shortcode.php File 6.09 KB 0644
course_details_admin.php File 4.58 KB 0644
course_info_shortcode.php File 7.04 KB 0644
course_list_template.php File 1.02 KB 0644
course_navigation_admin.php File 15.63 KB 0644
course_navigation_switcher_admin.php File 6.32 KB 0644
course_navigation_widget.php File 1.88 KB 0644
course_navigation_widget_rows.php File 10.54 KB 0644
course_progress_rows.php File 8.78 KB 0644
course_progress_widget.php File 518 B 0644
course_registered_rows.php File 797 B 0644
learndash_course_complete_message.php File 902 B 0644
learndash_course_expire_status_message.php File 1.01 KB 0644
learndash_course_inprogress_message.php File 908 B 0644
learndash_course_lesson_not_available.php File 1.84 KB 0644
learndash_course_not_started_message.php File 902 B 0644
learndash_course_points_access_message.php File 1.12 KB 0644
learndash_course_points_user_message.php File 1.42 KB 0644
learndash_course_prerequisites_message.php File 2.53 KB 0644
learndash_course_steps_navigation.php File 1.84 KB 0644
learndash_course_student_message.php File 892 B 0644
learndash_course_visitor_message.php File 835 B 0644
learndash_group_message.php File 810 B 0644
learndash_lesson_assignment_upload_form.php File 3.33 KB 0644
learndash_lesson_assignment_uploads_list.php File 3.96 KB 0644
learndash_lesson_video-rtl.css File 1.89 KB 0644
learndash_lesson_video.css File 1.89 KB 0644
learndash_lesson_video.min-rtl.css File 1.72 KB 0644
learndash_lesson_video.min.css File 1.72 KB 0644
learndash_lesson_video.php File 1.38 KB 0644
learndash_pager-rtl.css File 934 B 0644
learndash_pager.css File 930 B 0644
learndash_pager.js File 14.7 KB 0644
learndash_pager.min-rtl.css File 618 B 0644
learndash_pager.min.css File 615 B 0644
learndash_pager.min.js File 7.28 KB 0644
learndash_pager.php File 4.5 KB 0644
learndash_quiz_front-rtl.css File 14.49 KB 0644
learndash_quiz_front.css File 14.48 KB 0644
learndash_quiz_front.min-rtl.css File 11.8 KB 0644
learndash_quiz_front.min.css File 11.8 KB 0644
learndash_quiz_messages.php File 10.84 KB 0644
learndash_quiz_statistics-rtl.css File 1.88 KB 0644
learndash_quiz_statistics.css File 1.87 KB 0644
learndash_quiz_statistics.min-rtl.css File 1.55 KB 0644
learndash_quiz_statistics.min.css File 1.55 KB 0644
learndash_template_functions.php File 147 B 0644
learndash_template_script.js File 5.69 KB 0644
learndash_template_script.min.js File 3.08 KB 0644
learndash_template_style-rtl.css File 23.24 KB 0644
learndash_template_style.css File 23.15 KB 0644
learndash_template_style.min-rtl.css File 18.83 KB 0644
learndash_template_style.min.css File 18.73 KB 0644
lesson.php File 7.36 KB 0644
profile.php File 11.3 KB 0644
quiz.php File 4.06 KB 0644
quiz_navigation_admin.php File 3.57 KB 0644
quiz_navigation_switcher_admin.php File 3.69 KB 0644
quiz_progress_rows.php File 9.01 KB 0644
quiz_result_categories_email.php File 678 B 0644
topic.php File 9.02 KB 0644
user_groups_shortcode.php File 2.9 KB 0644