@@ -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,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,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 |
@@ -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 |
@@ -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 |
@@ -7,21 +7,21 @@ 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 | 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 |
||
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> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
2 | +if ( ! defined('ABSPATH')) exit; |
|
3 | 3 | /** |
4 | 4 | * The Template for displaying all single course meta information. |
5 | 5 | * |
@@ -22,17 +22,17 @@ discard block |
||
22 | 22 | * @hooked WooThemes_Sensei_Course::load_single_course_lessons_query |
23 | 23 | * @since 1.9.0 |
24 | 24 | */ |
25 | - do_action( 'sensei_single_course_lessons_before' ); |
|
25 | + do_action('sensei_single_course_lessons_before'); |
|
26 | 26 | |
27 | 27 | ?> |
28 | 28 | |
29 | 29 | <?php |
30 | 30 | |
31 | 31 | //lessons loaded into loop in the sensei_single_course_lessons_before hook |
32 | - if( have_posts() ): |
|
32 | + if (have_posts()): |
|
33 | 33 | |
34 | 34 | // start course lessons loop |
35 | - while ( have_posts() ): the_post(); ?> |
|
35 | + while (have_posts()): the_post(); ?> |
|
36 | 36 | |
37 | 37 | <article <?php post_class(); ?> > |
38 | 38 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * @hooked WooThemes_Sensei_Lesson::the_lesson_thumbnail - 8 |
51 | 51 | * |
52 | 52 | */ |
53 | - do_action( 'sensei_single_course_inside_before_lesson', get_the_ID() ); |
|
53 | + do_action('sensei_single_course_inside_before_lesson', get_the_ID()); |
|
54 | 54 | |
55 | 55 | ?> |
56 | 56 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * |
76 | 76 | * @since 1.9.0 |
77 | 77 | */ |
78 | - do_action( 'sensei_single_course_inside_after_lesson', get_the_ID() ); |
|
78 | + do_action('sensei_single_course_inside_after_lesson', get_the_ID()); |
|
79 | 79 | |
80 | 80 | ?> |
81 | 81 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | |
89 | 89 | <?php else: ?> |
90 | 90 | |
91 | - <?php _e('Sorry, this course has no lessons yet.','woothemes-sensei'); ?> |
|
91 | + <?php _e('Sorry, this course has no lessons yet.', 'woothemes-sensei'); ?> |
|
92 | 92 | |
93 | 93 | <?php endif; ?> |
94 | 94 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * |
102 | 102 | * @since 1.9.0 |
103 | 103 | */ |
104 | - do_action( 'sensei_single_course_lessons_after' ); |
|
104 | + do_action('sensei_single_course_lessons_after'); |
|
105 | 105 | |
106 | 106 | ?> |
107 | 107 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
2 | +if ( ! defined('ABSPATH')) exit; |
|
3 | 3 | /** |
4 | 4 | * List the Course Modules and Lesson in these modules |
5 | 5 | * |
@@ -30,10 +30,10 @@ discard block |
||
30 | 30 | |
31 | 31 | ?> |
32 | 32 | |
33 | -<?php if( sensei_have_modules() ): ?> |
|
33 | +<?php if (sensei_have_modules()): ?> |
|
34 | 34 | |
35 | - <?php while ( sensei_have_modules() ): sensei_setup_module(); ?> |
|
36 | - <?php if( sensei_module_has_lessons() ): ?> |
|
35 | + <?php while (sensei_have_modules()): sensei_setup_module(); ?> |
|
36 | + <?php if (sensei_module_has_lessons()): ?> |
|
37 | 37 | |
38 | 38 | <article class="module"> |
39 | 39 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | <h2> |
59 | 59 | |
60 | - <a href="<?php sensei_the_module_permalink(); ?>" title="<?php sensei_the_module_title_attribute();?>"> |
|
60 | + <a href="<?php sensei_the_module_permalink(); ?>" title="<?php sensei_the_module_title_attribute(); ?>"> |
|
61 | 61 | |
62 | 62 | <?php sensei_the_module_title(); ?> |
63 | 63 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | <ul class="lessons-list" > |
81 | 81 | |
82 | - <?php while( sensei_module_has_lessons() ): the_post(); ?> |
|
82 | + <?php while (sensei_module_has_lessons()): the_post(); ?> |
|
83 | 83 | |
84 | 84 | <li class="' . $status . '"> |
85 | 85 |
@@ -11,9 +11,9 @@ discard block |
||
11 | 11 | */ |
12 | 12 | ?> |
13 | 13 | |
14 | -<?php get_sensei_header(); ?> |
|
14 | +<?php get_sensei_header(); ?> |
|
15 | 15 | |
16 | -<article <?php post_class( array( 'course', 'post' ) ); ?>> |
|
16 | +<article <?php post_class(array('course', 'post')); ?>> |
|
17 | 17 | |
18 | 18 | <?php |
19 | 19 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @hooked Sensei()->message->send_message_link - 35 |
30 | 30 | * @hooked Sensei_Course::the_course_video - 40 |
31 | 31 | */ |
32 | - do_action( 'sensei_single_course_content_inside_before' ); |
|
32 | + do_action('sensei_single_course_content_inside_before'); |
|
33 | 33 | |
34 | 34 | ?> |
35 | 35 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @hooked |
50 | 50 | * |
51 | 51 | */ |
52 | - do_action( 'sensei_single_course_content_inside_after' ); |
|
52 | + do_action('sensei_single_course_content_inside_after'); |
|
53 | 53 | |
54 | 54 | ?> |
55 | 55 | </article><!-- .post .single-course --> |