// Exit if accessed directly } get_header(); ?> <?php do_action('learn_press_before_main_content'); ?> <?php while (have_posts()) { the_post(); ?> <?php learn_press_get_template_part('content', 'single-course'); ?> <!-- if ( comments_open() || get_comments_number() ) : comments_template(); endif;--> <?php } ?> <?php do_action('learn_press_after_main_content'); ?> <?php get_footer();
do_action('learn_press_before_the_title'); the_title('<h1 class="entry-title">', '</h1>'); do_action('learn_press_after_the_title'); ?> </header> <!-- .entry-header --> <?php do_action('learn_press_before_course_content'); ?> <div class="entry-content"> <?php do_action('learn_press_before_the_content'); if (learn_press_is_enrolled_course()) { learn_press_get_template_part('course_content', 'learning_page'); } else { learn_press_get_template_part('course_content', 'landing_page'); } do_action('learn_press_after_the_content'); ?> </div> <!-- .entry-content --> <?php do_action('learn_press_before_course_footer'); ?> <footer class="entry-footer"> <?php edit_post_link(__('Edit', 'learn_press'), '<span class="edit-link">', '</span>'); ?> </footer> <!-- .entry-footer -->
<?php /** * Template for displaying content of single quiz */ if (!defined('ABSPATH')) { exit; // Exit if accessed directly } global $assignment; get_header(); do_action('learn_press_before_main_assignment_content'); while (have_posts()) { the_post(); ?> <?php learn_press_get_template_part('content', 'assignment'); } do_action('learn_press_after_main_assignment_content'); ?> <?php get_footer();
<?php /** * Template for displaying content of single quiz */ if (!defined('ABSPATH')) { exit; // Exit if accessed directly } global $quiz; get_header(); do_action('learn_press_before_main_quiz_content'); while (have_posts()) { the_post(); ?> <?php learn_press_get_template_part('content', 'quiz'); } do_action('learn_press_after_main_quiz_content'); ?> <?php get_footer();
/** * Display all questions in a quiz * * @author TuNN * * @param int $quiz_id * * @return void */ function learn_press_single_quiz_list_questions($quiz_id = null) { learn_press_get_template_part('single', 'quiz'); }