Completed
Push — master ( da5a3b...76404c )
by Dwain
26:58 queued 04:04
created
templates/content-lesson.php 3 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined('ABSPATH')) exit;
3 3
 /**
4 4
  * Content-lesson.php template file
5 5
  *
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
  */
15 15
 ?>
16 16
 
17
-<article <?php post_class( get_the_ID() ); ?> >
17
+<article <?php post_class(get_the_ID()); ?> >
18 18
 
19 19
     <section class="lesson-content">
20 20
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
          * @since 1.9.0
28 28
          * @param string $post_id
29 29
          */
30
-        do_action( 'sensei_content_lesson_before', get_the_ID() );
30
+        do_action('sensei_content_lesson_before', get_the_ID());
31 31
         ?>
32 32
 
33 33
         <section class="entry">
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
          * @since 1.9.0
74 74
          * @param string $post_id
75 75
          */
76
-        do_action( 'sensei_content_lesson_after', get_the_ID() );
76
+        do_action('sensei_content_lesson_after', get_the_ID());
77 77
         ?>
78 78
 
79 79
     </section> <!-- article .lesson-content -->
80 80
 
81
-</article> <!-- article .(<?php esc_attr_e( join( ' ', get_post_class( array( 'lesson', 'post' ) ) ) ); ?>  -->
82 81
\ No newline at end of file
82
+</article> <!-- article .(<?php esc_attr_e(join(' ', get_post_class(array('lesson', 'post')))); ?>  -->
83 83
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 /**
4 6
  * The Template for displaying the my course page data.
5 7
  *
Please login to merge, or discard this patch.
Indentation   +51 added lines, -51 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-lesson.php template file
5
- *
6
- * responsible for content on archive like pages. Only shows the lesson excerpt.
7
- *
8
- * For single lesson content please see single-lesson.php
9
- *
10
- * @author 		Automattic
11
- * @package 	Sensei
12
- * @category    Templates
13
- * @version     1.9.0
14
- */
4
+	 * Content-lesson.php template file
5
+	 *
6
+	 * responsible for content on archive like pages. Only shows the lesson excerpt.
7
+	 *
8
+	 * For single lesson content please see single-lesson.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( get_the_ID() ); ?> >
@@ -19,32 +19,32 @@  discard block
 block discarded – undo
19 19
     <section class="lesson-content">
20 20
 
21 21
         <?php
22
-        /**
23
-         * sensei_content_lesson_before
24
-         * action that runs before the sensei {post_type} content. It runs inside the sensei
25
-         * content.php template. This applies to the specific post type that you've targeted.
26
-         *
27
-         * @since 1.9.0
28
-         * @param string $lesson_id
29
-         */
30
-        do_action( 'sensei_content_lesson_before', get_the_ID() );
31
-        ?>
22
+		/**
23
+		 * sensei_content_lesson_before
24
+		 * action that runs before the sensei {post_type} content. It runs inside the sensei
25
+		 * content.php template. This applies to the specific post type that you've targeted.
26
+		 *
27
+		 * @since 1.9.0
28
+		 * @param string $lesson_id
29
+		 */
30
+		do_action( 'sensei_content_lesson_before', get_the_ID() );
31
+		?>
32 32
 
33 33
         <section class="entry">
34 34
 
35 35
             <?php
36
-            /**
37
-             * Fires just before the post content in the content-lesson.php file.
38
-             *
39
-             * @since 1.9.0
40
-             *
41
-             * @hooked Sensei()->modules->module_archive_description -  11
42
-             * @hooked Sensei_Lesson::the_lesson_meta                -  20
43
-             *
44
-             * @param string $lesson_id
45
-             */
46
-            do_action('sensei_content_lesson_inside_before', get_the_ID());
47
-            ?>
36
+			/**
37
+			 * Fires just before the post content in the content-lesson.php file.
38
+			 *
39
+			 * @since 1.9.0
40
+			 *
41
+			 * @hooked Sensei()->modules->module_archive_description -  11
42
+			 * @hooked Sensei_Lesson::the_lesson_meta                -  20
43
+			 *
44
+			 * @param string $lesson_id
45
+			 */
46
+			do_action('sensei_content_lesson_inside_before', get_the_ID());
47
+			?>
48 48
 
49 49
             <p class="lesson-excerpt">
50 50
 
@@ -53,28 +53,28 @@  discard block
 block discarded – undo
53 53
             </p>
54 54
 
55 55
             <?php
56
-            /**
57
-             * Fires just after the post content in the lesson-content.php file.
58
-             *
59
-             * @since 1.9.0
60
-             *
61
-             * @param string $lesson_id
62
-             */
63
-            do_action('sensei_content_lesson_inside_after', get_the_ID());
64
-            ?>
56
+			/**
57
+			 * Fires just after the post content in the lesson-content.php file.
58
+			 *
59
+			 * @since 1.9.0
60
+			 *
61
+			 * @param string $lesson_id
62
+			 */
63
+			do_action('sensei_content_lesson_inside_after', get_the_ID());
64
+			?>
65 65
 
66 66
         </section> <!-- section .entry -->
67 67
 
68 68
         <?php
69
-        /**
70
-         * This action runs after the sensei lesson content. It runs inside the sensei
71
-         * lesson-content.php template.
72
-         *
73
-         * @since 1.9.0
74
-         * @param string $lesson_id
75
-         */
76
-        do_action( 'sensei_content_lesson_after', get_the_ID() );
77
-        ?>
69
+		/**
70
+		 * This action runs after the sensei lesson content. It runs inside the sensei
71
+		 * lesson-content.php template.
72
+		 *
73
+		 * @since 1.9.0
74
+		 * @param string $lesson_id
75
+		 */
76
+		do_action( 'sensei_content_lesson_after', get_the_ID() );
77
+		?>
78 78
 
79 79
     </section> <!-- article .lesson-content -->
80 80
 
Please login to merge, or discard this patch.
templates/teacher-archive.php 3 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 ?>
14 14
 
15
-<?php  get_sensei_header();  ?>
15
+<?php  get_sensei_header(); ?>
16 16
 
17 17
     <?php
18 18
 
@@ -23,17 +23,17 @@  discard block
 block discarded – undo
23 23
          * @since 1.9.0
24 24
          *
25 25
          */
26
-        do_action( 'sensei_teacher_archive_course_loop_before' );
26
+        do_action('sensei_teacher_archive_course_loop_before');
27 27
 
28 28
     ?>
29 29
 
30
-    <?php if ( have_posts() ): ?>
30
+    <?php if (have_posts()): ?>
31 31
 
32
-        <?php sensei_load_template( 'loop-course.php' ); ?>
32
+        <?php sensei_load_template('loop-course.php'); ?>
33 33
 
34 34
     <?php else: ?>
35 35
 
36
-        <p><?php _e( 'There are no courses for this teacher.', 'woothemes-sensei' ); ?></p>
36
+        <p><?php _e('There are no courses for this teacher.', 'woothemes-sensei'); ?></p>
37 37
 
38 38
     <?php  endif; // End If Statement ?>
39 39
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
          *
46 46
          * @since 1.9.0
47 47
          */
48
-        do_action( 'sensei_teacher_archive_course_loop_after' );
48
+        do_action('sensei_teacher_archive_course_loop_after');
49 49
 
50 50
     ?>
51 51
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,12 @@
 block discarded – undo
31 31
 
32 32
         <?php sensei_load_template( 'loop-course.php' ); ?>
33 33
 
34
-    <?php else: ?>
34
+    <?php else {
35
+	: ?>
35 36
 
36
-        <p><?php _e( 'There are no courses for this teacher.', 'woothemes-sensei' ); ?></p>
37
+        <p><?php _e( 'There are no courses for this teacher.', 'woothemes-sensei' );
38
+}
39
+?></p>
37 40
 
38 41
     <?php  endif; // End If Statement ?>
39 42
 
Please login to merge, or discard this patch.
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -16,16 +16,16 @@  discard block
 block discarded – undo
16 16
 
17 17
     <?php
18 18
 
19
-        /**
20
-         * This action before teacher courses loop. This hook fires within the archive-course.php
21
-         * It fires even if the current archive has no posts.
22
-         *
23
-         * @since 1.9.0
24
-         *
25
-         */
26
-        do_action( 'sensei_teacher_archive_course_loop_before' );
19
+		/**
20
+		 * This action before teacher courses loop. This hook fires within the archive-course.php
21
+		 * It fires even if the current archive has no posts.
22
+		 *
23
+		 * @since 1.9.0
24
+		 *
25
+		 */
26
+		do_action( 'sensei_teacher_archive_course_loop_before' );
27 27
 
28
-    ?>
28
+	?>
29 29
 
30 30
     <?php if ( have_posts() ): ?>
31 31
 
@@ -39,14 +39,14 @@  discard block
 block discarded – undo
39 39
 
40 40
     <?php
41 41
 
42
-        /**
43
-         * This action runs after including the teacher archive loop. This hook fires within the teacher-archive.php
44
-         * It fires even if the current archive has no posts.
45
-         *
46
-         * @since 1.9.0
47
-         */
48
-        do_action( 'sensei_teacher_archive_course_loop_after' );
42
+		/**
43
+		 * This action runs after including the teacher archive loop. This hook fires within the teacher-archive.php
44
+		 * It fires even if the current archive has no posts.
45
+		 *
46
+		 * @since 1.9.0
47
+		 */
48
+		do_action( 'sensei_teacher_archive_course_loop_after' );
49 49
 
50
-    ?>
50
+	?>
51 51
 
52 52
 <?php get_sensei_footer(); ?>
Please login to merge, or discard this patch.
templates/archive-lesson.php 3 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -1,29 +1,29 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The Template for displaying lesson archives, including the lesson page template.
4
- * This template also handels the lesson modules taxonomy and the lessons_tag taxonomy.
5
- *
6
- * Override this template by copying it to your_theme/sensei/archive-lesson.php
7
- *
8
- * @author 		Automattic
9
- * @package 	Sensei
10
- * @category    Templates
11
- * @version     1.9.0
12
- */
3
+	 * The Template for displaying lesson archives, including the lesson page template.
4
+	 * This template also handels the lesson modules taxonomy and the lessons_tag taxonomy.
5
+	 *
6
+	 * Override this template by copying it to your_theme/sensei/archive-lesson.php
7
+	 *
8
+	 * @author 		Automattic
9
+	 * @package 	Sensei
10
+	 * @category    Templates
11
+	 * @version     1.9.0
12
+	 */
13 13
 ?>
14 14
 
15 15
 <?php  get_sensei_header();  ?>
16 16
 
17 17
     <?php
18 18
 
19
-        /**
20
-         * Action before lesson archive loop. This action runs within the archive-lesson.php.
21
-         *
22
-         * It will be executed even if there are no posts on the archive page.
23
-         */
24
-        do_action( 'sensei_archive_before_lesson_loop' );
19
+		/**
20
+		 * Action before lesson archive loop. This action runs within the archive-lesson.php.
21
+		 *
22
+		 * It will be executed even if there are no posts on the archive page.
23
+		 */
24
+		do_action( 'sensei_archive_before_lesson_loop' );
25 25
 
26
-    ?>
26
+	?>
27 27
 
28 28
     <?php if ( have_posts() ): ?>
29 29
 
@@ -37,12 +37,12 @@  discard block
 block discarded – undo
37 37
 
38 38
     <?php
39 39
 
40
-        /**
41
-         * Action after lesson archive  loop on the archive-lesson.php template file
42
-         * It will be executed even if there are no posts on the archive page.
43
-         *
44
-         * @since 1.9.0
45
-         */
46
-        do_action( 'sensei_archive_after_lesson_loop' );
47
-    ?>
40
+		/**
41
+		 * Action after lesson archive  loop on the archive-lesson.php template file
42
+		 * It will be executed even if there are no posts on the archive page.
43
+		 *
44
+		 * @since 1.9.0
45
+		 */
46
+		do_action( 'sensei_archive_after_lesson_loop' );
47
+	?>
48 48
 <?php get_sensei_footer(); ?>
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 ?>
14 14
 
15
-<?php  get_sensei_header();  ?>
15
+<?php  get_sensei_header(); ?>
16 16
 
17 17
     <?php
18 18
 
@@ -21,17 +21,17 @@  discard block
 block discarded – undo
21 21
          *
22 22
          * It will be executed even if there are no posts on the archive page.
23 23
          */
24
-        do_action( 'sensei_archive_before_lesson_loop' );
24
+        do_action('sensei_archive_before_lesson_loop');
25 25
 
26 26
     ?>
27 27
 
28
-    <?php if ( have_posts() ): ?>
28
+    <?php if (have_posts()): ?>
29 29
 
30
-        <?php sensei_load_template( 'loop-lesson.php' ); ?>
30
+        <?php sensei_load_template('loop-lesson.php'); ?>
31 31
 
32 32
     <?php else: ?>
33 33
 
34
-        <p><?php _e( 'No lessons found that match your selection.', 'woothemes-sensei' ); ?></p>
34
+        <p><?php _e('No lessons found that match your selection.', 'woothemes-sensei'); ?></p>
35 35
 
36 36
     <?php  endif; // End If Statement ?>
37 37
 
@@ -43,6 +43,6 @@  discard block
 block discarded – undo
43 43
          *
44 44
          * @since 1.9.0
45 45
          */
46
-        do_action( 'sensei_archive_after_lesson_loop' );
46
+        do_action('sensei_archive_after_lesson_loop');
47 47
     ?>
48 48
 <?php get_sensei_footer(); ?>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,9 +29,12 @@
 block discarded – undo
29 29
 
30 30
         <?php sensei_load_template( 'loop-lesson.php' ); ?>
31 31
 
32
-    <?php else: ?>
32
+    <?php else {
33
+	: ?>
33 34
 
34
-        <p><?php _e( 'No lessons found that match your selection.', 'woothemes-sensei' ); ?></p>
35
+        <p><?php _e( 'No lessons found that match your selection.', 'woothemes-sensei' );
36
+}
37
+?></p>
35 38
 
36 39
     <?php  endif; // End If Statement ?>
37 40
 
Please login to merge, or discard this patch.
templates/loop-lesson.php 3 patches
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -1,65 +1,65 @@
 block discarded – undo
1 1
 <?php
2 2
 if ( ! defined( 'ABSPATH' ) ) exit;
3 3
 /**
4
- * The Template for outputting Lesson Archive items
5
- *
6
- * Override this template by copying it to yourtheme/sensei/loop-lesson.php
7
- *
8
- * @author 		Automattic
9
- * @package 	Sensei
10
- * @category    Templates
11
- * @version     1.9.0
12
- */
4
+	 * The Template for outputting Lesson Archive items
5
+	 *
6
+	 * Override this template by copying it to yourtheme/sensei/loop-lesson.php
7
+	 *
8
+	 * @author 		Automattic
9
+	 * @package 	Sensei
10
+	 * @category    Templates
11
+	 * @version     1.9.0
12
+	 */
13 13
 ?>
14 14
 
15 15
 <?php
16 16
 /**
17
- * This runs before the post type items in the loop-lesson.php template.
18
- *
19
- * @since 1.9
20
- */
17
+	 * This runs before the post type items in the loop-lesson.php template.
18
+	 *
19
+	 * @since 1.9
20
+	 */
21 21
 do_action( 'sensei_loop_lesson_before' );
22 22
 ?>
23 23
 
24 24
 <section class="lesson-container" >
25 25
 
26 26
     <?php
27
-    /**
28
-     * This runs before the lesson items in the loop-lesson.php template.
29
-     *
30
-     * @since 1.9.0
31
-     *
32
-     * @hooked Sensei()->lesson->lesson_tag_archive_description - 11
33
-     * @hooked Sensei()->lesson->the_archive_header - 20
34
-     */
35
-    do_action( 'sensei_loop_lesson_inside_before' );
36
-    ?>
27
+	/**
28
+	 * This runs before the lesson items in the loop-lesson.php template.
29
+	 *
30
+	 * @since 1.9.0
31
+	 *
32
+	 * @hooked Sensei()->lesson->lesson_tag_archive_description - 11
33
+	 * @hooked Sensei()->lesson->the_archive_header - 20
34
+	 */
35
+	do_action( 'sensei_loop_lesson_inside_before' );
36
+	?>
37 37
 
38 38
 
39 39
     <?php
40
-    //Loop through all lessons
41
-    while ( have_posts() ) { the_post();
40
+	//Loop through all lessons
41
+	while ( have_posts() ) { the_post();
42 42
 
43
-        sensei_load_template_part( 'content', 'lesson' );
43
+		sensei_load_template_part( 'content', 'lesson' );
44 44
 
45
-    }
46
-    ?>
45
+	}
46
+	?>
47 47
 
48 48
     <?php
49
-    /**
50
-     * This runs inside the <ul> after the lesson items in the loop-lesson.php template.
51
-     *
52
-     * @since 1.9.0
53
-     */
54
-    do_action( 'sensei_loop_lesson_inside_after' );
55
-    ?>
49
+	/**
50
+	 * This runs inside the <ul> after the lesson items in the loop-lesson.php template.
51
+	 *
52
+	 * @since 1.9.0
53
+	 */
54
+	do_action( 'sensei_loop_lesson_inside_after' );
55
+	?>
56 56
 
57 57
 </section>
58 58
 
59 59
 <?php
60 60
 /**
61
- * This runs after the lesson items <ul> in the loop-lesson.php template.
62
- *
63
- * @since 1.9.0
64
- */
61
+	 * This runs after the lesson items <ul> in the loop-lesson.php template.
62
+	 *
63
+	 * @since 1.9.0
64
+	 */
65 65
 do_action( 'sensei_loop_lesson_after' );
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined('ABSPATH')) exit;
3 3
 /**
4 4
  * The Template for outputting Lesson Archive items
5 5
  *
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  *
19 19
  * @since 1.9
20 20
  */
21
-do_action( 'sensei_loop_lesson_before' );
21
+do_action('sensei_loop_lesson_before');
22 22
 ?>
23 23
 
24 24
 <section class="lesson-container" >
@@ -32,15 +32,15 @@  discard block
 block discarded – undo
32 32
      * @hooked Sensei()->lesson->lesson_tag_archive_description - 11
33 33
      * @hooked Sensei()->lesson->the_archive_header - 20
34 34
      */
35
-    do_action( 'sensei_loop_lesson_inside_before' );
35
+    do_action('sensei_loop_lesson_inside_before');
36 36
     ?>
37 37
 
38 38
 
39 39
     <?php
40 40
     //Loop through all lessons
41
-    while ( have_posts() ) { the_post();
41
+    while (have_posts()) { the_post();
42 42
 
43
-        sensei_load_template_part( 'content', 'lesson' );
43
+        sensei_load_template_part('content', 'lesson');
44 44
 
45 45
     }
46 46
     ?>
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      *
52 52
      * @since 1.9.0
53 53
      */
54
-    do_action( 'sensei_loop_lesson_inside_after' );
54
+    do_action('sensei_loop_lesson_inside_after');
55 55
     ?>
56 56
 
57 57
 </section>
@@ -62,4 +62,4 @@  discard block
 block discarded – undo
62 62
  *
63 63
  * @since 1.9.0
64 64
  */
65
-do_action( 'sensei_loop_lesson_after' );
65
+do_action('sensei_loop_lesson_after');
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 /**
4 6
  * The Template for displaying the my course page data.
5 7
  *
Please login to merge, or discard this patch.
templates/globals/pagination-lesson.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined('ABSPATH')) exit;
3 3
 /**
4 4
  * Pagination - Lesson
5 5
  *
@@ -10,13 +10,13 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 global $post;
13
-$nav_id_array = sensei_get_prev_next_lessons( $post->ID );
14
-$previous_lesson_id = absint( $nav_id_array['prev_lesson'] );
15
-$next_lesson_id = absint( $nav_id_array['next_lesson'] );
13
+$nav_id_array = sensei_get_prev_next_lessons($post->ID);
14
+$previous_lesson_id = absint($nav_id_array['prev_lesson']);
15
+$next_lesson_id = absint($nav_id_array['next_lesson']);
16 16
 // Output HTML
17
-if ( ( 0 < $previous_lesson_id ) || ( 0 < $next_lesson_id ) ) { ?>
17
+if ((0 < $previous_lesson_id) || (0 < $next_lesson_id)) { ?>
18 18
 	<nav id="post-entries" class="post-entries fix">
19
-        <?php if ( 0 < $previous_lesson_id ) { ?><div class="nav-prev fl"><a href="<?php echo esc_url( get_permalink( $previous_lesson_id ) ); ?>" rel="prev"><span class="meta-nav"></span> <?php echo get_the_title( $previous_lesson_id ); ?></a></div><?php } ?>
20
-        <?php if ( 0 < $next_lesson_id ) { ?><div class="nav-next fr"><a href="<?php echo esc_url( get_permalink( $next_lesson_id ) ); ?>" rel="prev"><span class="meta-nav"></span> <?php echo get_the_title( $next_lesson_id ); ?></a></div><?php } ?>
19
+        <?php if (0 < $previous_lesson_id) { ?><div class="nav-prev fl"><a href="<?php echo esc_url(get_permalink($previous_lesson_id)); ?>" rel="prev"><span class="meta-nav"></span> <?php echo get_the_title($previous_lesson_id); ?></a></div><?php } ?>
20
+        <?php if (0 < $next_lesson_id) { ?><div class="nav-next fr"><a href="<?php echo esc_url(get_permalink($next_lesson_id)); ?>" rel="prev"><span class="meta-nav"></span> <?php echo get_the_title($next_lesson_id); ?></a></div><?php } ?>
21 21
     </nav><!-- #post-entries -->
22 22
 <?php } ?>
23 23
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 /**
4 6
  * The Template for displaying the my course page data.
5 7
  *
Please login to merge, or discard this patch.
templates/globals/pagination-posts.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
7 7
  * @version     1.1.0
8 8
  */
9 9
 
10
-if ( ! defined( 'ABSPATH' ) ) exit;
10
+if ( ! defined('ABSPATH')) exit;
11 11
 
12 12
 ?>
13 13
 <nav id="post-entries" class="post-entries fix">
14
-    <div class="nav-prev fl"><?php previous_post_link( '%link', '<span class="meta-nav"></span> %title' ); ?></div>
15
-    <div class="nav-next fr"><?php next_post_link( '%link', '%title <span class="meta-nav"></span>' ); ?></div>
14
+    <div class="nav-prev fl"><?php previous_post_link('%link', '<span class="meta-nav"></span> %title'); ?></div>
15
+    <div class="nav-next fr"><?php next_post_link('%link', '%title <span class="meta-nav"></span>'); ?></div>
16 16
 </nav><!-- #post-entries -->
17 17
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 /**
4 6
  * The Template for displaying the my course page data.
5 7
  *
Please login to merge, or discard this patch.
templates/globals/pagination-quiz.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined('ABSPATH')) exit;
3 3
 /**
4 4
  * Pagination - Lesson
5 5
  *
@@ -9,14 +9,14 @@  discard block
 block discarded – undo
9 9
  */
10 10
 
11 11
 global $post;
12
-$quiz_lesson = absint( get_post_meta( $post->ID, '_quiz_lesson', true ) );
13
-$nav_id_array = sensei_get_prev_next_lessons( $quiz_lesson );
14
-$previous_lesson_id = absint( $nav_id_array['prev_lesson'] );
15
-$next_lesson_id = absint( $nav_id_array['next_lesson'] );
12
+$quiz_lesson = absint(get_post_meta($post->ID, '_quiz_lesson', true));
13
+$nav_id_array = sensei_get_prev_next_lessons($quiz_lesson);
14
+$previous_lesson_id = absint($nav_id_array['prev_lesson']);
15
+$next_lesson_id = absint($nav_id_array['next_lesson']);
16 16
 // Output HTML
17
-if ( ( 0 < $previous_lesson_id ) || ( 0 < $next_lesson_id ) ) { ?>
17
+if ((0 < $previous_lesson_id) || (0 < $next_lesson_id)) { ?>
18 18
     <nav id="post-entries" class="post-entries fix">
19
-        <?php if ( 0 < $previous_lesson_id ) { ?><div class="nav-prev fl"><a href="<?php echo esc_url( get_permalink( $previous_lesson_id ) ); ?>" rel="prev"><span class="meta-nav"></span> <?php echo get_the_title( $previous_lesson_id ); ?></a></div><?php } ?>
20
-        <?php if ( 0 < $next_lesson_id ) { ?><div class="nav-next fr"><a href="<?php echo esc_url( get_permalink( $next_lesson_id ) ); ?>" rel="prev"><span class="meta-nav"></span> <?php echo get_the_title( $next_lesson_id ); ?></a></div><?php } ?>
19
+        <?php if (0 < $previous_lesson_id) { ?><div class="nav-prev fl"><a href="<?php echo esc_url(get_permalink($previous_lesson_id)); ?>" rel="prev"><span class="meta-nav"></span> <?php echo get_the_title($previous_lesson_id); ?></a></div><?php } ?>
20
+        <?php if (0 < $next_lesson_id) { ?><div class="nav-next fr"><a href="<?php echo esc_url(get_permalink($next_lesson_id)); ?>" rel="prev"><span class="meta-nav"></span> <?php echo get_the_title($next_lesson_id); ?></a></div><?php } ?>
21 21
     </nav><!-- #post-entries -->
22 22
 <?php } ?>
23 23
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 /**
4 6
  * The Template for displaying the my course page data.
5 7
  *
Please login to merge, or discard this patch.
templates/globals/pagination.php 3 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -13,23 +13,23 @@
 block discarded – undo
13 13
 global $wp_query;
14 14
 
15 15
 if ( $wp_query->max_num_pages <= 1 ) {
16
-    return;
16
+	return;
17 17
 }
18 18
 
19 19
 ?>
20 20
 <nav class="sensei-pagination">
21 21
     <?php
22
-    echo paginate_links( apply_filters( 'sensei_pagination_args', array(
23
-        'base'         => esc_url_raw( str_replace( 999999999, '%#%', get_pagenum_link( 999999999, false ) ) ),
24
-        'format'       => '',
25
-        'add_args'     => '',
26
-        'current'      => max( 1, get_query_var( 'paged' ) ),
27
-        'total'        => $wp_query->max_num_pages,
28
-        'prev_text'    => '&larr;',
29
-        'next_text'    => '&rarr;',
30
-        'type'         => 'list',
31
-        'end_size'     => 3,
32
-        'mid_size'     => 3
33
-    ) ) );
34
-    ?>
22
+	echo paginate_links( apply_filters( 'sensei_pagination_args', array(
23
+		'base'         => esc_url_raw( str_replace( 999999999, '%#%', get_pagenum_link( 999999999, false ) ) ),
24
+		'format'       => '',
25
+		'add_args'     => '',
26
+		'current'      => max( 1, get_query_var( 'paged' ) ),
27
+		'total'        => $wp_query->max_num_pages,
28
+		'prev_text'    => '&larr;',
29
+		'next_text'    => '&rarr;',
30
+		'type'         => 'list',
31
+		'end_size'     => 3,
32
+		'mid_size'     => 3
33
+	) ) );
34
+	?>
35 35
 </nav>
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined('ABSPATH')) exit;
3 3
 /**
4 4
  * Pagination - Show numbered pagination for sensei archives
5 5
  *
@@ -12,24 +12,24 @@  discard block
 block discarded – undo
12 12
 
13 13
 global $wp_query;
14 14
 
15
-if ( $wp_query->max_num_pages <= 1 ) {
15
+if ($wp_query->max_num_pages <= 1) {
16 16
     return;
17 17
 }
18 18
 
19 19
 ?>
20 20
 <nav class="sensei-pagination">
21 21
     <?php
22
-    echo paginate_links( apply_filters( 'sensei_pagination_args', array(
23
-        'base'         => esc_url_raw( str_replace( 999999999, '%#%', get_pagenum_link( 999999999, false ) ) ),
22
+    echo paginate_links(apply_filters('sensei_pagination_args', array(
23
+        'base'         => esc_url_raw(str_replace(999999999, '%#%', get_pagenum_link(999999999, false))),
24 24
         'format'       => '',
25 25
         'add_args'     => '',
26
-        'current'      => max( 1, get_query_var( 'paged' ) ),
26
+        'current'      => max(1, get_query_var('paged')),
27 27
         'total'        => $wp_query->max_num_pages,
28 28
         'prev_text'    => '&larr;',
29 29
         'next_text'    => '&rarr;',
30 30
         'type'         => 'list',
31 31
         'end_size'     => 3,
32 32
         'mid_size'     => 3
33
-    ) ) );
33
+    )));
34 34
     ?>
35 35
 </nav>
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 /**
4 6
  * The Template for displaying the my course page data.
5 7
  *
Please login to merge, or discard this patch.
templates/emails/teacher-quiz-submitted.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -6,13 +6,13 @@  discard block
 block discarded – undo
6 6
  * @package Sensei/Templates/Emails/HTML
7 7
  * @version 1.6.0
8 8
  */
9
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
9
+if ( ! defined('ABSPATH')) exit; // Exit if accessed directly ?>
10 10
 
11 11
 <?php
12 12
 
13 13
 // Get data for email content
14 14
 global $sensei_email_data;
15
-extract( $sensei_email_data );
15
+extract($sensei_email_data);
16 16
 
17 17
 // 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. !important; is a gmail hack to prevent styles being stripped if it doesn't like something.
18 18
 $small = "text-align: center !important;";
@@ -21,20 +21,20 @@  discard block
 block discarded – undo
21 21
 
22 22
 ?>
23 23
 
24
-<?php do_action( 'sensei_before_email_content', $template ); ?>
24
+<?php do_action('sensei_before_email_content', $template); ?>
25 25
 
26
-<p style="<?php echo esc_attr( $small ); ?>"><?php _e( 'Your student', 'woothemes-sensei' ); ?></p>
26
+<p style="<?php echo esc_attr($small); ?>"><?php _e('Your student', 'woothemes-sensei'); ?></p>
27 27
 
28
-<h2 style="<?php echo esc_attr( $large ); ?>"><?php echo $learner_name; ?></h2>
28
+<h2 style="<?php echo esc_attr($large); ?>"><?php echo $learner_name; ?></h2>
29 29
 
30
-<p style="<?php echo esc_attr( $small ); ?>"><?php _e( 'has submitted the quiz for lesson', 'woothemes-sensei' ); ?></p>
30
+<p style="<?php echo esc_attr($small); ?>"><?php _e('has submitted the quiz for lesson', 'woothemes-sensei'); ?></p>
31 31
 
32
-<h2 style="<?php echo esc_attr( $large ); ?>"><?php echo get_the_title( $lesson_id ); ?></h2>
32
+<h2 style="<?php echo esc_attr($large); ?>"><?php echo get_the_title($lesson_id); ?></h2>
33 33
 
34
-<p style="<?php echo esc_attr( $small ); ?>"><?php _e( 'for grading.', 'woothemes-sensei' ); ?></p>
34
+<p style="<?php echo esc_attr($small); ?>"><?php _e('for grading.', 'woothemes-sensei'); ?></p>
35 35
 
36 36
 <hr/>
37 37
 
38
-<p style="<?php echo esc_attr( $small ); ?>"><?php printf( __( 'You can grade this quiz %1$shere%2$s.', 'woothemes-sensei' ), '<a href="' . admin_url( 'admin.php?page=sensei_grading&user=' . $learner_id . '&quiz_id=' . $quiz_id ) . '">', '</a>' ); ?></p>
38
+<p style="<?php echo esc_attr($small); ?>"><?php printf(__('You can grade this quiz %1$shere%2$s.', 'woothemes-sensei'), '<a href="'.admin_url('admin.php?page=sensei_grading&user='.$learner_id.'&quiz_id='.$quiz_id).'">', '</a>'); ?></p>
39 39
 
40
-<?php do_action( 'sensei_after_email_content', $template ); ?>
41 40
\ No newline at end of file
41
+<?php do_action('sensei_after_email_content', $template); ?>
42 42
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,10 @@
 block discarded – undo
6 6
  * @package Sensei/Templates/Emails/HTML
7 7
  * @version 1.6.0
8 8
  */
9
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
9
+if ( ! defined( 'ABSPATH' ) ) {
10
+	exit;
11
+}
12
+// Exit if accessed directly ?>
10 13
 
11 14
 <?php
12 15
 
Please login to merge, or discard this patch.