@@ -1,29 +1,29 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The Template for displaying lesson archives, including the lesson page template. |
|
4 | - * This template also handels the lesson modules taxonomy and the lessons_tag taxonomy. |
|
5 | - * |
|
6 | - * Override this template by copying it to your_theme/sensei/archive-lesson.php |
|
7 | - * |
|
8 | - * @author Automattic |
|
9 | - * @package Sensei |
|
10 | - * @category Templates |
|
11 | - * @version 1.9.0 |
|
12 | - */ |
|
3 | + * The Template for displaying lesson archives, including the lesson page template. |
|
4 | + * This template also handels the lesson modules taxonomy and the lessons_tag taxonomy. |
|
5 | + * |
|
6 | + * Override this template by copying it to your_theme/sensei/archive-lesson.php |
|
7 | + * |
|
8 | + * @author Automattic |
|
9 | + * @package Sensei |
|
10 | + * @category Templates |
|
11 | + * @version 1.9.0 |
|
12 | + */ |
|
13 | 13 | ?> |
14 | 14 | |
15 | 15 | <?php get_sensei_header(); ?> |
16 | 16 | |
17 | 17 | <?php |
18 | 18 | |
19 | - /** |
|
20 | - * Action before lesson archive loop. This action runs within the archive-lesson.php. |
|
21 | - * |
|
22 | - * It will be executed even if there are no posts on the archive page. |
|
23 | - */ |
|
24 | - do_action( 'sensei_archive_before_lesson_loop' ); |
|
19 | + /** |
|
20 | + * Action before lesson archive loop. This action runs within the archive-lesson.php. |
|
21 | + * |
|
22 | + * It will be executed even if there are no posts on the archive page. |
|
23 | + */ |
|
24 | + do_action( 'sensei_archive_before_lesson_loop' ); |
|
25 | 25 | |
26 | - ?> |
|
26 | + ?> |
|
27 | 27 | |
28 | 28 | <?php if ( have_posts() ): ?> |
29 | 29 | |
@@ -37,12 +37,12 @@ discard block |
||
37 | 37 | |
38 | 38 | <?php |
39 | 39 | |
40 | - /** |
|
41 | - * Action after lesson archive loop on the archive-lesson.php template file |
|
42 | - * It will be executed even if there are no posts on the archive page. |
|
43 | - * |
|
44 | - * @since 1.9.0 |
|
45 | - */ |
|
46 | - do_action( 'sensei_archive_after_lesson_loop' ); |
|
47 | - ?> |
|
40 | + /** |
|
41 | + * Action after lesson archive loop on the archive-lesson.php template file |
|
42 | + * It will be executed even if there are no posts on the archive page. |
|
43 | + * |
|
44 | + * @since 1.9.0 |
|
45 | + */ |
|
46 | + do_action( 'sensei_archive_after_lesson_loop' ); |
|
47 | + ?> |
|
48 | 48 | <?php get_sensei_footer(); ?> |
@@ -1,65 +1,65 @@ |
||
1 | 1 | <?php |
2 | 2 | if ( ! defined( 'ABSPATH' ) ) exit; |
3 | 3 | /** |
4 | - * The Template for outputting Lesson Archive items |
|
5 | - * |
|
6 | - * Override this template by copying it to yourtheme/sensei/loop-lesson.php |
|
7 | - * |
|
8 | - * @author Automattic |
|
9 | - * @package Sensei |
|
10 | - * @category Templates |
|
11 | - * @version 1.9.0 |
|
12 | - */ |
|
4 | + * The Template for outputting Lesson Archive items |
|
5 | + * |
|
6 | + * Override this template by copying it to yourtheme/sensei/loop-lesson.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 post type items in the loop-lesson.php template. |
|
18 | - * |
|
19 | - * @since 1.9 |
|
20 | - */ |
|
17 | + * This runs before the post type items in the loop-lesson.php template. |
|
18 | + * |
|
19 | + * @since 1.9 |
|
20 | + */ |
|
21 | 21 | do_action( 'sensei_loop_lesson_before' ); |
22 | 22 | ?> |
23 | 23 | |
24 | 24 | <section class="lesson-container" > |
25 | 25 | |
26 | 26 | <?php |
27 | - /** |
|
28 | - * This runs before the lesson items in the loop-lesson.php template. |
|
29 | - * |
|
30 | - * @since 1.9.0 |
|
31 | - * |
|
32 | - * @hooked Sensei()->lesson->lesson_tag_archive_description - 11 |
|
33 | - * @hooked Sensei()->lesson->the_archive_header - 20 |
|
34 | - */ |
|
35 | - do_action( 'sensei_loop_lesson_inside_before' ); |
|
36 | - ?> |
|
27 | + /** |
|
28 | + * This runs before the lesson items in the loop-lesson.php template. |
|
29 | + * |
|
30 | + * @since 1.9.0 |
|
31 | + * |
|
32 | + * @hooked Sensei()->lesson->lesson_tag_archive_description - 11 |
|
33 | + * @hooked Sensei()->lesson->the_archive_header - 20 |
|
34 | + */ |
|
35 | + do_action( 'sensei_loop_lesson_inside_before' ); |
|
36 | + ?> |
|
37 | 37 | |
38 | 38 | |
39 | 39 | <?php |
40 | - //Loop through all lessons |
|
41 | - while ( have_posts() ) { the_post(); |
|
40 | + //Loop through all lessons |
|
41 | + while ( have_posts() ) { the_post(); |
|
42 | 42 | |
43 | - sensei_load_template_part( 'content', 'lesson' ); |
|
43 | + sensei_load_template_part( 'content', 'lesson' ); |
|
44 | 44 | |
45 | - } |
|
46 | - ?> |
|
45 | + } |
|
46 | + ?> |
|
47 | 47 | |
48 | 48 | <?php |
49 | - /** |
|
50 | - * This runs inside the <ul> after the lesson items in the loop-lesson.php template. |
|
51 | - * |
|
52 | - * @since 1.9.0 |
|
53 | - */ |
|
54 | - do_action( 'sensei_loop_lesson_inside_after' ); |
|
55 | - ?> |
|
49 | + /** |
|
50 | + * This runs inside the <ul> after the lesson items in the loop-lesson.php template. |
|
51 | + * |
|
52 | + * @since 1.9.0 |
|
53 | + */ |
|
54 | + do_action( 'sensei_loop_lesson_inside_after' ); |
|
55 | + ?> |
|
56 | 56 | |
57 | 57 | </section> |
58 | 58 | |
59 | 59 | <?php |
60 | 60 | /** |
61 | - * This runs after the lesson items <ul> in the loop-lesson.php template. |
|
62 | - * |
|
63 | - * @since 1.9.0 |
|
64 | - */ |
|
61 | + * This runs after the lesson items <ul> in the loop-lesson.php template. |
|
62 | + * |
|
63 | + * @since 1.9.0 |
|
64 | + */ |
|
65 | 65 | do_action( 'sensei_loop_lesson_after' ); |
@@ -13,23 +13,23 @@ |
||
13 | 13 | global $wp_query; |
14 | 14 | |
15 | 15 | if ( $wp_query->max_num_pages <= 1 ) { |
16 | - return; |
|
16 | + return; |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | ?> |
20 | 20 | <nav class="sensei-pagination"> |
21 | 21 | <?php |
22 | - echo paginate_links( apply_filters( 'sensei_pagination_args', array( |
|
23 | - 'base' => esc_url_raw( str_replace( 999999999, '%#%', get_pagenum_link( 999999999, false ) ) ), |
|
24 | - 'format' => '', |
|
25 | - 'add_args' => '', |
|
26 | - 'current' => max( 1, get_query_var( 'paged' ) ), |
|
27 | - 'total' => $wp_query->max_num_pages, |
|
28 | - 'prev_text' => '←', |
|
29 | - 'next_text' => '→', |
|
30 | - 'type' => 'list', |
|
31 | - 'end_size' => 3, |
|
32 | - 'mid_size' => 3 |
|
33 | - ) ) ); |
|
34 | - ?> |
|
22 | + echo paginate_links( apply_filters( 'sensei_pagination_args', array( |
|
23 | + 'base' => esc_url_raw( str_replace( 999999999, '%#%', get_pagenum_link( 999999999, false ) ) ), |
|
24 | + 'format' => '', |
|
25 | + 'add_args' => '', |
|
26 | + 'current' => max( 1, get_query_var( 'paged' ) ), |
|
27 | + 'total' => $wp_query->max_num_pages, |
|
28 | + 'prev_text' => '←', |
|
29 | + 'next_text' => '→', |
|
30 | + 'type' => 'list', |
|
31 | + 'end_size' => 3, |
|
32 | + 'mid_size' => 3 |
|
33 | + ) ) ); |
|
34 | + ?> |
|
35 | 35 | </nav> |
@@ -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"> |
@@ -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 |
@@ -15,14 +15,14 @@ |
||
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. |
@@ -1,27 +1,27 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The Template for displaying course archives, including the course page template. |
|
4 | - * |
|
5 | - * Override this template by copying it to yourtheme/sensei/archive-course.php |
|
6 | - * |
|
7 | - * @author Automattic |
|
8 | - * @package Sensei |
|
9 | - * @category Templates |
|
10 | - * @version 1.9.0 |
|
11 | - */ |
|
3 | + * The Template for displaying course archives, including the course page template. |
|
4 | + * |
|
5 | + * Override this template by copying it to yourtheme/sensei/archive-course.php |
|
6 | + * |
|
7 | + * @author Automattic |
|
8 | + * @package Sensei |
|
9 | + * @category Templates |
|
10 | + * @version 1.9.0 |
|
11 | + */ |
|
12 | 12 | ?> |
13 | 13 | |
14 | 14 | <?php get_sensei_header(); ?> |
15 | 15 | |
16 | 16 | <?php |
17 | 17 | /** |
18 | - * This hook fire inside learner-profile.php before the content |
|
19 | - * |
|
20 | - * @since 1.9.0 |
|
21 | - * |
|
22 | - * @hooked Sensei_Learner_Profiles::deprecate_sensei_learner_profile_content_hook - 10 |
|
23 | - * @hooked Sensei_Templates::fire_sensei_complete_course_hook - 20 |
|
24 | - */ |
|
18 | + * This hook fire inside learner-profile.php before the content |
|
19 | + * |
|
20 | + * @since 1.9.0 |
|
21 | + * |
|
22 | + * @hooked Sensei_Learner_Profiles::deprecate_sensei_learner_profile_content_hook - 10 |
|
23 | + * @hooked Sensei_Templates::fire_sensei_complete_course_hook - 20 |
|
24 | + */ |
|
25 | 25 | do_action( 'sensei_learner_profile_content_before' ); |
26 | 26 | ?> |
27 | 27 | |
@@ -30,15 +30,15 @@ discard block |
||
30 | 30 | <section id="learner-info" class="learner-info entry fix"> |
31 | 31 | |
32 | 32 | <?php |
33 | - /** |
|
34 | - * This hook fire inside learner-profile.php inside directly before the content |
|
35 | - * |
|
36 | - * @since 1.9.0 |
|
37 | - * |
|
38 | - * @hooked Sensei_Templates::fire_frontend_messages_hook |
|
39 | - */ |
|
40 | - do_action( 'sensei_learner_profile_inside_content_before' ); |
|
41 | - ?> |
|
33 | + /** |
|
34 | + * This hook fire inside learner-profile.php inside directly before the content |
|
35 | + * |
|
36 | + * @since 1.9.0 |
|
37 | + * |
|
38 | + * @hooked Sensei_Templates::fire_frontend_messages_hook |
|
39 | + */ |
|
40 | + do_action( 'sensei_learner_profile_inside_content_before' ); |
|
41 | + ?> |
|
42 | 42 | |
43 | 43 | <?php $learner_user = get_user_by( 'slug', get_query_var('learner_profile') ); // get requested learner object ?> |
44 | 44 | |
@@ -46,17 +46,17 @@ discard block |
||
46 | 46 | |
47 | 47 | <?php |
48 | 48 | |
49 | - // show the user information |
|
50 | - Sensei_Learner_Profiles::user_info( $learner_user ); |
|
49 | + // show the user information |
|
50 | + Sensei_Learner_Profiles::user_info( $learner_user ); |
|
51 | 51 | |
52 | - ?> |
|
52 | + ?> |
|
53 | 53 | |
54 | 54 | <?php |
55 | 55 | |
56 | - // show the user courses |
|
57 | - Sensei()->course->load_user_courses_content( $learner_user ); |
|
56 | + // show the user courses |
|
57 | + Sensei()->course->load_user_courses_content( $learner_user ); |
|
58 | 58 | |
59 | - ?> |
|
59 | + ?> |
|
60 | 60 | |
61 | 61 | <?php }else{ ?> |
62 | 62 | |
@@ -69,13 +69,13 @@ discard block |
||
69 | 69 | <?php } ?> |
70 | 70 | |
71 | 71 | <?php |
72 | - /** |
|
73 | - * This hook fire inside learner-profile.php inside directly after the content |
|
74 | - * |
|
75 | - * @since 1.9.0 |
|
76 | - */ |
|
77 | - do_action( 'sensei_learner_profile_inside_content_after' ); |
|
78 | - ?> |
|
72 | + /** |
|
73 | + * This hook fire inside learner-profile.php inside directly after the content |
|
74 | + * |
|
75 | + * @since 1.9.0 |
|
76 | + */ |
|
77 | + do_action( 'sensei_learner_profile_inside_content_after' ); |
|
78 | + ?> |
|
79 | 79 | |
80 | 80 | </section> |
81 | 81 | |
@@ -83,10 +83,10 @@ discard block |
||
83 | 83 | |
84 | 84 | <?php |
85 | 85 | /** |
86 | - * This hook fire inside learner-profile.php after the content |
|
87 | - * |
|
88 | - * @since 1.9.0 |
|
89 | - */ |
|
86 | + * This hook fire inside learner-profile.php after the content |
|
87 | + * |
|
88 | + * @since 1.9.0 |
|
89 | + */ |
|
90 | 90 | do_action( 'sensei_learner_profile_content_after' ); |
91 | 91 | ?> |
92 | 92 |
@@ -1,27 +1,27 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The Template for displaying message archives. |
|
4 | - * |
|
5 | - * Override this template by copying it to yourtheme/sensei/archive-message.php |
|
6 | - * |
|
7 | - * @author Automattic |
|
8 | - * @package Sensei |
|
9 | - * @category Templates |
|
10 | - * @version 1.9.0 |
|
11 | - */ |
|
3 | + * The Template for displaying message archives. |
|
4 | + * |
|
5 | + * Override this template by copying it to yourtheme/sensei/archive-message.php |
|
6 | + * |
|
7 | + * @author Automattic |
|
8 | + * @package Sensei |
|
9 | + * @category Templates |
|
10 | + * @version 1.9.0 |
|
11 | + */ |
|
12 | 12 | ?> |
13 | 13 | |
14 | 14 | <?php get_sensei_header(); ?> |
15 | 15 | |
16 | 16 | <?php |
17 | 17 | /** |
18 | - * This action before course messages archive loop. This hook fires within the archive-message.php file. |
|
19 | - * It fires even if the current archive has no no messages. |
|
20 | - * |
|
21 | - * @since 1.9.0 |
|
22 | - * |
|
23 | - * @hooked Sensei_Messages::the_archive_header -20 |
|
24 | - */ |
|
18 | + * This action before course messages archive loop. This hook fires within the archive-message.php file. |
|
19 | + * It fires even if the current archive has no no messages. |
|
20 | + * |
|
21 | + * @since 1.9.0 |
|
22 | + * |
|
23 | + * @hooked Sensei_Messages::the_archive_header -20 |
|
24 | + */ |
|
25 | 25 | do_action( 'sensei_archive_before_message_loop' ); |
26 | 26 | ?> |
27 | 27 | |
@@ -41,11 +41,11 @@ discard block |
||
41 | 41 | |
42 | 42 | <?php |
43 | 43 | /** |
44 | - * This action before course messages archive loop. This hook fires within the archive-message.php file. |
|
45 | - * It fires even if the current archive has no no messages. |
|
46 | - * |
|
47 | - * @since 1.9.0 |
|
48 | - */ |
|
44 | + * This action before course messages archive loop. This hook fires within the archive-message.php file. |
|
45 | + * It fires even if the current archive has no no messages. |
|
46 | + * |
|
47 | + * @since 1.9.0 |
|
48 | + */ |
|
49 | 49 | do_action( 'sensei_archive_after_message_loop' ); |
50 | 50 | ?> |
51 | 51 |
@@ -27,13 +27,13 @@ discard block |
||
27 | 27 | <form method="post" name="sensi-login-form" id="loginform" class="login sensei"> |
28 | 28 | |
29 | 29 | <?php |
30 | - /** |
|
31 | - * Executes inside the sensei login form before all the default fields. |
|
32 | - * |
|
33 | - * @since 1.6.2 |
|
34 | - */ |
|
35 | - do_action( 'sensei_login_form_inside_before' ); |
|
36 | - ?> |
|
30 | + /** |
|
31 | + * Executes inside the sensei login form before all the default fields. |
|
32 | + * |
|
33 | + * @since 1.6.2 |
|
34 | + */ |
|
35 | + do_action( 'sensei_login_form_inside_before' ); |
|
36 | + ?> |
|
37 | 37 | |
38 | 38 | <p class="sensei-login-username form-row form-row-wide"> |
39 | 39 | |
@@ -52,15 +52,15 @@ discard block |
||
52 | 52 | </p> |
53 | 53 | |
54 | 54 | <?php |
55 | - /** |
|
56 | - * Executes inside the sensei login form after the password field. |
|
57 | - * |
|
58 | - * You can use the action to add extra form login fields. |
|
59 | - * |
|
60 | - * @since 1.6.2 |
|
61 | - */ |
|
62 | - do_action( 'sensei_login_form_inside_after_password_field' ); |
|
63 | - ?> |
|
55 | + /** |
|
56 | + * Executes inside the sensei login form after the password field. |
|
57 | + * |
|
58 | + * You can use the action to add extra form login fields. |
|
59 | + * |
|
60 | + * @since 1.6.2 |
|
61 | + */ |
|
62 | + do_action( 'sensei_login_form_inside_after_password_field' ); |
|
63 | + ?> |
|
64 | 64 | |
65 | 65 | <p class='sensei-login-submit'> |
66 | 66 | |
@@ -81,13 +81,13 @@ discard block |
||
81 | 81 | </p> |
82 | 82 | |
83 | 83 | <?php |
84 | - /** |
|
85 | - * Executes inside the sensei login form after all the default fields. |
|
86 | - * |
|
87 | - * @since 1.6.2 |
|
88 | - */ |
|
89 | - do_action( 'sensei_login_form_inside_after' ); |
|
90 | - ?> |
|
84 | + /** |
|
85 | + * Executes inside the sensei login form after all the default fields. |
|
86 | + * |
|
87 | + * @since 1.6.2 |
|
88 | + */ |
|
89 | + do_action( 'sensei_login_form_inside_after' ); |
|
90 | + ?> |
|
91 | 91 | |
92 | 92 | <?php wp_nonce_field( 'sensei-login' ); ?> |
93 | 93 | |
@@ -101,9 +101,9 @@ discard block |
||
101 | 101 | |
102 | 102 | <?php |
103 | 103 | /** |
104 | - * Executes after the Login form markup closes. |
|
105 | - * |
|
106 | - * @since 1.9.0 |
|
107 | - */ |
|
104 | + * Executes after the Login form markup closes. |
|
105 | + * |
|
106 | + * @since 1.9.0 |
|
107 | + */ |
|
108 | 108 | do_action( 'sensei_login_form_after' ); |
109 | 109 | ?> |
110 | 110 | \ No newline at end of file |