Completed
Push — master ( 200564...bfd34a )
by Dwain
10:22
created
includes/lib/woo-functions.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 		if ( WooThemes_Sensei_Utils::sensei_is_woocommerce_activated() ) {
87 87
 			global $woocommerce;
88 88
 			if( version_compare( $woocommerce->version, $version, ">=" ) ) {
89
-			    return true;
89
+				return true;
90 90
 			}
91 91
 		}
92 92
 		return false;
Please login to merge, or discard this patch.
includes/class-sensei-analysis-user-profile-list-table.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
 
202 202
 		if( 'complete' == $item->comment_approved ) {
203 203
 
204
-            $status =  __( 'Completed', 'woothemes-sensei' );
204
+			$status =  __( 'Completed', 'woothemes-sensei' );
205 205
 			$status_class = 'graded';
206 206
 
207 207
 			$course_end_date = $item->comment_date;
Please login to merge, or discard this patch.
templates/single-quiz/question_type-single-line.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 Single Line Questions.
5
- *
6
- * Override this template by copying it to yourtheme/sensei/single-quiz/question_type-single-line.php
7
- *
8
- * @author 		Automattic
9
- * @package 	Sensei
10
- * @category    Templates
11
- * @version     1.9.0
12
- */
4
+	 * The Template for displaying Single Line Questions.
5
+	 *
6
+	 * Override this template by copying it to yourtheme/sensei/single-quiz/question_type-single-line.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-boolean.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 if ( ! defined( 'ABSPATH' ) ) exit;
3 3
 /**
4
- * The Template for displaying True/False ( Boolean ) Question type.
5
- *
6
- * @author 		Automattic
7
- * @package 	Sensei
8
- * @category    Templates
9
- * @version     1.9.0
10
- */
4
+	 * The Template for displaying True/False ( Boolean ) Question type.
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() );
20
-    $boolean_options = array( 'true', 'false' );
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
+	$boolean_options = array( 'true', 'false' );
21 21
 
22 22
 ?>
23 23
 
@@ -25,42 +25,42 @@  discard block
 block discarded – undo
25 25
 
26 26
     <?php
27 27
 
28
-    // setup the options the right answer set by the admin/teacher
29
-    // will be compared to.
30
-    $boolean_options = array( 'true', 'false' );
28
+	// setup the options the right answer set by the admin/teacher
29
+	// will be compared to.
30
+	$boolean_options = array( 'true', 'false' );
31 31
 
32
-    //loop through the 2 boolean options and compare them with
33
-    // the selected right answer
34
-    foreach ( $boolean_options as $option ){
32
+	//loop through the 2 boolean options and compare them with
33
+	// the selected right answer
34
+	foreach ( $boolean_options as $option ){
35 35
 
36
-        $answer_class = '';
36
+		$answer_class = '';
37 37
 
38
-        // Add classes to indicate correctness, only if there is a grade
39
-        if( isset( $question_data[ 'user_correct' ] ) && 0 < $question_data['question_grade'] ) {
38
+		// Add classes to indicate correctness, only if there is a grade
39
+		if( isset( $question_data[ 'user_correct' ] ) && 0 < $question_data['question_grade'] ) {
40 40
 
41
-            if( $question_right_answer == $question_data[ 'question_right_answer' ] ) {
41
+			if( $question_right_answer == $question_data[ 'question_right_answer' ] ) {
42 42
 
43
-                if( $question_data[ 'user_correct' ] ) {
43
+				if( $question_data[ 'user_correct' ] ) {
44 44
 
45
-                    $answer_class = 'user_right';
45
+					$answer_class = 'user_right';
46 46
 
47
-                }
47
+				}
48 48
 
49
-                $answer_class .= ' right_answer';
49
+				$answer_class .= ' right_answer';
50 50
 
51
-            } else {
51
+			} else {
52 52
 
53
-                if( ! $question_data[ 'user_correct' ] ) {
53
+				if( ! $question_data[ 'user_correct' ] ) {
54 54
 
55
-                    $answer_class = 'user_wrong';
55
+					$answer_class = 'user_wrong';
56 56
 
57
-                }
57
+				}
58 58
 
59
-            } // end if right answer == current booloean options
59
+			} // end if right answer == current booloean options
60 60
 
61
-        }// end if $user_correct .. $question_grade
61
+		}// end if $user_correct .. $question_grade
62 62
 
63
-    ?>
63
+	?>
64 64
 
65 65
     <li class="<?php esc_attr_e( $answer_class ); ?>">
66 66
 
@@ -74,17 +74,17 @@  discard block
 block discarded – undo
74 74
         <label for="<?php echo esc_attr( 'question_' . $question_data[ 'ID' ]  ) . '-option-'.$option; ?>">
75 75
             <?php
76 76
 
77
-            if( 'true' == $option ){
77
+			if( 'true' == $option ){
78 78
 
79
-                _e( 'True', 'woothemes-sensei' );
79
+				_e( 'True', 'woothemes-sensei' );
80 80
 
81
-            }else{
81
+			}else{
82 82
 
83
-                _e( 'False', 'woothemes-sensei' );
83
+				_e( 'False', 'woothemes-sensei' );
84 84
 
85
-            }
85
+			}
86 86
 
87
-            ?>
87
+			?>
88 88
 
89 89
 
90 90
         </label>
Please login to merge, or discard this patch.
templates/emails/learner-completed-course.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 completed course email
4
- *
5
- * @author WooThemes
6
- * @package Sensei/Templates/Emails/HTML
7
- * @version 1.6.0
8
- */
3
+						 * Learner completed course 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.
uninstall.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * WooThemes Sensei Uninstall
4
- *
5
- * Uninstalls the plugin and associated data.
6
- *
7
- * @package WordPress
8
- * @subpackage Sensei
9
- * @category Core
10
- * @author WooThemes
11
- * @since 1.0.0
12
- */
3
+	 * WooThemes Sensei Uninstall
4
+	 *
5
+	 * Uninstalls the plugin and associated data.
6
+	 *
7
+	 * @package WordPress
8
+	 * @subpackage Sensei
9
+	 * @category Core
10
+	 * @author WooThemes
11
+	 * @since 1.0.0
12
+	 */
13 13
 if( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) exit();
14 14
 
15 15
 $token = 'woothemes-sensei';
Please login to merge, or discard this patch.
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.