Completed
Push — master ( 77803a...2e041b )
by Dwain
26:34
created
templates/single-quiz/question_type-file-upload.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,24 +1,24 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 if ( ! defined( 'ABSPATH' ) ) exit;
3 3
 /**
4
- * The Template for displaying File Upload Questions.
5
- *
6
- * Override this template by copying it to yourtheme/sensei/single-quiz/question_type-file-upload.php
7
- *
8
- * @author 		Automattic
9
- * @package 	Sensei
10
- * @category    Templates
11
- * @version     1.9.0
12
- */
4
+			 * The Template for displaying File Upload Questions.
5
+			 *
6
+			 * Override this template by copying it to yourtheme/sensei/single-quiz/question_type-file-upload.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
-    /**
18
-     * Get the question data with the current quiz id
19
-     * All data is loaded in this array to keep the template clean.
20
-     */
21
-    $question_data = WooThemes_Sensei_Question::get_template_data( sensei_get_the_question_id(), get_the_ID() );
17
+	/**
18
+	 * Get the question data with the current quiz id
19
+	 * All data is loaded in this array to keep the template clean.
20
+	 */
21
+	$question_data = WooThemes_Sensei_Question::get_template_data( sensei_get_the_question_id(), get_the_ID() );
22 22
 
23 23
 ?>
24 24
 
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
 
35 35
         <?php
36 36
 
37
-        printf( __( 'Submitted file: %1$s', 'woothemes-sensei' ), '<a href="' . esc_url(  $question_data[ 'answer_media_url' ] )
38
-            . '" target="_blank">'
39
-            . esc_html(  $question_data[ 'answer_media_filename' ] ) . '</a>' );
37
+		printf( __( 'Submitted file: %1$s', 'woothemes-sensei' ), '<a href="' . esc_url(  $question_data[ 'answer_media_url' ] )
38
+			. '" target="_blank">'
39
+			. esc_html(  $question_data[ 'answer_media_filename' ] ) . '</a>' );
40 40
 
41
-        ?>
41
+		?>
42 42
 
43 43
     </p>
44 44
     <?php if( !  $question_data[ 'lesson_complete' ]  ) { ?>
Please login to merge, or discard this patch.
templates/loop-message.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -1,67 +1,67 @@
 block discarded – undo
1 1
 <?php
2 2
 if ( ! defined( 'ABSPATH' ) ) exit;
3 3
 /**
4
- * The Template for outputting Message Archive items
5
- *
6
- * Override this template by copying it to yourtheme/sensei/loop-message.php
7
- *
8
- * @author 		Automattic
9
- * @package 	Sensei
10
- * @category    Templates
11
- * @version     1.9.0
12
- */
4
+	 * The Template for outputting Message Archive items
5
+	 *
6
+	 * Override this template by copying it to yourtheme/sensei/loop-message.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 the message loop items in the loop-message.php template. It runs
18
- * only only for the message post type. This loop will not run if the current wp_query
19
- * has no posts.
20
- *
21
- * @since 1.9.0
22
- */
17
+	 * This runs before the the message loop items in the loop-message.php template. It runs
18
+	 * only only for the message post type. This loop will not run if the current wp_query
19
+	 * has no posts.
20
+	 *
21
+	 * @since 1.9.0
22
+	 */
23 23
 do_action( 'sensei_loop_message_before' );
24 24
 ?>
25 25
 
26 26
 <div class="message-container" >
27 27
 
28 28
     <?php
29
-    /**
30
-     * This runs before the post type items in the loop.php template. It
31
-     * runs within the message loop <ul> tag.
32
-     *
33
-     * @since 1.9.0
34
-     */
35
-    do_action( 'sensei_loop_message_inside_before' );
36
-    ?>
29
+	/**
30
+	 * This runs before the post type items in the loop.php template. It
31
+	 * runs within the message loop <ul> tag.
32
+	 *
33
+	 * @since 1.9.0
34
+	 */
35
+	do_action( 'sensei_loop_message_inside_before' );
36
+	?>
37 37
 
38 38
     <?php
39
-    // loop through all messages
40
-    while ( have_posts() ) { the_post();
39
+	// loop through all messages
40
+	while ( have_posts() ) { the_post();
41 41
 
42
-        sensei_load_template_part('content','message');
42
+		sensei_load_template_part('content','message');
43 43
 
44
-    }
45
-    ?>
44
+	}
45
+	?>
46 46
 
47 47
     <?php
48
-    /**
49
-     * This runs after the post type items in the loop.php template. It runs
50
-     * only for the specified post type
51
-     *
52
-     * @since 1.9.0
53
-     */
54
-    do_action( 'sensei_loop_message_inside_after' );
55
-    ?>
48
+	/**
49
+	 * This runs after the post type items in the loop.php template. It runs
50
+	 * only for the specified post type
51
+	 *
52
+	 * @since 1.9.0
53
+	 */
54
+	do_action( 'sensei_loop_message_inside_after' );
55
+	?>
56 56
 
57 57
 </div>
58 58
 
59 59
 <?php
60 60
 /**
61
- * This runs after the post type items in the loop.php template. It runs
62
- * only for the specified post type
63
- *
64
- * @since 1.9.0
65
- */
61
+	 * This runs after the post type items in the loop.php template. It runs
62
+	 * only for the specified post type
63
+	 *
64
+	 * @since 1.9.0
65
+	 */
66 66
 do_action( 'sensei_loop_message_after' );
67 67
 ?>
Please login to merge, or discard this patch.
templates/archive-course.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -15,19 +15,19 @@  discard block
 block discarded – undo
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' );
29
-
30
-    ?>
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
+
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/emails/admin-teacher-new-course-created.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Teacher new message email
4
- *
5
- * @author WooThemes
6
- * @package Sensei/Templates/Emails/HTML
7
- */
3
+	 * Teacher new message email
4
+	 *
5
+	 * @author WooThemes
6
+	 * @package Sensei/Templates/Emails/HTML
7
+	 */
8 8
 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9 9
 
10 10
 // Get data for email content
@@ -35,9 +35,9 @@  discard block
 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/loop-course.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -1,69 +1,69 @@
 block discarded – undo
1 1
 <?php
2 2
 if ( ! defined( 'ABSPATH' ) ) exit;
3 3
 /**
4
- * The Template for outputting Lists of any Sensei content type.
5
- *
6
- * This template expects the global wp_query to setup and ready for the loop
7
- *
8
- * @author 		Automattic
9
- * @package 	Sensei
10
- * @category    Templates
11
- * @version     1.9.0
12
- */
4
+		 * The Template for outputting Lists of any Sensei content type.
5
+		 *
6
+		 * This template expects the global wp_query to setup and ready for the loop
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 the course loop items in the loop.php template. It runs
18
- * only only for the course post type. This loop will not run if the current wp_query
19
- * has no posts.
20
- *
21
- * @since 1.9.0
22
- */
17
+		 * This runs before the the course loop items in the loop.php template. It runs
18
+		 * only only for the course post type. This loop will not run if the current wp_query
19
+		 * has no posts.
20
+		 *
21
+		 * @since 1.9.0
22
+		 */
23 23
 do_action( 'sensei_loop_course_before' );
24 24
 ?>
25 25
 
26 26
 <ul class="course-container columns-<?php sensei_courses_per_row(); ?>" >
27 27
 
28 28
     <?php
29
-    /**
30
-     * This runs before the post type items in the loop.php template. It
31
-     * runs within the courses loop <ul> tag.
32
-     *
33
-     * @since 1.9.0
34
-     */
35
-    do_action( 'sensei_loop_course_inside_before' );
36
-    ?>
29
+	/**
30
+	 * This runs before the post type items in the loop.php template. It
31
+	 * runs within the courses loop <ul> tag.
32
+	 *
33
+	 * @since 1.9.0
34
+	 */
35
+	do_action( 'sensei_loop_course_inside_before' );
36
+	?>
37 37
 
38 38
     <?php
39
-    /*
39
+	/*
40 40
      * Loop through all courses
41 41
      */
42
-    while ( have_posts() ) { the_post();
42
+	while ( have_posts() ) { the_post();
43 43
 
44
-        sensei_load_template_part('content','course');
44
+		sensei_load_template_part('content','course');
45 45
 
46
-    }
47
-    ?>
46
+	}
47
+	?>
48 48
 
49 49
     <?php
50
-    /**
51
-     * This runs after the post type items in the loop.php template. It runs
52
-     * only for the specified post type
53
-     *
54
-     * @since 1.9.0
55
-     */
56
-    do_action( 'sensei_loop_course_inside_after' );
57
-    ?>
50
+	/**
51
+	 * This runs after the post type items in the loop.php template. It runs
52
+	 * only for the specified post type
53
+	 *
54
+	 * @since 1.9.0
55
+	 */
56
+	do_action( 'sensei_loop_course_inside_after' );
57
+	?>
58 58
 
59 59
 </ul>
60 60
 
61 61
 <?php
62 62
 /**
63
- * This runs after the post type items in the loop.php template. It runs
64
- * only for the specified post type
65
- *
66
- * @since 1.9.0
67
- */
63
+	 * This runs after the post type items in the loop.php template. It runs
64
+	 * only for the specified post type
65
+	 *
66
+	 * @since 1.9.0
67
+	 */
68 68
 do_action( 'sensei_loop_course_after' );
69 69
 ?>
Please login to merge, or discard this patch.
templates/single-quiz/question_type-gap-fill.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,24 +1,24 @@
 block discarded – undo
1 1
 <?php
2 2
 if ( ! defined( 'ABSPATH' ) ) exit;
3 3
 /**
4
- * The Template for displaying Gap Fill Line Questions.
5
- *
6
- * Override this template by copying it to yourtheme/sensei/single-quiz/question_type-gap-fill.php
7
- *
8
- * @author 		Automattic
9
- * @package 	Sensei
10
- * @category    Templates
11
- * @version     1.9.0
12
- */
4
+		 * The Template for displaying Gap Fill Line Questions.
5
+		 *
6
+		 * Override this template by copying it to yourtheme/sensei/single-quiz/question_type-gap-fill.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
-    /**
18
-     * Get the question data with the current quiz id
19
-     * All data is loaded in this array to keep the template clean.
20
-     */
21
-    $question_data = WooThemes_Sensei_Question::get_template_data( sensei_get_the_question_id(), get_the_ID() );
17
+	/**
18
+	 * Get the question data with the current quiz id
19
+	 * All data is loaded in this array to keep the template clean.
20
+	 */
21
+	$question_data = WooThemes_Sensei_Question::get_template_data( sensei_get_the_question_id(), get_the_ID() );
22 22
 
23 23
 ?>
24 24
 
Please login to merge, or discard this patch.
templates/single-quiz/question_type-multiple-choice.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
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.
templates/teacher-archive.php 1 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/no-permissions.php 1 patch
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The Template for displaying all access restriction error messages.
4
- *
5
- * Override this template by copying it to yourtheme/sensei/no-permissions.php
6
- *
7
- * @author 		Automattic
8
- * @package 	Sensei
9
- * @category    Templates
10
- * @version     1.9.0
11
- */
3
+	 * The Template for displaying all access restriction error messages.
4
+	 *
5
+	 * Override this template by copying it to yourtheme/sensei/no-permissions.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
- * This action fires inside the no-permissions.php file. It
19
- * is place above before all the content.
20
- *
21
- * @since 1.9.0
22
- * @param $post_id
23
- */
18
+	 * This action fires inside the no-permissions.php file. It
19
+	 * is place above before all the content.
20
+	 *
21
+	 * @since 1.9.0
22
+	 * @param $post_id
23
+	 */
24 24
 do_action('sensei_no_permissions_before_content', get_the_ID() );
25 25
 ?>
26 26
 
@@ -33,15 +33,15 @@  discard block
 block discarded – undo
33 33
     </header>
34 34
 
35 35
     <?php
36
-    /**
37
-     * This action fires inside the no-permissions.php file. It
38
-     * is place just before the content.
39
-     *
40
-     * @since 1.9.0
41
-     * @param $post_id
42
-     */
43
-    do_action('sensei_no_permissions_inside_before_content', get_the_ID() );
44
-    ?>
36
+	/**
37
+	 * This action fires inside the no-permissions.php file. It
38
+	 * is place just before the content.
39
+	 *
40
+	 * @since 1.9.0
41
+	 * @param $post_id
42
+	 */
43
+	do_action('sensei_no_permissions_inside_before_content', get_the_ID() );
44
+	?>
45 45
 
46 46
     <section class="entry fix">
47 47
 
@@ -60,26 +60,26 @@  discard block
 block discarded – undo
60 60
     </section>
61 61
 
62 62
     <?php
63
-    /**
64
-     * This action fires inside the no-permissions.php file. It
65
-     * is place just after the content.
66
-     *
67
-     * @since 1.9.0
68
-     * @param $post_id
69
-     */
70
-    do_action('sensei_no_permissions_inside_after_content', get_the_ID() );
71
-    ?>
63
+	/**
64
+	 * This action fires inside the no-permissions.php file. It
65
+	 * is place just after the content.
66
+	 *
67
+	 * @since 1.9.0
68
+	 * @param $post_id
69
+	 */
70
+	do_action('sensei_no_permissions_inside_after_content', get_the_ID() );
71
+	?>
72 72
 
73 73
 </article><!-- .no-permissions -->
74 74
 
75 75
 <?php
76 76
 /**
77
- * This action fires inside the no-permissions.php file. It
78
- * is placed outside after the content.
79
- *
80
- * @since 1.9.0
81
- * @param $post_id
82
- */
77
+	 * This action fires inside the no-permissions.php file. It
78
+	 * is placed outside after the content.
79
+	 *
80
+	 * @since 1.9.0
81
+	 * @param $post_id
82
+	 */
83 83
 do_action('sensei_no_permissions_after_content', get_the_ID() );
84 84
 ?>
85 85
 
Please login to merge, or discard this patch.