@@ -107,11 +107,11 @@ |
||
107 | 107 | <tr> |
108 | 108 | <td align="center" valign="top"> |
109 | 109 | <?php |
110 | - if ( isset( Sensei()->settings->settings['email_header_image'] ) && '' != Sensei()->settings->settings['email_header_image'] ) { |
|
111 | - $img = Sensei()->settings->settings['email_header_image']; |
|
112 | - echo '<p style="margin-top:0;"><img src="' . esc_url( $img ) . '" alt="' . get_bloginfo( 'name' ) . '" /></p>'; |
|
113 | - } |
|
114 | - ?> |
|
110 | + if ( isset( Sensei()->settings->settings['email_header_image'] ) && '' != Sensei()->settings->settings['email_header_image'] ) { |
|
111 | + $img = Sensei()->settings->settings['email_header_image']; |
|
112 | + echo '<p style="margin-top:0;"><img src="' . esc_url( $img ) . '" alt="' . get_bloginfo( 'name' ) . '" /></p>'; |
|
113 | + } |
|
114 | + ?> |
|
115 | 115 | <table border="0" cellpadding="0" cellspacing="0" width="600" id="template_container" style="<?php echo $template_container; ?>"> |
116 | 116 | <tr> |
117 | 117 | <td align="center" valign="top"> |
@@ -7,41 +7,41 @@ discard block |
||
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 | // Get data for email content |
13 | 13 | global $sensei_email_data; |
14 | -extract( $sensei_email_data ); |
|
14 | +extract($sensei_email_data); |
|
15 | 15 | |
16 | 16 | // Load colours |
17 | 17 | $bg = '#f5f5f5'; |
18 | -if( isset( Sensei()->settings->settings['email_background_color'] ) && '' != Sensei()->settings->settings['email_background_color'] ) { |
|
18 | +if (isset(Sensei()->settings->settings['email_background_color']) && '' != Sensei()->settings->settings['email_background_color']) { |
|
19 | 19 | $bg = Sensei()->settings->settings['email_background_color']; |
20 | 20 | } |
21 | 21 | |
22 | 22 | $body = '#fdfdfd'; |
23 | -if( isset( Sensei()->settings->settings['email_body_background_color'] ) && '' != Sensei()->settings->settings['email_body_background_color'] ) { |
|
23 | +if (isset(Sensei()->settings->settings['email_body_background_color']) && '' != Sensei()->settings->settings['email_body_background_color']) { |
|
24 | 24 | $body = Sensei()->settings->settings['email_body_background_color']; |
25 | 25 | } |
26 | 26 | |
27 | 27 | $base = '#557da1'; |
28 | -if( isset( Sensei()->settings->settings['email_base_color'] ) && '' != Sensei()->settings->settings['email_base_color'] ) { |
|
28 | +if (isset(Sensei()->settings->settings['email_base_color']) && '' != Sensei()->settings->settings['email_base_color']) { |
|
29 | 29 | $base = Sensei()->settings->settings['email_base_color']; |
30 | 30 | } |
31 | -$base_text = sensei_light_or_dark( $base, '#202020', '#ffffff' ); |
|
31 | +$base_text = sensei_light_or_dark($base, '#202020', '#ffffff'); |
|
32 | 32 | |
33 | 33 | $text = '#505050'; |
34 | -if( isset( Sensei()->settings->settings['email_text_color'] ) && '' != Sensei()->settings->settings['email_text_color'] ) { |
|
34 | +if (isset(Sensei()->settings->settings['email_text_color']) && '' != Sensei()->settings->settings['email_text_color']) { |
|
35 | 35 | $text = Sensei()->settings->settings['email_text_color']; |
36 | 36 | } |
37 | 37 | |
38 | -$bg_darker_10 = sensei_hex_darker( $bg, 10 ); |
|
39 | -$base_lighter_20 = sensei_hex_lighter( $base, 20 ); |
|
40 | -$text_lighter_20 = sensei_hex_lighter( $text, 20 ); |
|
38 | +$bg_darker_10 = sensei_hex_darker($bg, 10); |
|
39 | +$base_lighter_20 = sensei_hex_lighter($base, 20); |
|
40 | +$text_lighter_20 = sensei_hex_lighter($text, 20); |
|
41 | 41 | |
42 | 42 | // 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. |
43 | 43 | $wrapper = " |
44 | - background-color: " . esc_attr( $bg ) . "; |
|
44 | + background-color: " . esc_attr($bg)."; |
|
45 | 45 | width:100%; |
46 | 46 | -webkit-text-size-adjust:none !important; |
47 | 47 | margin:0; |
@@ -52,13 +52,13 @@ discard block |
||
52 | 52 | box-shadow:0 0 0 3px rgba(0,0,0,0.025) !important; |
53 | 53 | -webkit-border-radius:6px !important; |
54 | 54 | border-radius:6px !important; |
55 | - background-color: " . esc_attr( $body ) . "; |
|
55 | + background-color: " . esc_attr($body)."; |
|
56 | 56 | border: 1px solid $bg_darker_10; |
57 | 57 | -webkit-border-radius:6px !important; |
58 | 58 | border-radius:6px !important; |
59 | 59 | "; |
60 | 60 | $template_header = " |
61 | - background-color: " . esc_attr( $base ) ."; |
|
61 | + background-color: " . esc_attr($base)."; |
|
62 | 62 | color: $base_text; |
63 | 63 | -webkit-border-top-left-radius:6px !important; |
64 | 64 | -webkit-border-top-right-radius:6px !important; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | vertical-align:middle; |
72 | 72 | "; |
73 | 73 | $body_content = " |
74 | - background-color: " . esc_attr( $body ) . "; |
|
74 | + background-color: " . esc_attr($body)."; |
|
75 | 75 | -webkit-border-radius:6px !important; |
76 | 76 | border-radius:6px !important; |
77 | 77 | "; |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | text-align:left; |
84 | 84 | "; |
85 | 85 | $header_content_h1 = " |
86 | - color: " . esc_attr( $base_text ) . "; |
|
86 | + color: " . esc_attr($base_text)."; |
|
87 | 87 | margin:0; |
88 | 88 | padding: 28px 24px; |
89 | 89 | text-shadow: 0 1px 0 $base_lighter_20; |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | <html> |
100 | 100 | <head> |
101 | 101 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
102 | - <title><?php echo get_bloginfo( 'name' ); ?></title> |
|
102 | + <title><?php echo get_bloginfo('name'); ?></title> |
|
103 | 103 | </head> |
104 | 104 | <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"> |
105 | 105 | <div style="<?php echo $wrapper; ?>"> |
@@ -107,9 +107,9 @@ discard block |
||
107 | 107 | <tr> |
108 | 108 | <td align="center" valign="top"> |
109 | 109 | <?php |
110 | - if ( isset( Sensei()->settings->settings['email_header_image'] ) && '' != Sensei()->settings->settings['email_header_image'] ) { |
|
110 | + if (isset(Sensei()->settings->settings['email_header_image']) && '' != Sensei()->settings->settings['email_header_image']) { |
|
111 | 111 | $img = Sensei()->settings->settings['email_header_image']; |
112 | - echo '<p style="margin-top:0;"><img src="' . esc_url( $img ) . '" alt="' . get_bloginfo( 'name' ) . '" /></p>'; |
|
112 | + echo '<p style="margin-top:0;"><img src="'.esc_url($img).'" alt="'.get_bloginfo('name').'" /></p>'; |
|
113 | 113 | } |
114 | 114 | ?> |
115 | 115 | <table border="0" cellpadding="0" cellspacing="0" width="600" id="template_container" style="<?php echo $template_container; ?>"> |
@@ -1,5 +1,8 @@ |
||
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 |
@@ -6,13 +6,13 @@ discard block |
||
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 |
||
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 |
@@ -6,7 +6,10 @@ |
||
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 |
@@ -6,13 +6,13 @@ discard block |
||
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 |
||
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 |
@@ -6,7 +6,10 @@ |
||
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 |
@@ -5,7 +5,7 @@ discard block |
||
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 |
||
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 | ?> |
@@ -1,5 +1,8 @@ |
||
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 |
@@ -1,10 +1,10 @@ discard block |
||
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 |
||
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 |
@@ -6,13 +6,13 @@ discard block |
||
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 |
||
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 |
@@ -6,7 +6,10 @@ |
||
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 |
@@ -6,13 +6,13 @@ discard block |
||
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 |
||
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 |
@@ -6,7 +6,10 @@ |
||
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 |
@@ -6,13 +6,13 @@ discard block |
||
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 |
||
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 |
@@ -1,11 +1,11 @@ |
||
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 |
@@ -6,7 +6,10 @@ |
||
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 |
@@ -6,13 +6,13 @@ discard block |
||
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 |
||
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 |
@@ -6,7 +6,10 @@ |
||
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 |
@@ -35,9 +35,9 @@ |
||
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 |
@@ -5,7 +5,7 @@ discard block |
||
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 |
||
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 |
@@ -1,5 +1,8 @@ |
||
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 |