@@ -86,7 +86,7 @@ |
||
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; |
@@ -201,7 +201,7 @@ |
||
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; |
@@ -1,24 +1,24 @@ |
||
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 |
@@ -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 |
@@ -1,15 +1,15 @@ |
||
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'; |
@@ -1,24 +1,24 @@ discard block |
||
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 |
||
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' ] ) { ?> |
@@ -1,67 +1,67 @@ |
||
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 | ?> |
@@ -15,19 +15,19 @@ discard block |
||
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 |
||
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(); ?> |
@@ -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 |