Completed
Push — master ( 22c301...09c3a3 )
by Dwain
10s
created
templates/emails/learner-graded-quiz.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 printf( __( 'You %1$s the lesson', 'woothemes-sensei' ), $passed ); ?></p>
26
+<p style="<?php echo esc_attr($small); ?>"><?php printf(__('You %1$s the lesson', 'woothemes-sensei'), $passed); ?></p>
27 27
 
28
-<h2 style="<?php echo esc_attr( $large ); ?>"><?php echo get_the_title( $lesson_id ); ?></h2>
28
+<h2 style="<?php echo esc_attr($large); ?>"><?php echo get_the_title($lesson_id); ?></h2>
29 29
 
30
-<p style="<?php echo esc_attr( $small ); ?>"><?php _e( 'with a grade of', 'woothemes-sensei' ); ?></p>
30
+<p style="<?php echo esc_attr($small); ?>"><?php _e('with a grade of', 'woothemes-sensei'); ?></p>
31 31
 
32
-<h2 style="<?php echo esc_attr( $large ); ?>"><?php echo $grade . '%'; ?></h2>
32
+<h2 style="<?php echo esc_attr($large); ?>"><?php echo $grade.'%'; ?></h2>
33 33
 
34
-<p style="<?php echo esc_attr( $small ); ?>"><?php printf( __( 'The pass mark is %1$s', 'woothemes-sensei' ), $passmark . '%' ); ?></p>
34
+<p style="<?php echo esc_attr($small); ?>"><?php printf(__('The pass mark is %1$s', 'woothemes-sensei'), $passmark.'%'); ?></p>
35 35
 
36 36
 <hr/>
37 37
 
38
-<p style="<?php echo esc_attr( $small ); ?>"><?php printf( __( 'You can review your grade and your answers %1$shere%2$s.', 'woothemes-sensei' ), '<a href="' . get_permalink( $quiz_id ) . '">', '</a>' ); ?></p>
38
+<p style="<?php echo esc_attr($small); ?>"><?php printf(__('You can review your grade and your answers %1$shere%2$s.', 'woothemes-sensei'), '<a href="'.get_permalink($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.
templates/emails/teacher-completed-lesson.php 2 patches
Spacing   +9 added lines, -9 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,18 +21,18 @@  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 echo( __( 'has completed the lesson', 'woothemes-sensei' ) ); ?></p>
30
+<p style="<?php echo esc_attr($small); ?>"><?php echo(__('has completed the 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 34
 <hr/>
35 35
 
36
-<p style="<?php echo esc_attr( $small ); ?>"><?php printf( __( 'Manage this lesson\'s learners %1$shere%2$s.', 'woothemes-sensei' ), '<a href="' . admin_url( 'admin.php?page=sensei_learners&view=learners&lesson_id=' . $lesson_id ) . '">', '</a>' ); ?></p>
36
+<p style="<?php echo esc_attr($small); ?>"><?php printf(__('Manage this lesson\'s learners %1$shere%2$s.', 'woothemes-sensei'), '<a href="'.admin_url('admin.php?page=sensei_learners&view=learners&lesson_id='.$lesson_id).'">', '</a>'); ?></p>
37 37
 
38
-<?php do_action( 'sensei_after_email_content', $template ); ?>
39 38
\ No newline at end of file
39
+<?php do_action('sensei_after_email_content', $template); ?>
40 40
\ 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.
templates/emails/admin-teacher-new-course-created.php 3 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * @author WooThemes
6 6
  * @package Sensei/Templates/Emails/HTML
7 7
  */
8
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
8
+if ( ! defined('ABSPATH')) exit; // Exit if accessed directly
9 9
 
10 10
 // Get data for email content
11 11
 global $sensei_email_data;
@@ -15,33 +15,33 @@  discard block
 block discarded – undo
15 15
 
16 16
 $style_large = "text-align: center !important;font-size: 350% !important;line-height: 100% !important;";
17 17
 
18
-do_action( 'sensei_before_email_content', $template );
18
+do_action('sensei_before_email_content', $template);
19 19
 ?>
20 20
 
21
-<p style="<?php echo esc_attr( $style_small ); ?>">
22
-    <?php _e( 'The Course', 'woothemes-sensei' ); ?>
21
+<p style="<?php echo esc_attr($style_small); ?>">
22
+    <?php _e('The Course', 'woothemes-sensei'); ?>
23 23
 </p>
24 24
 
25
-<h2 style="<?php echo esc_attr( $style_large ); ?>">
25
+<h2 style="<?php echo esc_attr($style_large); ?>">
26 26
     <?php echo $sensei_email_data['course_name']; ?>
27 27
 </h2>
28 28
 
29
-<p style="<?php echo esc_attr( $style_small ); ?>">
30
-    <?php echo __( 'was submitted for review by ', 'woothemes-sensei' ). $sensei_email_data['teacher']->display_name  ; ?>
29
+<p style="<?php echo esc_attr($style_small); ?>">
30
+    <?php echo __('was submitted for review by ', 'woothemes-sensei').$sensei_email_data['teacher']->display_name; ?>
31 31
 </p>
32 32
 
33 33
 <hr/>
34 34
 
35
-<p style="<?php echo esc_attr( $style_small ); ?>">
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
44 44
 
45
-do_action( 'sensei_after_email_content', $sensei_email_data['template'] );
45
+do_action('sensei_after_email_content', $sensei_email_data['template']);
46 46
 
47 47
 ?>
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
5
+// Exit if accessed directly
3 6
 
4 7
 /**
5 8
  * Sensei Analysis User Profile List Table Class
Please login to merge, or discard this 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/emails/teacher-started-course.php 2 patches
Spacing   +9 added lines, -9 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,18 +21,18 @@  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 started the course', 'woothemes-sensei' ); ?></p>
30
+<p style="<?php echo esc_attr($small); ?>"><?php _e('has started the course', 'woothemes-sensei'); ?></p>
31 31
 
32
-<h2 style="<?php echo esc_attr( $large ); ?>"><?php echo get_the_title( $course_id ); ?></h2>
32
+<h2 style="<?php echo esc_attr($large); ?>"><?php echo get_the_title($course_id); ?></h2>
33 33
 
34 34
 <hr/>
35 35
 
36
-<p style="<?php echo esc_attr( $small ); ?>"><?php printf( __( 'Manage this course\'s learners %1$shere%2$s.', 'woothemes-sensei' ), '<a href="' . admin_url( 'admin.php?page=sensei_learners&view=learners&course_id=' . $course_id ) . '">', '</a>' ); ?></p>
36
+<p style="<?php echo esc_attr($small); ?>"><?php printf(__('Manage this course\'s learners %1$shere%2$s.', 'woothemes-sensei'), '<a href="'.admin_url('admin.php?page=sensei_learners&view=learners&course_id='.$course_id).'">', '</a>'); ?></p>
37 37
 
38
-<?php do_action( 'sensei_after_email_content', $template ); ?>
39 38
\ No newline at end of file
39
+<?php do_action('sensei_after_email_content', $template); ?>
40 40
\ 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.
templates/emails/teacher-new-message.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,22 +21,22 @@  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 printf( __( 'has sent you a private message regarding the %1$s', 'woothemes-sensei' ), $content_type ); ?></p>
30
+<p style="<?php echo esc_attr($small); ?>"><?php printf(__('has sent you a private message regarding the %1$s', 'woothemes-sensei'), $content_type); ?></p>
31 31
 
32
-<h2 style="<?php echo esc_attr( $large ); ?>"><?php echo $content_title; ?></h2>
32
+<h2 style="<?php echo esc_attr($large); ?>"><?php echo $content_title; ?></h2>
33 33
 
34 34
 <hr/>
35 35
 
36
-<?php echo wpautop( $message ); ?>
36
+<?php echo wpautop($message); ?>
37 37
 
38 38
 <hr/>
39 39
 
40
-<p style="<?php echo esc_attr( $small ); ?>"><?php printf( __( 'You can reply to this message %1$shere%2$s.', 'woothemes-sensei' ), '<a href="' . get_permalink( $message_id ) . '">', '</a>' ); ?></p>
40
+<p style="<?php echo esc_attr($small); ?>"><?php printf(__('You can reply to this message %1$shere%2$s.', 'woothemes-sensei'), '<a href="'.get_permalink($message_id).'">', '</a>'); ?></p>
41 41
 
42
-<?php do_action( 'sensei_after_email_content', $template ); ?>
43 42
\ No newline at end of file
43
+<?php do_action('sensei_after_email_content', $template); ?>
44 44
\ 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.
templates/emails/learner-completed-course.php 3 patches
Spacing   +6 added lines, -6 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,10 +21,10 @@  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 printf( __( 'You have completed and %1$s the course', 'woothemes-sensei' ), $passed ); ?></p>
26
+<p style="<?php echo esc_attr($small); ?>"><?php printf(__('You have completed and %1$s the course', 'woothemes-sensei'), $passed); ?></p>
27 27
 
28
-<h2 style="<?php echo esc_attr( $large ); ?>"><?php echo get_the_title( $course_id ); ?></h2>
28
+<h2 style="<?php echo esc_attr($large); ?>"><?php echo get_the_title($course_id); ?></h2>
29 29
 
30
-<?php do_action( 'sensei_after_email_content', $template ); ?>
31 30
\ No newline at end of file
31
+<?php do_action('sensei_after_email_content', $template); ?>
32 32
\ No newline at end of file
Please login to merge, or discard this 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.
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.
templates/emails/new-message-reply.php 2 patches
Spacing   +9 added lines, -9 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
-<h2 style="<?php echo esc_attr( $large ); ?>"><?php echo $commenter_name; ?></h2>
26
+<h2 style="<?php echo esc_attr($large); ?>"><?php echo $commenter_name; ?></h2>
27 27
 
28
-<p style="<?php echo esc_attr( $small ); ?>"><?php printf( __( 'has replied to your private message regarding the %1$s', 'woothemes-sensei' ), $content_type ); ?></p>
28
+<p style="<?php echo esc_attr($small); ?>"><?php printf(__('has replied to your private message regarding the %1$s', 'woothemes-sensei'), $content_type); ?></p>
29 29
 
30
-<h2 style="<?php echo esc_attr( $large ); ?>"><?php echo $content_title; ?></h2>
30
+<h2 style="<?php echo esc_attr($large); ?>"><?php echo $content_title; ?></h2>
31 31
 
32 32
 <hr/>
33 33
 
34
-<?php echo wpautop( $message ); ?>
34
+<?php echo wpautop($message); ?>
35 35
 
36 36
 <hr/>
37 37
 
38
-<p style="<?php echo esc_attr( $small ); ?>"><?php printf( __( 'You can view the message and reply %1$shere%2$s.', 'woothemes-sensei' ), '<a href="' . $comment_link . '">', '</a>' ); ?></p>
38
+<p style="<?php echo esc_attr($small); ?>"><?php printf(__('You can view the message and reply %1$shere%2$s.', 'woothemes-sensei'), '<a href="'.$comment_link.'">', '</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.
templates/emails/teacher-new-course-assignment.php 3 patches
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.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * @author WooThemes
6 6
  * @package Sensei/Templates/Emails/HTML
7 7
  */
8
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
8
+if ( ! defined('ABSPATH')) exit; // Exit if accessed directly
9 9
 
10 10
 // Get data for email content
11 11
 global $sensei_email_data;
@@ -15,33 +15,33 @@  discard block
 block discarded – undo
15 15
 
16 16
 $style_large = "text-align: center !important;font-size: 350% !important;line-height: 100% !important;";
17 17
 
18
-do_action( 'sensei_before_email_content', $template );
18
+do_action('sensei_before_email_content', $template);
19 19
 ?>
20 20
 
21
-<p style="<?php echo esc_attr( $style_small ); ?>">
22
-    <?php _e( 'The Course', 'woothemes-sensei' ); ?>
21
+<p style="<?php echo esc_attr($style_small); ?>">
22
+    <?php _e('The Course', 'woothemes-sensei'); ?>
23 23
 </p>
24 24
 
25
-<h2 style="<?php echo esc_attr( $style_large ); ?>">
25
+<h2 style="<?php echo esc_attr($style_large); ?>">
26 26
     <?php echo $sensei_email_data['course_name']; ?>
27 27
 </h2>
28 28
 
29
-<p style="<?php echo esc_attr( $style_small ); ?>">
30
-    <?php _e( 'has been assigned to you.', 'woothemes-sensei' ); ?>
29
+<p style="<?php echo esc_attr($style_small); ?>">
30
+    <?php _e('has been assigned to you.', 'woothemes-sensei'); ?>
31 31
 </p>
32 32
 
33 33
 <hr/>
34 34
 
35
-<p style="<?php echo esc_attr( $style_small ); ?>">
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
44 44
 
45
-do_action( 'sensei_after_email_content', $sensei_email_data['template'] );
45
+do_action('sensei_after_email_content', $sensei_email_data['template']);
46 46
 
47 47
 ?>
48 48
\ 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
@@ -1,5 +1,8 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
5
+// Exit if accessed directly
3 6
 
4 7
 /**
5 8
  * Sensei Analysis User Profile List Table Class
Please login to merge, or discard this patch.
templates/emails/footer.php 3 patches
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.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,21 +7,21 @@  discard block
 block discarded – undo
7 7
  * @version     1.6.0
8 8
  */
9 9
 
10
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
10
+if ( ! defined('ABSPATH')) exit; // Exit if accessed directly
11 11
 
12 12
 global $sensei_email_data;
13
-extract( $sensei_email_data );
13
+extract($sensei_email_data);
14 14
 
15 15
 // Load colours
16 16
 $base = '#557da1';
17
-if( isset( Sensei()->settings->settings['email_base_color'] ) && '' != Sensei()->settings->settings['email_base_color'] ) {
17
+if (isset(Sensei()->settings->settings['email_base_color']) && '' != Sensei()->settings->settings['email_base_color']) {
18 18
     $base = Sensei()->settings->settings['email_base_color'];
19 19
 }
20 20
 
21
-$base_lighter_40 = sensei_hex_lighter( $base, 40 );
21
+$base_lighter_40 = sensei_hex_lighter($base, 40);
22 22
 
23
-$footer_text = sprintf( __( '%1$s - Powered by Sensei', 'woothemes-sensei' ), get_bloginfo( 'name' ) );
24
-if( isset( Sensei()->settings->settings['email_footer_text'] ) ) {
23
+$footer_text = sprintf(__('%1$s - Powered by Sensei', 'woothemes-sensei'), get_bloginfo('name'));
24
+if (isset(Sensei()->settings->settings['email_footer_text'])) {
25 25
     $footer_text = Sensei()->settings->settings['email_footer_text'];
26 26
 }
27 27
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                                                 <table border="0" cellpadding="10" cellspacing="0" width="100%">
61 61
                                                     <tr>
62 62
                                                         <td colspan="2" valign="middle" id="credit" style="<?php echo $credit; ?>">
63
-                                                        	<?php echo wpautop( wp_kses_post( wptexturize( apply_filters( 'sensei_email_footer_text', $footer_text ) ) ) ); ?>
63
+                                                        	<?php echo wpautop(wp_kses_post(wptexturize(apply_filters('sensei_email_footer_text', $footer_text)))); ?>
64 64
                                                         </td>
65 65
                                                     </tr>
66 66
                                                 </table>
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
5
+// Exit if accessed directly
3 6
 
4 7
 /**
5 8
  * Sensei Analysis User Profile List Table Class
Please login to merge, or discard this patch.