Completed
Push — master ( 80c0ca...82d23b )
by Dwain
04:32
created
templates/emails/learner-graded-quiz.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Learner graded quiz email
4
- *
5
- * @author WooThemes
6
- * @package Sensei/Templates/Emails/HTML
7
- * @version 1.6.0
8
- */
3
+						 * Learner graded quiz email
4
+						 *
5
+						 * @author WooThemes
6
+						 * @package Sensei/Templates/Emails/HTML
7
+						 * @version 1.6.0
8
+						 */
9 9
 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
10 10
 
11 11
 <?php
Please login to merge, or discard this patch.
templates/emails/admin-teacher-new-course-created.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@
 block discarded – undo
35 35
 <p style="<?php echo esc_attr( $style_small ); ?>">
36 36
     <?php
37 37
 
38
-    echo __( 'You can review and publish the new course here:  ', 'woothemes-sensei' ) . '<a href="' . esc_url( $sensei_email_data['course_edit_link'] ) . '">'. $sensei_email_data['course_name']. '</a>';
38
+	echo __( 'You can review and publish the new course here:  ', 'woothemes-sensei' ) . '<a href="' . esc_url( $sensei_email_data['course_edit_link'] ) . '">'. $sensei_email_data['course_name']. '</a>';
39 39
 
40
-    ?>
40
+	?>
41 41
 </p>
42 42
 
43 43
 <?php
Please login to merge, or discard this patch.
templates/emails/teacher-new-course-assignment.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@
 block discarded – undo
35 35
 <p style="<?php echo esc_attr( $style_small ); ?>">
36 36
     <?php
37 37
 
38
-    echo __( 'You can edit the assigned course here: ', 'woothemes-sensei' ) . '<a href="' . esc_url( $sensei_email_data['course_edit_link'] ) . '">'. $sensei_email_data['course_name'] . '</a>';
38
+	echo __( 'You can edit the assigned course here: ', 'woothemes-sensei' ) . '<a href="' . esc_url( $sensei_email_data['course_edit_link'] ) . '">'. $sensei_email_data['course_name'] . '</a>';
39 39
 
40
-    ?>
40
+	?>
41 41
 </p>
42 42
 
43 43
 <?php
Please login to merge, or discard this patch.
templates/emails/footer.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,14 +15,14 @@
 block discarded – undo
15 15
 // Load colours
16 16
 $base = '#557da1';
17 17
 if( isset( Sensei()->settings->settings['email_base_color'] ) && '' != Sensei()->settings->settings['email_base_color'] ) {
18
-    $base = Sensei()->settings->settings['email_base_color'];
18
+	$base = Sensei()->settings->settings['email_base_color'];
19 19
 }
20 20
 
21 21
 $base_lighter_40 = sensei_hex_lighter( $base, 40 );
22 22
 
23 23
 $footer_text = sprintf( __( '%1$s - Powered by Sensei', 'woothemes-sensei' ), get_bloginfo( 'name' ) );
24 24
 if( isset( Sensei()->settings->settings['email_footer_text'] ) ) {
25
-    $footer_text = Sensei()->settings->settings['email_footer_text'];
25
+	$footer_text = Sensei()->settings->settings['email_footer_text'];
26 26
 }
27 27
 
28 28
 // For gmail compatibility, including CSS styles in head/body are stripped out therefore styles need to be inline. These variables contain rules which are added to the template inline.
Please login to merge, or discard this patch.
templates/single-course/lessons.php 1 patch
Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -16,75 +16,75 @@  discard block
 block discarded – undo
16 16
 
17 17
     <?php
18 18
 
19
-        /**
20
-         * Actions just before the sensei single course lessons loop begins
21
-         *
22
-         * @hooked WooThemes_Sensei_Course::load_single_course_lessons_query
23
-         * @since 1.9.0
24
-         */
25
-        do_action( 'sensei_single_course_lessons_before' );
19
+		/**
20
+		 * Actions just before the sensei single course lessons loop begins
21
+		 *
22
+		 * @hooked WooThemes_Sensei_Course::load_single_course_lessons_query
23
+		 * @since 1.9.0
24
+		 */
25
+		do_action( 'sensei_single_course_lessons_before' );
26 26
 
27
-    ?>
27
+	?>
28 28
 
29 29
     <?php
30 30
 
31
-    //lessons loaded into loop in the sensei_single_course_lessons_before hook
32
-    if( have_posts() ):
31
+	//lessons loaded into loop in the sensei_single_course_lessons_before hook
32
+	if( have_posts() ):
33 33
 
34
-        // start course lessons loop
35
-        while ( have_posts() ): the_post();  ?>
34
+		// start course lessons loop
35
+		while ( have_posts() ): the_post();  ?>
36 36
 
37 37
             <article <?php post_class(); ?> >
38 38
 
39 39
                 <?php
40 40
 
41
-                    /**
42
-                     * The hook is inside the course lesson on the single course. It fires
43
-                     * for each lesson. It is just before the lesson excerpt.
44
-                     *
45
-                     * @since 1.9.0
46
-                     *
47
-                     * @param $lessons_id
48
-                     *
49
-                     * @hooked WooThemes_Sensei_Lesson::the_lesson_meta -  5
50
-                     * @hooked WooThemes_Sensei_Lesson::the_lesson_thumbnail - 8
51
-                     *
52
-                     */
53
-                    do_action( 'sensei_single_course_inside_before_lesson', get_the_ID() );
54
-
55
-                ?>
41
+					/**
42
+					 * The hook is inside the course lesson on the single course. It fires
43
+					 * for each lesson. It is just before the lesson excerpt.
44
+					 *
45
+					 * @since 1.9.0
46
+					 *
47
+					 * @param $lessons_id
48
+					 *
49
+					 * @hooked WooThemes_Sensei_Lesson::the_lesson_meta -  5
50
+					 * @hooked WooThemes_Sensei_Lesson::the_lesson_thumbnail - 8
51
+					 *
52
+					 */
53
+					do_action( 'sensei_single_course_inside_before_lesson', get_the_ID() );
54
+
55
+				?>
56 56
 
57 57
                 <section class="entry">
58 58
 
59 59
                     <?php
60
-                    /**
61
-                     * Output all course lessons. If none found for this course
62
-                     * a notice will be displayed. What is displayed
63
-                     * is manipulated via a
64
-                     */
65
-                    the_excerpt();
66
-                    ?>
60
+					/**
61
+					 * Output all course lessons. If none found for this course
62
+					 * a notice will be displayed. What is displayed
63
+					 * is manipulated via a
64
+					 */
65
+					the_excerpt();
66
+					?>
67 67
 
68 68
                 </section>
69 69
 
70 70
                 <?php
71 71
 
72
-                    /**
73
-                     * The hook is inside the course lesson on the single course. It is just before the lesson closing markup.
74
-                     * It fires for each lesson.
75
-                     *
76
-                     * @since 1.9.0
77
-                     */
78
-                    do_action( 'sensei_single_course_inside_after_lesson', get_the_ID() );
72
+					/**
73
+					 * The hook is inside the course lesson on the single course. It is just before the lesson closing markup.
74
+					 * It fires for each lesson.
75
+					 *
76
+					 * @since 1.9.0
77
+					 */
78
+					do_action( 'sensei_single_course_inside_after_lesson', get_the_ID() );
79 79
 
80
-                ?>
80
+				?>
81 81
 
82 82
             </article>
83 83
 
84 84
         <?php
85
-        // end course lessons loop
86
-        endwhile;
87
-        ?>
85
+		// end course lessons loop
86
+		endwhile;
87
+		?>
88 88
 
89 89
     <?php else: ?>
90 90
 
@@ -94,15 +94,15 @@  discard block
 block discarded – undo
94 94
 
95 95
     <?php
96 96
 
97
-        /**
98
-         * Actions just before the sensei single course lessons loop begins
99
-         *
100
-         * @hooked WooThemes_Sensei_Course::reset_single_course_query
101
-         *
102
-         * @since 1.9.0
103
-         */
104
-        do_action( 'sensei_single_course_lessons_after' );
97
+		/**
98
+		 * Actions just before the sensei single course lessons loop begins
99
+		 *
100
+		 * @hooked WooThemes_Sensei_Course::reset_single_course_query
101
+		 *
102
+		 * @since 1.9.0
103
+		 */
104
+		do_action( 'sensei_single_course_lessons_after' );
105 105
 
106
-    ?>
106
+	?>
107 107
 
108 108
 </section>
Please login to merge, or discard this patch.
templates/single-course.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -17,21 +17,21 @@  discard block
 block discarded – undo
17 17
 
18 18
     <?php
19 19
 
20
-    /**
21
-     * Hook inside the single course post above the content
22
-     *
23
-     * @since 1.9.0
24
-     *
25
-     * @hooked Sensei()->frontend->sensei_course_start     -  10
26
-     * @hooked Sensei_Course::the_title                    -  10
27
-     * @hooked Sensei_WC::course_in_cart_message           -  20
28
-     * @hooked Sensei_Course::the_course_enrolment_actions -  30
29
-     * @hooked Sensei()->message->send_message_link        -  35
30
-     * @hooked Sensei_Course::the_course_video             -  40
31
-     */
32
-    do_action( 'sensei_single_course_content_inside_before' );
33
-
34
-    ?>
20
+	/**
21
+	 * Hook inside the single course post above the content
22
+	 *
23
+	 * @since 1.9.0
24
+	 *
25
+	 * @hooked Sensei()->frontend->sensei_course_start     -  10
26
+	 * @hooked Sensei_Course::the_title                    -  10
27
+	 * @hooked Sensei_WC::course_in_cart_message           -  20
28
+	 * @hooked Sensei_Course::the_course_enrolment_actions -  30
29
+	 * @hooked Sensei()->message->send_message_link        -  35
30
+	 * @hooked Sensei_Course::the_course_video             -  40
31
+	 */
32
+	do_action( 'sensei_single_course_content_inside_before' );
33
+
34
+	?>
35 35
 
36 36
     <section class="entry fix">
37 37
 
@@ -41,17 +41,17 @@  discard block
 block discarded – undo
41 41
 
42 42
     <?php
43 43
 
44
-    /**
45
-     * Hook inside the single course post above the content
46
-     *
47
-     * @since 1.9.0
48
-     *
49
-     * @hooked
50
-     *
51
-     */
52
-    do_action( 'sensei_single_course_content_inside_after' );
53
-
54
-    ?>
44
+	/**
45
+	 * Hook inside the single course post above the content
46
+	 *
47
+	 * @since 1.9.0
48
+	 *
49
+	 * @hooked
50
+	 *
51
+	 */
52
+	do_action( 'sensei_single_course_content_inside_after' );
53
+
54
+	?>
55 55
 </article><!-- .post .single-course -->
56 56
 
57 57
 <?php get_sensei_footer(); ?>
58 58
\ No newline at end of file
Please login to merge, or discard this patch.
templates/archive-course.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -1,33 +1,33 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The Template for displaying course archives, including the course page template.
4
- *
5
- * Override this template by copying it to your_theme/sensei/archive-course.php
6
- *
7
- * @author 		Automattic
8
- * @package 	Sensei
9
- * @category    Templates
10
- * @version     1.9.0
11
- */
3
+	 * The Template for displaying course archives, including the course page template.
4
+	 *
5
+	 * Override this template by copying it to your_theme/sensei/archive-course.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();  ?>
15 15
 
16 16
     <?php
17 17
 
18
-        /**
19
-         * This action before course archive loop. This hook fires within the archive-course.php
20
-         * It fires even if the current archive has no posts.
21
-         *
22
-         * @since 1.9.0
23
-         *
24
-         * @hooked Sensei_Course::course_archive_sorting 20
25
-         * @hooked Sensei_Course::course_archive_filters 20
26
-         * @hooked Sensei_Templates::deprecated_archive_hook 80
27
-         */
28
-        do_action( 'sensei_archive_before_course_loop' );
18
+		/**
19
+		 * This action before course archive loop. This hook fires within the archive-course.php
20
+		 * It fires even if the current archive has no posts.
21
+		 *
22
+		 * @since 1.9.0
23
+		 *
24
+		 * @hooked Sensei_Course::course_archive_sorting 20
25
+		 * @hooked Sensei_Course::course_archive_filters 20
26
+		 * @hooked Sensei_Templates::deprecated_archive_hook 80
27
+		 */
28
+		do_action( 'sensei_archive_before_course_loop' );
29 29
 
30
-    ?>
30
+	?>
31 31
 
32 32
     <?php if ( have_posts() ): ?>
33 33
 
@@ -41,14 +41,14 @@  discard block
 block discarded – undo
41 41
 
42 42
     <?php
43 43
 
44
-        /**
45
-         * This action runs after including the course archive loop. This hook fires within the archive-course.php
46
-         * It fires even if the current archive has no posts.
47
-         *
48
-         * @since 1.9.0
49
-         */
50
-        do_action( 'sensei_archive_after_course_loop' );
44
+		/**
45
+		 * This action runs after including the course archive loop. This hook fires within the archive-course.php
46
+		 * It fires even if the current archive has no posts.
47
+		 *
48
+		 * @since 1.9.0
49
+		 */
50
+		do_action( 'sensei_archive_after_course_loop' );
51 51
 
52
-    ?>
52
+	?>
53 53
 
54 54
 <?php get_sensei_footer(); ?>
Please login to merge, or discard this patch.
templates/content-message.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 if ( ! defined( 'ABSPATH' ) ) exit;
3 3
 /**
4
- * Content-message.php template file
5
- *
6
- * responsible for content on archive like pages. Only shows the message excerpt.
7
- *
8
- * For single message content please see single-message.php
9
- *
10
- * @author 		Automattic
11
- * @package 	Sensei
12
- * @category    Templates
13
- * @version     1.9.0
14
- */
4
+	 * Content-message.php template file
5
+	 *
6
+	 * responsible for content on archive like pages. Only shows the message excerpt.
7
+	 *
8
+	 * For single message content please see single-message.php
9
+	 *
10
+	 * @author 		Automattic
11
+	 * @package 	Sensei
12
+	 * @category    Templates
13
+	 * @version     1.9.0
14
+	 */
15 15
 ?>
16 16
 
17 17
 <article <?php post_class( array( 'post','sensei_message'), get_the_ID() ); ?>>
@@ -19,31 +19,31 @@  discard block
 block discarded – undo
19 19
     <section class="message-content">
20 20
 
21 21
         <?php
22
-        /**
23
-         * action that runs before the sensei {post_type} content. It runs inside the sensei
24
-         * content.php template. This applies to the specific post type that you've targeted.
25
-         *
26
-         * @since 1.9
27
-         * @param string $post_id
28
-         *
29
-         * @hooked Sensei_Messages::the_message_title - 10
30
-         * @hooked Sensei_Messages::the_message_sender - 20
31
-         */
32
-        do_action( 'sensei_content_message_before', get_the_ID() );
33
-        ?>
22
+		/**
23
+		 * action that runs before the sensei {post_type} content. It runs inside the sensei
24
+		 * content.php template. This applies to the specific post type that you've targeted.
25
+		 *
26
+		 * @since 1.9
27
+		 * @param string $post_id
28
+		 *
29
+		 * @hooked Sensei_Messages::the_message_title - 10
30
+		 * @hooked Sensei_Messages::the_message_sender - 20
31
+		 */
32
+		do_action( 'sensei_content_message_before', get_the_ID() );
33
+		?>
34 34
 
35 35
         <section class="entry">
36 36
 
37 37
             <?php
38
-            /**
39
-             * Fires just before the post content in the content-message.php file.
40
-             *
41
-             * @since 1.9
42
-             *
43
-             * @param string $post_id
44
-             */
45
-            do_action('sensei_content_message_inside_before', get_the_ID());
46
-            ?>
38
+			/**
39
+			 * Fires just before the post content in the content-message.php file.
40
+			 *
41
+			 * @since 1.9
42
+			 *
43
+			 * @param string $post_id
44
+			 */
45
+			do_action('sensei_content_message_inside_before', get_the_ID());
46
+			?>
47 47
 
48 48
             <p class="message-excerpt">
49 49
 
@@ -52,28 +52,28 @@  discard block
 block discarded – undo
52 52
             </p>
53 53
 
54 54
             <?php
55
-            /**
56
-             * Fires just after the post content in the message-content.php file.
57
-             *
58
-             * @since 1.9
59
-             *
60
-             * @param string $post_id
61
-             */
62
-            do_action('sensei_content_message_inside_after', get_the_ID());
63
-            ?>
55
+			/**
56
+			 * Fires just after the post content in the message-content.php file.
57
+			 *
58
+			 * @since 1.9
59
+			 *
60
+			 * @param string $post_id
61
+			 */
62
+			do_action('sensei_content_message_inside_after', get_the_ID());
63
+			?>
64 64
 
65 65
         </section> <!-- section .entry -->
66 66
 
67 67
         <?php
68
-        /**
69
-         * This action runs after the sensei message content. It runs inside the sensei
70
-         * message-content.php template.
71
-         *
72
-         * @since 1.9
73
-         * @param string $post_id
74
-         */
75
-        do_action( 'sensei_content_message_after', get_the_ID() );
76
-        ?>
68
+		/**
69
+		 * This action runs after the sensei message content. It runs inside the sensei
70
+		 * message-content.php template.
71
+		 *
72
+		 * @since 1.9
73
+		 * @param string $post_id
74
+		 */
75
+		do_action( 'sensei_content_message_after', get_the_ID() );
76
+		?>
77 77
 
78 78
     </section> <!-- article .message-content -->
79 79
 
Please login to merge, or discard this patch.
templates/single-quiz/question_type-multiple-choice.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 if ( ! defined( 'ABSPATH' ) ) exit;
3 3
 /**
4
- * The Template for displaying Multiple Choice Questions.
5
- *
6
- * @author 		Automattic
7
- * @package 	Sensei
8
- * @category    Templates
9
- * @version     1.9.0
10
- */
4
+			 * The Template for displaying Multiple Choice Questions.
5
+			 *
6
+			 * @author 		Automattic
7
+			 * @package 	Sensei
8
+			 * @category    Templates
9
+			 * @version     1.9.0
10
+			 */
11 11
 ?>
12 12
 
13 13
 <?php
14 14
 
15
-    /**
16
-     * Get the question data with the current quiz id
17
-     * All data is loaded in this array to keep the template clean.
18
-     */
19
-    $question_data = WooThemes_Sensei_Question::get_template_data( sensei_get_the_question_id(), get_the_ID() );
15
+	/**
16
+	 * Get the question data with the current quiz id
17
+	 * All data is loaded in this array to keep the template clean.
18
+	 */
19
+	$question_data = WooThemes_Sensei_Question::get_template_data( sensei_get_the_question_id(), get_the_ID() );
20 20
 
21 21
 ?>
22 22
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 <?php
26 26
 $count = 0;
27 27
 foreach( $question_data[ 'answer_options' ] as $id => $option ) {
28
-    ?>
28
+	?>
29 29
 
30 30
     <li class="<?php esc_attr_e( $option[ 'option_class' ] ); ?>">
31 31
         <input type="<?php echo $option[ 'type' ]; ?>"
Please login to merge, or discard this patch.