@@ -1,14 +1,14 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The Template for displaying all Quiz Questions. |
|
| 4 | - * |
|
| 5 | - * Override this template by copying it to yourtheme/sensei/single-quiz.php |
|
| 6 | - * |
|
| 7 | - * @author Automattic |
|
| 8 | - * @package Sensei |
|
| 9 | - * @category Templates |
|
| 10 | - * @version 1.9.0 |
|
| 11 | - */ |
|
| 3 | + * The Template for displaying all Quiz Questions. |
|
| 4 | + * |
|
| 5 | + * Override this template by copying it to yourtheme/sensei/single-quiz.php |
|
| 6 | + * |
|
| 7 | + * @author Automattic |
|
| 8 | + * @package Sensei |
|
| 9 | + * @category Templates |
|
| 10 | + * @version 1.9.0 |
|
| 11 | + */ |
|
| 12 | 12 | ?> |
| 13 | 13 | |
| 14 | 14 | <?php get_sensei_header(); ?> |
@@ -17,19 +17,19 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | <?php |
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * Hook inside the single quiz post above the content |
|
| 22 | - * |
|
| 23 | - * @since 1.9.0 |
|
| 24 | - * |
|
| 25 | - * @hooked Sensei_Quiz::the_title - 20 |
|
| 26 | - * @hooked Sensei_Quiz::the_user_status_message - 40 |
|
| 27 | - * @param integer $quiz_id |
|
| 28 | - * |
|
| 29 | - */ |
|
| 30 | - do_action( 'sensei_single_quiz_content_inside_before', get_the_ID() ); |
|
| 20 | + /** |
|
| 21 | + * Hook inside the single quiz post above the content |
|
| 22 | + * |
|
| 23 | + * @since 1.9.0 |
|
| 24 | + * |
|
| 25 | + * @hooked Sensei_Quiz::the_title - 20 |
|
| 26 | + * @hooked Sensei_Quiz::the_user_status_message - 40 |
|
| 27 | + * @param integer $quiz_id |
|
| 28 | + * |
|
| 29 | + */ |
|
| 30 | + do_action( 'sensei_single_quiz_content_inside_before', get_the_ID() ); |
|
| 31 | 31 | |
| 32 | - ?> |
|
| 32 | + ?> |
|
| 33 | 33 | |
| 34 | 34 | <?php if ( sensei_can_user_view_lesson() ) : ?> |
| 35 | 35 | |
@@ -41,16 +41,16 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | <?php |
| 43 | 43 | |
| 44 | - /** |
|
| 45 | - * Action inside before the question content on single-quiz page |
|
| 46 | - * |
|
| 47 | - * @hooked WooThemes_Sensei_Quiz::the_user_status_message - 10 |
|
| 48 | - * |
|
| 49 | - * @param string $the_quiz_id |
|
| 50 | - */ |
|
| 51 | - do_action( 'sensei_single_quiz_questions_before', get_the_id() ); |
|
| 44 | + /** |
|
| 45 | + * Action inside before the question content on single-quiz page |
|
| 46 | + * |
|
| 47 | + * @hooked WooThemes_Sensei_Quiz::the_user_status_message - 10 |
|
| 48 | + * |
|
| 49 | + * @param string $the_quiz_id |
|
| 50 | + */ |
|
| 51 | + do_action( 'sensei_single_quiz_questions_before', get_the_id() ); |
|
| 52 | 52 | |
| 53 | - ?> |
|
| 53 | + ?> |
|
| 54 | 54 | |
| 55 | 55 | |
| 56 | 56 | |
@@ -62,35 +62,35 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | <?php |
| 64 | 64 | |
| 65 | - /** |
|
| 66 | - * Action inside before the question content on single-quiz page |
|
| 67 | - * |
|
| 68 | - * @hooked WooThemes_Sensei_Question::the_question_title - 10 |
|
| 69 | - * @hooked WooThemes_Sensei_Question::the_question_description - 20 |
|
| 70 | - * @hooked WooThemes_Sensei_Question::the_question_media - 30 |
|
| 71 | - * @hooked WooThemes_Sensei_Question::the_question_hidden_field - 40 |
|
| 72 | - * |
|
| 73 | - * @since 1.9.0 |
|
| 74 | - * @param string $the_question_id |
|
| 75 | - */ |
|
| 76 | - do_action( 'sensei_quiz_question_inside_before', sensei_get_the_question_id() ); |
|
| 77 | - |
|
| 78 | - ?> |
|
| 65 | + /** |
|
| 66 | + * Action inside before the question content on single-quiz page |
|
| 67 | + * |
|
| 68 | + * @hooked WooThemes_Sensei_Question::the_question_title - 10 |
|
| 69 | + * @hooked WooThemes_Sensei_Question::the_question_description - 20 |
|
| 70 | + * @hooked WooThemes_Sensei_Question::the_question_media - 30 |
|
| 71 | + * @hooked WooThemes_Sensei_Question::the_question_hidden_field - 40 |
|
| 72 | + * |
|
| 73 | + * @since 1.9.0 |
|
| 74 | + * @param string $the_question_id |
|
| 75 | + */ |
|
| 76 | + do_action( 'sensei_quiz_question_inside_before', sensei_get_the_question_id() ); |
|
| 77 | + |
|
| 78 | + ?> |
|
| 79 | 79 | |
| 80 | 80 | <?php sensei_the_question_content(); ?> |
| 81 | 81 | |
| 82 | 82 | <?php |
| 83 | 83 | |
| 84 | - /** |
|
| 85 | - * Action inside before the question content on single-quiz page |
|
| 86 | - * |
|
| 87 | - * @hooked WooThemes_Sensei_Question::answer_feedback_notes |
|
| 88 | - * |
|
| 89 | - * @param string $the_question_id |
|
| 90 | - */ |
|
| 91 | - do_action( 'sensei_quiz_question_inside_after', sensei_get_the_question_id() ); |
|
| 84 | + /** |
|
| 85 | + * Action inside before the question content on single-quiz page |
|
| 86 | + * |
|
| 87 | + * @hooked WooThemes_Sensei_Question::answer_feedback_notes |
|
| 88 | + * |
|
| 89 | + * @param string $the_question_id |
|
| 90 | + */ |
|
| 91 | + do_action( 'sensei_quiz_question_inside_after', sensei_get_the_question_id() ); |
|
| 92 | 92 | |
| 93 | - ?> |
|
| 93 | + ?> |
|
| 94 | 94 | |
| 95 | 95 | </li> |
| 96 | 96 | |
@@ -100,14 +100,14 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | <?php |
| 102 | 102 | |
| 103 | - /** |
|
| 104 | - * Action inside before the question content on single-quiz page |
|
| 105 | - * |
|
| 106 | - * @param string $the_quiz_id |
|
| 107 | - */ |
|
| 108 | - do_action( 'sensei_single_quiz_questions_after', get_the_id() ); |
|
| 103 | + /** |
|
| 104 | + * Action inside before the question content on single-quiz page |
|
| 105 | + * |
|
| 106 | + * @param string $the_quiz_id |
|
| 107 | + */ |
|
| 108 | + do_action( 'sensei_single_quiz_questions_after', get_the_id() ); |
|
| 109 | 109 | |
| 110 | - ?> |
|
| 110 | + ?> |
|
| 111 | 111 | |
| 112 | 112 | </form> |
| 113 | 113 | <?php else: ?> |
@@ -118,9 +118,9 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | |
| 120 | 120 | <?php |
| 121 | - $quiz_lesson = Sensei()->quiz->data->quiz_lesson; |
|
| 122 | - do_action( 'sensei_quiz_back_link', $quiz_lesson ); |
|
| 123 | - ?> |
|
| 121 | + $quiz_lesson = Sensei()->quiz->data->quiz_lesson; |
|
| 122 | + do_action( 'sensei_quiz_back_link', $quiz_lesson ); |
|
| 123 | + ?> |
|
| 124 | 124 | |
| 125 | 125 | </section> |
| 126 | 126 | |
@@ -128,17 +128,17 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | <?php |
| 130 | 130 | |
| 131 | - /** |
|
| 132 | - * Hook inside the single quiz post above the content |
|
| 133 | - * |
|
| 134 | - * @since 1.9.0 |
|
| 135 | - * |
|
| 136 | - * @param integer $quiz_id |
|
| 137 | - * |
|
| 138 | - */ |
|
| 139 | - do_action( 'sensei_single_quiz_content_inside_after', get_the_ID() ); |
|
| 140 | - |
|
| 141 | - ?> |
|
| 131 | + /** |
|
| 132 | + * Hook inside the single quiz post above the content |
|
| 133 | + * |
|
| 134 | + * @since 1.9.0 |
|
| 135 | + * |
|
| 136 | + * @param integer $quiz_id |
|
| 137 | + * |
|
| 138 | + */ |
|
| 139 | + do_action( 'sensei_single_quiz_content_inside_after', get_the_ID() ); |
|
| 140 | + |
|
| 141 | + ?> |
|
| 142 | 142 | |
| 143 | 143 | </article><!-- .quiz --> |
| 144 | 144 | |