@@ -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 File Upload Questions. |
| 5 | 5 | * |
@@ -18,44 +18,44 @@ discard block |
||
| 18 | 18 | * Get the question data with the current quiz id |
| 19 | 19 | * All data is loaded in this array to keep the template clean. |
| 20 | 20 | */ |
| 21 | - $question_data = WooThemes_Sensei_Question::get_template_data( sensei_get_the_question_id(), get_the_ID() ); |
|
| 21 | + $question_data = WooThemes_Sensei_Question::get_template_data(sensei_get_the_question_id(), get_the_ID()); |
|
| 22 | 22 | |
| 23 | 23 | ?> |
| 24 | 24 | |
| 25 | -<?php if( $question_data[ 'question_helptext' ] ) { ?> |
|
| 25 | +<?php if ($question_data['question_helptext']) { ?> |
|
| 26 | 26 | |
| 27 | - <?php echo apply_filters( 'the_content', $question_data[ 'question_helptext' ] ); ?> |
|
| 27 | + <?php echo apply_filters('the_content', $question_data['question_helptext']); ?> |
|
| 28 | 28 | |
| 29 | 29 | <?php } ?> |
| 30 | 30 | |
| 31 | -<?php if ( $question_data[ 'answer_media_url' ] && $question_data[ 'answer_media_filename' ] ) { ?> |
|
| 31 | +<?php if ($question_data['answer_media_url'] && $question_data['answer_media_filename']) { ?> |
|
| 32 | 32 | |
| 33 | 33 | <p class="submitted_file"> |
| 34 | 34 | |
| 35 | 35 | <?php |
| 36 | 36 | |
| 37 | - printf( __( 'Submitted file: %1$s', 'woothemes-sensei' ), '<a href="' . esc_url( $question_data[ 'answer_media_url' ] ) |
|
| 37 | + printf(__('Submitted file: %1$s', 'woothemes-sensei'), '<a href="'.esc_url($question_data['answer_media_url']) |
|
| 38 | 38 | . '" target="_blank">' |
| 39 | - . esc_html( $question_data[ 'answer_media_filename' ] ) . '</a>' ); |
|
| 39 | + . esc_html($question_data['answer_media_filename']).'</a>'); |
|
| 40 | 40 | |
| 41 | 41 | ?> |
| 42 | 42 | |
| 43 | 43 | </p> |
| 44 | - <?php if( ! $question_data[ 'lesson_complete' ] ) { ?> |
|
| 44 | + <?php if ( ! $question_data['lesson_complete']) { ?> |
|
| 45 | 45 | |
| 46 | - <aside class="reupload_notice"><?php _e( 'Uploading a new file will replace your existing one:', 'woothemes-sensei' ); ?></aside> |
|
| 46 | + <aside class="reupload_notice"><?php _e('Uploading a new file will replace your existing one:', 'woothemes-sensei'); ?></aside> |
|
| 47 | 47 | |
| 48 | 48 | <?php } ?> |
| 49 | 49 | |
| 50 | 50 | <?php } ?> |
| 51 | 51 | |
| 52 | -<?php if( ! $question_data[ 'lesson_complete' ] ) { ?> |
|
| 52 | +<?php if ( ! $question_data['lesson_complete']) { ?> |
|
| 53 | 53 | |
| 54 | - <input type="file" name="file_upload_<?php echo $question_data[ 'ID' ] ; ?>" /> |
|
| 54 | + <input type="file" name="file_upload_<?php echo $question_data['ID']; ?>" /> |
|
| 55 | 55 | |
| 56 | - <input type="hidden" name="sensei_question[<?php echo $question_data[ 'ID' ]; ?>]" |
|
| 57 | - value="<?php echo esc_attr( $question_data[ 'user_answer_entry' ] ); ?>" /> |
|
| 56 | + <input type="hidden" name="sensei_question[<?php echo $question_data['ID']; ?>]" |
|
| 57 | + value="<?php echo esc_attr($question_data['user_answer_entry']); ?>" /> |
|
| 58 | 58 | |
| 59 | - <aside class="max_upload_size"><?php echo $question_data[ 'max_upload_size' ]; ?></aside> |
|
| 59 | + <aside class="max_upload_size"><?php echo $question_data['max_upload_size']; ?></aside> |
|
| 60 | 60 | |
| 61 | 61 | <?php } ?> |
@@ -1,5 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + exit; |
|
| 4 | +} |
|
| 3 | 5 | /** |
| 4 | 6 | * The Template for displaying the my course page data. |
| 5 | 7 | * |
@@ -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,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 Single Line Questions. |
| 5 | 5 | * |
@@ -18,18 +18,18 @@ discard block |
||
| 18 | 18 | * Get the question data with the current quiz id |
| 19 | 19 | * All data is loaded in this array to keep the template clean. |
| 20 | 20 | */ |
| 21 | - $question_data = WooThemes_Sensei_Question::get_template_data( sensei_get_the_question_id(), get_the_ID() ); |
|
| 21 | + $question_data = WooThemes_Sensei_Question::get_template_data(sensei_get_the_question_id(), get_the_ID()); |
|
| 22 | 22 | |
| 23 | 23 | ?> |
| 24 | 24 | |
| 25 | 25 | <div class="answer"> |
| 26 | 26 | |
| 27 | - <label for="<?php echo esc_attr( 'question_' . $question_data[ 'ID' ] ); ?>"> |
|
| 28 | - <?php _e( 'Answer:', 'woothemes-sensei' ); ?> |
|
| 27 | + <label for="<?php echo esc_attr('question_'.$question_data['ID']); ?>"> |
|
| 28 | + <?php _e('Answer:', 'woothemes-sensei'); ?> |
|
| 29 | 29 | </label> |
| 30 | 30 | |
| 31 | - <input type="text" id="<?php echo esc_attr( 'question_' . $question_data[ 'ID' ] ); ?>" |
|
| 32 | - name="<?php echo esc_attr( 'sensei_question[' . $question_data[ 'ID' ] . ']' ); ?>" |
|
| 33 | - value="<?php echo esc_attr( $question_data[ 'user_answer_entry' ] ); ?>" /> |
|
| 31 | + <input type="text" id="<?php echo esc_attr('question_'.$question_data['ID']); ?>" |
|
| 32 | + name="<?php echo esc_attr('sensei_question['.$question_data['ID'].']'); ?>" |
|
| 33 | + value="<?php echo esc_attr($question_data['user_answer_entry']); ?>" /> |
|
| 34 | 34 | |
| 35 | 35 | </div> |
| 36 | 36 | \ No newline at end of file |
@@ -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,5 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + exit; |
|
| 4 | +} |
|
| 3 | 5 | /** |
| 4 | 6 | * The Template for displaying the my course page data. |
| 5 | 7 | * |
@@ -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 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | */ |
| 12 | 12 | ?> |
| 13 | 13 | |
| 14 | -<?php get_sensei_header(); ?> |
|
| 14 | +<?php get_sensei_header(); ?> |
|
| 15 | 15 | |
| 16 | 16 | <?php |
| 17 | 17 | /** |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * @hooked Sensei_Learner_Profiles::deprecate_sensei_learner_profile_content_hook - 10 |
| 23 | 23 | * @hooked Sensei_Templates::fire_sensei_complete_course_hook - 20 |
| 24 | 24 | */ |
| 25 | -do_action( 'sensei_learner_profile_content_before' ); |
|
| 25 | +do_action('sensei_learner_profile_content_before'); |
|
| 26 | 26 | ?> |
| 27 | 27 | |
| 28 | 28 | <article class="post"> |
@@ -37,32 +37,32 @@ discard block |
||
| 37 | 37 | * |
| 38 | 38 | * @hooked Sensei_Templates::fire_frontend_messages_hook |
| 39 | 39 | */ |
| 40 | - do_action( 'sensei_learner_profile_inside_content_before' ); |
|
| 40 | + do_action('sensei_learner_profile_inside_content_before'); |
|
| 41 | 41 | ?> |
| 42 | 42 | |
| 43 | - <?php $learner_user = get_user_by( 'slug', get_query_var('learner_profile') ); // get requested learner object ?> |
|
| 43 | + <?php $learner_user = get_user_by('slug', get_query_var('learner_profile')); // get requested learner object ?> |
|
| 44 | 44 | |
| 45 | - <?php if( is_a( $learner_user, 'WP_User' ) ){ ?> |
|
| 45 | + <?php if (is_a($learner_user, 'WP_User')) { ?> |
|
| 46 | 46 | |
| 47 | 47 | <?php |
| 48 | 48 | |
| 49 | 49 | // show the user information |
| 50 | - Sensei_Learner_Profiles::user_info( $learner_user ); |
|
| 50 | + Sensei_Learner_Profiles::user_info($learner_user); |
|
| 51 | 51 | |
| 52 | 52 | ?> |
| 53 | 53 | |
| 54 | 54 | <?php |
| 55 | 55 | |
| 56 | 56 | // show the user courses |
| 57 | - Sensei()->course->load_user_courses_content( $learner_user ); |
|
| 57 | + Sensei()->course->load_user_courses_content($learner_user); |
|
| 58 | 58 | |
| 59 | 59 | ?> |
| 60 | 60 | |
| 61 | - <?php }else{ ?> |
|
| 61 | + <?php } else { ?> |
|
| 62 | 62 | |
| 63 | 63 | <p class="sensei-message"> |
| 64 | 64 | |
| 65 | - <?php _e( 'The user requested does not exist.', 'woothemes-sensei'); ?> |
|
| 65 | + <?php _e('The user requested does not exist.', 'woothemes-sensei'); ?> |
|
| 66 | 66 | |
| 67 | 67 | </p> |
| 68 | 68 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * |
| 75 | 75 | * @since 1.9.0 |
| 76 | 76 | */ |
| 77 | - do_action( 'sensei_learner_profile_inside_content_after' ); |
|
| 77 | + do_action('sensei_learner_profile_inside_content_after'); |
|
| 78 | 78 | ?> |
| 79 | 79 | |
| 80 | 80 | </section> |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * |
| 88 | 88 | * @since 1.9.0 |
| 89 | 89 | */ |
| 90 | -do_action( 'sensei_learner_profile_content_after' ); |
|
| 90 | +do_action('sensei_learner_profile_content_after'); |
|
| 91 | 91 | ?> |
| 92 | 92 | |
| 93 | 93 | <?php get_sensei_footer(); ?> |
| 94 | 94 | \ No newline at end of file |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | |
| 59 | 59 | ?> |
| 60 | 60 | |
| 61 | - <?php }else{ ?> |
|
| 61 | + <?php } else{ ?> |
|
| 62 | 62 | |
| 63 | 63 | <p class="sensei-message"> |
| 64 | 64 | |
@@ -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 outputting Message Archive items |
| 5 | 5 | * |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * |
| 21 | 21 | * @since 1.9.0 |
| 22 | 22 | */ |
| 23 | -do_action( 'sensei_loop_message_before' ); |
|
| 23 | +do_action('sensei_loop_message_before'); |
|
| 24 | 24 | ?> |
| 25 | 25 | |
| 26 | 26 | <div class="message-container" > |
@@ -32,14 +32,14 @@ discard block |
||
| 32 | 32 | * |
| 33 | 33 | * @since 1.9.0 |
| 34 | 34 | */ |
| 35 | - do_action( 'sensei_loop_message_inside_before' ); |
|
| 35 | + do_action('sensei_loop_message_inside_before'); |
|
| 36 | 36 | ?> |
| 37 | 37 | |
| 38 | 38 | <?php |
| 39 | 39 | // loop through all messages |
| 40 | - while ( have_posts() ) { the_post(); |
|
| 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 | 44 | } |
| 45 | 45 | ?> |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * |
| 52 | 52 | * @since 1.9.0 |
| 53 | 53 | */ |
| 54 | - do_action( 'sensei_loop_message_inside_after' ); |
|
| 54 | + do_action('sensei_loop_message_inside_after'); |
|
| 55 | 55 | ?> |
| 56 | 56 | |
| 57 | 57 | </div> |
@@ -63,5 +63,5 @@ discard block |
||
| 63 | 63 | * |
| 64 | 64 | * @since 1.9.0 |
| 65 | 65 | */ |
| 66 | -do_action( 'sensei_loop_message_after' ); |
|
| 66 | +do_action('sensei_loop_message_after'); |
|
| 67 | 67 | ?> |
@@ -1,5 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + exit; |
|
| 4 | +} |
|
| 3 | 5 | /** |
| 4 | 6 | * The Template for displaying the my course page data. |
| 5 | 7 | * |
@@ -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 | ?> |
@@ -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 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | */ |
| 12 | 12 | ?> |
| 13 | 13 | |
| 14 | -<?php get_sensei_header(); ?> |
|
| 14 | +<?php get_sensei_header(); ?> |
|
| 15 | 15 | |
| 16 | 16 | <?php |
| 17 | 17 | /** |
@@ -22,18 +22,18 @@ discard block |
||
| 22 | 22 | * |
| 23 | 23 | * @hooked Sensei_Messages::the_archive_header -20 |
| 24 | 24 | */ |
| 25 | -do_action( 'sensei_archive_before_message_loop' ); |
|
| 25 | +do_action('sensei_archive_before_message_loop'); |
|
| 26 | 26 | ?> |
| 27 | 27 | |
| 28 | 28 | <section id="main-sensei_message" class="sensei_message-container"> |
| 29 | 29 | |
| 30 | - <?php if ( have_posts() ): ?> |
|
| 30 | + <?php if (have_posts()): ?> |
|
| 31 | 31 | |
| 32 | 32 | <?php sensei_load_template('loop-message.php'); ?> |
| 33 | 33 | |
| 34 | 34 | <?php else: ?> |
| 35 | 35 | |
| 36 | - <p> <?php _e('You do not have any messages.','woothemes-sensei'); ?> </p> |
|
| 36 | + <p> <?php _e('You do not have any messages.', 'woothemes-sensei'); ?> </p> |
|
| 37 | 37 | |
| 38 | 38 | <?php endif; // End If Statement ?> |
| 39 | 39 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @since 1.9.0 |
| 48 | 48 | */ |
| 49 | -do_action( 'sensei_archive_after_message_loop' ); |
|
| 49 | +do_action('sensei_archive_after_message_loop'); |
|
| 50 | 50 | ?> |
| 51 | 51 | |
| 52 | 52 | <?php get_sensei_footer(); ?> |
@@ -31,9 +31,12 @@ |
||
| 31 | 31 | |
| 32 | 32 | <?php sensei_load_template('loop-message.php'); ?> |
| 33 | 33 | |
| 34 | - <?php else: ?> |
|
| 34 | + <?php else { |
|
| 35 | + : ?> |
|
| 35 | 36 | |
| 36 | - <p> <?php _e('You do not have any messages.','woothemes-sensei'); ?> </p> |
|
| 37 | + <p> <?php _e('You do not have any messages.','woothemes-sensei'); |
|
| 38 | +} |
|
| 39 | +?> </p> |
|
| 37 | 40 | |
| 38 | 41 | <?php endif; // End If Statement ?> |
| 39 | 42 | |
@@ -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 outputting Lists of any Sensei content type. |
| 5 | 5 | * |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * |
| 21 | 21 | * @since 1.9.0 |
| 22 | 22 | */ |
| 23 | -do_action( 'sensei_loop_course_before' ); |
|
| 23 | +do_action('sensei_loop_course_before'); |
|
| 24 | 24 | ?> |
| 25 | 25 | |
| 26 | 26 | <ul class="course-container columns-<?php sensei_courses_per_row(); ?>" > |
@@ -32,16 +32,16 @@ discard block |
||
| 32 | 32 | * |
| 33 | 33 | * @since 1.9.0 |
| 34 | 34 | */ |
| 35 | - do_action( 'sensei_loop_course_inside_before' ); |
|
| 35 | + do_action('sensei_loop_course_inside_before'); |
|
| 36 | 36 | ?> |
| 37 | 37 | |
| 38 | 38 | <?php |
| 39 | 39 | /* |
| 40 | 40 | * Loop through all courses |
| 41 | 41 | */ |
| 42 | - while ( have_posts() ) { the_post(); |
|
| 42 | + while (have_posts()) { the_post(); |
|
| 43 | 43 | |
| 44 | - sensei_load_template_part('content','course'); |
|
| 44 | + sensei_load_template_part('content', 'course'); |
|
| 45 | 45 | |
| 46 | 46 | } |
| 47 | 47 | ?> |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * |
| 54 | 54 | * @since 1.9.0 |
| 55 | 55 | */ |
| 56 | - do_action( 'sensei_loop_course_inside_after' ); |
|
| 56 | + do_action('sensei_loop_course_inside_after'); |
|
| 57 | 57 | ?> |
| 58 | 58 | |
| 59 | 59 | </ul> |
@@ -65,5 +65,5 @@ discard block |
||
| 65 | 65 | * |
| 66 | 66 | * @since 1.9.0 |
| 67 | 67 | */ |
| 68 | -do_action( 'sensei_loop_course_after' ); |
|
| 68 | +do_action('sensei_loop_course_after'); |
|
| 69 | 69 | ?> |
@@ -1,5 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + exit; |
|
| 4 | +} |
|
| 3 | 5 | /** |
| 4 | 6 | * The Template for displaying the my course page data. |
| 5 | 7 | * |
@@ -1,69 +1,69 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) exit; |
| 3 | 3 | /** |
| 4 | - * The Template for outputting Lists of any Sensei content type. |
|
| 5 | - * |
|
| 6 | - * This template expects the global wp_query to setup and ready for the loop |
|
| 7 | - * |
|
| 8 | - * @author Automattic |
|
| 9 | - * @package Sensei |
|
| 10 | - * @category Templates |
|
| 11 | - * @version 1.9.0 |
|
| 12 | - */ |
|
| 4 | + * The Template for outputting Lists of any Sensei content type. |
|
| 5 | + * |
|
| 6 | + * This template expects the global wp_query to setup and ready for the loop |
|
| 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 course loop items in the loop.php template. It runs |
|
| 18 | - * only only for the course 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 course loop items in the loop.php template. It runs |
|
| 18 | + * only only for the course 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_course_before' ); |
| 24 | 24 | ?> |
| 25 | 25 | |
| 26 | 26 | <ul class="course-container columns-<?php sensei_courses_per_row(); ?>" > |
| 27 | 27 | |
| 28 | 28 | <?php |
| 29 | - /** |
|
| 30 | - * This runs before the post type items in the loop.php template. It |
|
| 31 | - * runs within the courses loop <ul> tag. |
|
| 32 | - * |
|
| 33 | - * @since 1.9.0 |
|
| 34 | - */ |
|
| 35 | - do_action( 'sensei_loop_course_inside_before' ); |
|
| 36 | - ?> |
|
| 29 | + /** |
|
| 30 | + * This runs before the post type items in the loop.php template. It |
|
| 31 | + * runs within the courses loop <ul> tag. |
|
| 32 | + * |
|
| 33 | + * @since 1.9.0 |
|
| 34 | + */ |
|
| 35 | + do_action( 'sensei_loop_course_inside_before' ); |
|
| 36 | + ?> |
|
| 37 | 37 | |
| 38 | 38 | <?php |
| 39 | - /* |
|
| 39 | + /* |
|
| 40 | 40 | * Loop through all courses |
| 41 | 41 | */ |
| 42 | - while ( have_posts() ) { the_post(); |
|
| 42 | + while ( have_posts() ) { the_post(); |
|
| 43 | 43 | |
| 44 | - sensei_load_template_part('content','course'); |
|
| 44 | + sensei_load_template_part('content','course'); |
|
| 45 | 45 | |
| 46 | - } |
|
| 47 | - ?> |
|
| 46 | + } |
|
| 47 | + ?> |
|
| 48 | 48 | |
| 49 | 49 | <?php |
| 50 | - /** |
|
| 51 | - * This runs after the post type items in the loop.php template. It runs |
|
| 52 | - * only for the specified post type |
|
| 53 | - * |
|
| 54 | - * @since 1.9.0 |
|
| 55 | - */ |
|
| 56 | - do_action( 'sensei_loop_course_inside_after' ); |
|
| 57 | - ?> |
|
| 50 | + /** |
|
| 51 | + * This runs after the post type items in the loop.php template. It runs |
|
| 52 | + * only for the specified post type |
|
| 53 | + * |
|
| 54 | + * @since 1.9.0 |
|
| 55 | + */ |
|
| 56 | + do_action( 'sensei_loop_course_inside_after' ); |
|
| 57 | + ?> |
|
| 58 | 58 | |
| 59 | 59 | </ul> |
| 60 | 60 | |
| 61 | 61 | <?php |
| 62 | 62 | /** |
| 63 | - * This runs after the post type items in the loop.php template. It runs |
|
| 64 | - * only for the specified post type |
|
| 65 | - * |
|
| 66 | - * @since 1.9.0 |
|
| 67 | - */ |
|
| 63 | + * This runs after the post type items in the loop.php template. It runs |
|
| 64 | + * only for the specified post type |
|
| 65 | + * |
|
| 66 | + * @since 1.9.0 |
|
| 67 | + */ |
|
| 68 | 68 | do_action( 'sensei_loop_course_after' ); |
| 69 | 69 | ?> |
@@ -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 |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
| 2 | +if ( ! defined('ABSPATH')) exit; // Exit if accessed directly |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * The Template for displaying the sensei login form |
@@ -19,10 +19,10 @@ discard block |
||
| 19 | 19 | * |
| 20 | 20 | * @since 1.9.0 |
| 21 | 21 | */ |
| 22 | -do_action( 'sensei_login_form_before' ); |
|
| 22 | +do_action('sensei_login_form_before'); |
|
| 23 | 23 | ?> |
| 24 | 24 | |
| 25 | -<h2><?php _e( 'Login', 'woothemes-sensei' ); ?></h2> |
|
| 25 | +<h2><?php _e('Login', 'woothemes-sensei'); ?></h2> |
|
| 26 | 26 | |
| 27 | 27 | <form method="post" name="sensi-login-form" id="loginform" class="login sensei"> |
| 28 | 28 | |
@@ -32,12 +32,12 @@ discard block |
||
| 32 | 32 | * |
| 33 | 33 | * @since 1.6.2 |
| 34 | 34 | */ |
| 35 | - do_action( 'sensei_login_form_inside_before' ); |
|
| 35 | + do_action('sensei_login_form_inside_before'); |
|
| 36 | 36 | ?> |
| 37 | 37 | |
| 38 | 38 | <p class="sensei-login-username form-row form-row-wide"> |
| 39 | 39 | |
| 40 | - <label for="sensei_user_login"><?php _e('Username or Email','woothemes-sensei')?> </label> |
|
| 40 | + <label for="sensei_user_login"><?php _e('Username or Email', 'woothemes-sensei')?> </label> |
|
| 41 | 41 | |
| 42 | 42 | <input type="text" name="log" id="sensei_user_login" class="input" value="" size="20"> |
| 43 | 43 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | <p class="sensei-login-password form-row form-row-wide"> |
| 47 | 47 | |
| 48 | - <label for="sensei_user_pass"> <?php _e('Password','woothemes-sensei')?> </label> |
|
| 48 | + <label for="sensei_user_pass"> <?php _e('Password', 'woothemes-sensei')?> </label> |
|
| 49 | 49 | |
| 50 | 50 | <input type="password" name="pwd" id="sensei_user_pass" class="input txt text" value="" size="20"> |
| 51 | 51 | |
@@ -59,14 +59,14 @@ discard block |
||
| 59 | 59 | * |
| 60 | 60 | * @since 1.6.2 |
| 61 | 61 | */ |
| 62 | - do_action( 'sensei_login_form_inside_after_password_field' ); |
|
| 62 | + do_action('sensei_login_form_inside_after_password_field'); |
|
| 63 | 63 | ?> |
| 64 | 64 | |
| 65 | 65 | <p class='sensei-login-submit'> |
| 66 | 66 | |
| 67 | - <input type="submit" class="button" name="login" value="<?php _e( 'Login', 'woothemes-sensei' ); ?>" /> |
|
| 67 | + <input type="submit" class="button" name="login" value="<?php _e('Login', 'woothemes-sensei'); ?>" /> |
|
| 68 | 68 | |
| 69 | - <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?', 'woothemes-sensei' ); ?></a> |
|
| 69 | + <a href="<?php echo esc_url(wp_lostpassword_url()); ?>"><?php _e('Lost your password?', 'woothemes-sensei'); ?></a> |
|
| 70 | 70 | |
| 71 | 71 | </p> |
| 72 | 72 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | <label for="rememberme" class="inline"> |
| 76 | 76 | |
| 77 | - <input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e( 'Remember me', 'woothemes-sensei' ); ?> |
|
| 77 | + <input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e('Remember me', 'woothemes-sensei'); ?> |
|
| 78 | 78 | |
| 79 | 79 | </label> |
| 80 | 80 | |
@@ -86,12 +86,12 @@ discard block |
||
| 86 | 86 | * |
| 87 | 87 | * @since 1.6.2 |
| 88 | 88 | */ |
| 89 | - do_action( 'sensei_login_form_inside_after' ); |
|
| 89 | + do_action('sensei_login_form_inside_after'); |
|
| 90 | 90 | ?> |
| 91 | 91 | |
| 92 | - <?php wp_nonce_field( 'sensei-login' ); ?> |
|
| 92 | + <?php wp_nonce_field('sensei-login'); ?> |
|
| 93 | 93 | |
| 94 | - <input type="hidden" name="redirect" value="<?php echo esc_url_raw( sensei_get_current_page_url() ) ?>" /> |
|
| 94 | + <input type="hidden" name="redirect" value="<?php echo esc_url_raw(sensei_get_current_page_url()) ?>" /> |
|
| 95 | 95 | |
| 96 | 96 | <input type="hidden" name="form" value="sensei-login" /> |
| 97 | 97 | |
@@ -105,5 +105,5 @@ discard block |
||
| 105 | 105 | * |
| 106 | 106 | * @since 1.9.0 |
| 107 | 107 | */ |
| 108 | -do_action( 'sensei_login_form_after' ); |
|
| 108 | +do_action('sensei_login_form_after'); |
|
| 109 | 109 | ?> |
| 110 | 110 | \ 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 |
@@ -1,61 +1,61 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) exit; |
| 3 | 3 | /** |
| 4 | - * The Template for displaying the my course page data. |
|
| 5 | - * |
|
| 6 | - * Override this template by copying it to yourtheme/sensei/user/my-courses.php |
|
| 7 | - * |
|
| 8 | - * @author Automattic |
|
| 9 | - * @package Sensei |
|
| 10 | - * @category Templates |
|
| 11 | - * @version 1.9.0 |
|
| 12 | - */ |
|
| 4 | + * The Template for displaying the my course page data. |
|
| 5 | + * |
|
| 6 | + * Override this template by copying it to yourtheme/sensei/user/my-courses.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 | - * Executes before the Sensei my courses markup begins. This hook |
|
| 18 | - * only fires whe a user is logged in. If you need to add |
|
| 19 | - * something here for when users are logged out use `sensei_login_form_before`. |
|
| 20 | - * |
|
| 21 | - * @since 1.9.0 |
|
| 22 | - */ |
|
| 17 | + * Executes before the Sensei my courses markup begins. This hook |
|
| 18 | + * only fires whe a user is logged in. If you need to add |
|
| 19 | + * something here for when users are logged out use `sensei_login_form_before`. |
|
| 20 | + * |
|
| 21 | + * @since 1.9.0 |
|
| 22 | + */ |
|
| 23 | 23 | do_action( 'sensei_my_courses_before' ); |
| 24 | 24 | ?> |
| 25 | 25 | |
| 26 | 26 | <section id="main-course" class="course-container"> |
| 27 | 27 | |
| 28 | 28 | <?php |
| 29 | - /** |
|
| 30 | - * Executes inside just before the Sensei my courses content. This hook |
|
| 31 | - * only fires whe a user is logged in. |
|
| 32 | - * |
|
| 33 | - * @since 1.9.0 |
|
| 34 | - */ |
|
| 35 | - do_action( 'sensei_my_courses_content_inside_before' ); |
|
| 36 | - ?> |
|
| 29 | + /** |
|
| 30 | + * Executes inside just before the Sensei my courses content. This hook |
|
| 31 | + * only fires whe a user is logged in. |
|
| 32 | + * |
|
| 33 | + * @since 1.9.0 |
|
| 34 | + */ |
|
| 35 | + do_action( 'sensei_my_courses_content_inside_before' ); |
|
| 36 | + ?> |
|
| 37 | 37 | |
| 38 | 38 | <?php sensei_the_my_courses_content(); ?> |
| 39 | 39 | |
| 40 | 40 | <?php |
| 41 | - /** |
|
| 42 | - * Executes inside just after the Sensei my courses content. This hook |
|
| 43 | - * only fires whe a user is logged in. |
|
| 44 | - * |
|
| 45 | - * @since 1.9.0 |
|
| 46 | - */ |
|
| 47 | - do_action( 'sensei_my_courses_content_inside_after' ); |
|
| 48 | - ?> |
|
| 41 | + /** |
|
| 42 | + * Executes inside just after the Sensei my courses content. This hook |
|
| 43 | + * only fires whe a user is logged in. |
|
| 44 | + * |
|
| 45 | + * @since 1.9.0 |
|
| 46 | + */ |
|
| 47 | + do_action( 'sensei_my_courses_content_inside_after' ); |
|
| 48 | + ?> |
|
| 49 | 49 | |
| 50 | 50 | </section> |
| 51 | 51 | |
| 52 | 52 | <?php |
| 53 | 53 | /** |
| 54 | - * Executes after the Sensei my courses template markup ends. This hook |
|
| 55 | - * only fires whe a user is logged in. If you need to add |
|
| 56 | - * something here for when users are logged out use `sensei_login_form_after`. |
|
| 57 | - * |
|
| 58 | - * @since 1.9.0 |
|
| 59 | - */ |
|
| 54 | + * Executes after the Sensei my courses template markup ends. This hook |
|
| 55 | + * only fires whe a user is logged in. If you need to add |
|
| 56 | + * something here for when users are logged out use `sensei_login_form_after`. |
|
| 57 | + * |
|
| 58 | + * @since 1.9.0 |
|
| 59 | + */ |
|
| 60 | 60 | do_action( 'sensei_my_courses_after' ); |
| 61 | 61 | ?> |
@@ -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 the my course page data. |
| 5 | 5 | * |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * |
| 21 | 21 | * @since 1.9.0 |
| 22 | 22 | */ |
| 23 | -do_action( 'sensei_my_courses_before' ); |
|
| 23 | +do_action('sensei_my_courses_before'); |
|
| 24 | 24 | ?> |
| 25 | 25 | |
| 26 | 26 | <section id="main-course" class="course-container"> |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * |
| 33 | 33 | * @since 1.9.0 |
| 34 | 34 | */ |
| 35 | - do_action( 'sensei_my_courses_content_inside_before' ); |
|
| 35 | + do_action('sensei_my_courses_content_inside_before'); |
|
| 36 | 36 | ?> |
| 37 | 37 | |
| 38 | 38 | <?php sensei_the_my_courses_content(); ?> |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * |
| 45 | 45 | * @since 1.9.0 |
| 46 | 46 | */ |
| 47 | - do_action( 'sensei_my_courses_content_inside_after' ); |
|
| 47 | + do_action('sensei_my_courses_content_inside_after'); |
|
| 48 | 48 | ?> |
| 49 | 49 | |
| 50 | 50 | </section> |
@@ -57,5 +57,5 @@ discard block |
||
| 57 | 57 | * |
| 58 | 58 | * @since 1.9.0 |
| 59 | 59 | */ |
| 60 | -do_action( 'sensei_my_courses_after' ); |
|
| 60 | +do_action('sensei_my_courses_after'); |
|
| 61 | 61 | ?> |
@@ -1,5 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + exit; |
|
| 4 | +} |
|
| 3 | 5 | /** |
| 4 | 6 | * The Template for displaying the my course page data. |
| 5 | 7 | * |
@@ -30,80 +30,80 @@ |
||
| 30 | 30 | |
| 31 | 31 | if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 32 | 32 | |
| 33 | - require_once( 'includes/class-sensei-autoloader.php' ); |
|
| 34 | - require_once( 'includes/lib/woo-functions.php' ); |
|
| 35 | - require_once( 'includes/sensei-functions.php' ); |
|
| 36 | - |
|
| 37 | - if ( ! is_admin() ) {
|
|
| 38 | - require_once( 'includes/template-functions.php' ); |
|
| 39 | - } |
|
| 40 | - |
|
| 41 | - /** |
|
| 42 | - * Returns the global Sensei Instance. |
|
| 43 | - * |
|
| 44 | - * @since 1.8.0 |
|
| 45 | - */ |
|
| 46 | - function Sensei(){
|
|
| 47 | - |
|
| 48 | - return Sensei_Main::instance(); |
|
| 49 | - |
|
| 50 | - } |
|
| 51 | - |
|
| 52 | - // set the sensei version number |
|
| 53 | - Sensei()->version = '1.9-beta'; |
|
| 54 | - |
|
| 55 | - //backwards compatibility |
|
| 56 | - global $woothemes_sensei; |
|
| 57 | - $woothemes_sensei = Sensei(); |
|
| 58 | - |
|
| 59 | - /** |
|
| 60 | - * Hook in WooCommerce functionality |
|
| 61 | - */ |
|
| 62 | - if( Sensei_WC::is_woocommerce_active() ){
|
|
| 63 | - add_action('init', array( 'Sensei_WC', 'load_woocommerce_integration_hooks' ) );
|
|
| 64 | - } |
|
| 65 | - |
|
| 66 | - /** |
|
| 67 | - * Load all Template hooks |
|
| 68 | - */ |
|
| 69 | - if(! is_admin() ){
|
|
| 70 | - |
|
| 71 | - require_once( 'includes/hooks/template.php' ); |
|
| 72 | - |
|
| 73 | - } |
|
| 74 | - |
|
| 75 | - /** |
|
| 76 | - * Plugin updates |
|
| 77 | - * @since 1.0.1 |
|
| 78 | - */ |
|
| 79 | - woothemes_queue_update( plugin_basename( __FILE__ ), 'bad2a02a063555b7e2bee59924690763', 152116 ); |
|
| 80 | - |
|
| 81 | - /** |
|
| 82 | - * Sensei Activation Hook registration |
|
| 83 | - * @since 1.8.0 |
|
| 84 | - */ |
|
| 85 | - register_activation_hook( __FILE__, 'activate_sensei' ); |
|
| 86 | - |
|
| 87 | - /** |
|
| 88 | - * Activate_sensei |
|
| 89 | - * |
|
| 90 | - * All the activation checks needed to ensure Sensei is ready for use |
|
| 91 | - * @since 1.8.0 |
|
| 92 | - */ |
|
| 93 | - function activate_sensei () {
|
|
| 94 | - |
|
| 95 | - // create the teacher role on activation and ensure that it has all the needed capabilities |
|
| 96 | - Sensei()->teacher->create_role(); |
|
| 97 | - |
|
| 98 | - //Setup all the role capabilities needed |
|
| 99 | - Sensei()->updates->add_sensei_caps(); |
|
| 100 | - Sensei()->updates->add_editor_caps(); |
|
| 101 | - Sensei()->updates->assign_role_caps(); |
|
| 102 | - |
|
| 103 | - //Flush rules |
|
| 104 | - add_action( 'activated_plugin' , array( 'Sensei_Main','activation_flush_rules' ), 10 ); |
|
| 105 | - |
|
| 106 | - //Load the Welcome Screen |
|
| 107 | - add_action( 'activated_plugin' , array( 'Sensei_Welcome','redirect' ), 20 ); |
|
| 108 | - |
|
| 109 | - }// end activate_sensei |
|
| 33 | + require_once( 'includes/class-sensei-autoloader.php' ); |
|
| 34 | + require_once( 'includes/lib/woo-functions.php' ); |
|
| 35 | + require_once( 'includes/sensei-functions.php' ); |
|
| 36 | + |
|
| 37 | + if ( ! is_admin() ) {
|
|
| 38 | + require_once( 'includes/template-functions.php' ); |
|
| 39 | + } |
|
| 40 | + |
|
| 41 | + /** |
|
| 42 | + * Returns the global Sensei Instance. |
|
| 43 | + * |
|
| 44 | + * @since 1.8.0 |
|
| 45 | + */ |
|
| 46 | + function Sensei(){
|
|
| 47 | + |
|
| 48 | + return Sensei_Main::instance(); |
|
| 49 | + |
|
| 50 | + } |
|
| 51 | + |
|
| 52 | + // set the sensei version number |
|
| 53 | + Sensei()->version = '1.9-beta'; |
|
| 54 | + |
|
| 55 | + //backwards compatibility |
|
| 56 | + global $woothemes_sensei; |
|
| 57 | + $woothemes_sensei = Sensei(); |
|
| 58 | + |
|
| 59 | + /** |
|
| 60 | + * Hook in WooCommerce functionality |
|
| 61 | + */ |
|
| 62 | + if( Sensei_WC::is_woocommerce_active() ){
|
|
| 63 | + add_action('init', array( 'Sensei_WC', 'load_woocommerce_integration_hooks' ) );
|
|
| 64 | + } |
|
| 65 | + |
|
| 66 | + /** |
|
| 67 | + * Load all Template hooks |
|
| 68 | + */ |
|
| 69 | + if(! is_admin() ){
|
|
| 70 | + |
|
| 71 | + require_once( 'includes/hooks/template.php' ); |
|
| 72 | + |
|
| 73 | + } |
|
| 74 | + |
|
| 75 | + /** |
|
| 76 | + * Plugin updates |
|
| 77 | + * @since 1.0.1 |
|
| 78 | + */ |
|
| 79 | + woothemes_queue_update( plugin_basename( __FILE__ ), 'bad2a02a063555b7e2bee59924690763', 152116 ); |
|
| 80 | + |
|
| 81 | + /** |
|
| 82 | + * Sensei Activation Hook registration |
|
| 83 | + * @since 1.8.0 |
|
| 84 | + */ |
|
| 85 | + register_activation_hook( __FILE__, 'activate_sensei' ); |
|
| 86 | + |
|
| 87 | + /** |
|
| 88 | + * Activate_sensei |
|
| 89 | + * |
|
| 90 | + * All the activation checks needed to ensure Sensei is ready for use |
|
| 91 | + * @since 1.8.0 |
|
| 92 | + */ |
|
| 93 | + function activate_sensei () {
|
|
| 94 | + |
|
| 95 | + // create the teacher role on activation and ensure that it has all the needed capabilities |
|
| 96 | + Sensei()->teacher->create_role(); |
|
| 97 | + |
|
| 98 | + //Setup all the role capabilities needed |
|
| 99 | + Sensei()->updates->add_sensei_caps(); |
|
| 100 | + Sensei()->updates->add_editor_caps(); |
|
| 101 | + Sensei()->updates->assign_role_caps(); |
|
| 102 | + |
|
| 103 | + //Flush rules |
|
| 104 | + add_action( 'activated_plugin' , array( 'Sensei_Main','activation_flush_rules' ), 10 ); |
|
| 105 | + |
|
| 106 | + //Load the Welcome Screen |
|
| 107 | + add_action( 'activated_plugin' , array( 'Sensei_Welcome','redirect' ), 20 ); |
|
| 108 | + |
|
| 109 | + }// end activate_sensei |
|
@@ -28,14 +28,14 @@ discard block |
||
| 28 | 28 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 29 | 29 | */ |
| 30 | 30 | |
| 31 | - if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
| 31 | + if ( ! defined('ABSPATH')) exit; // Exit if accessed directly
|
|
| 32 | 32 | |
| 33 | - require_once( 'includes/class-sensei-autoloader.php' ); |
|
| 34 | - require_once( 'includes/lib/woo-functions.php' ); |
|
| 35 | - require_once( 'includes/sensei-functions.php' ); |
|
| 33 | + require_once('includes/class-sensei-autoloader.php');
|
|
| 34 | + require_once('includes/lib/woo-functions.php');
|
|
| 35 | + require_once('includes/sensei-functions.php');
|
|
| 36 | 36 | |
| 37 | - if ( ! is_admin() ) {
|
|
| 38 | - require_once( 'includes/template-functions.php' ); |
|
| 37 | + if ( ! is_admin()) {
|
|
| 38 | + require_once('includes/template-functions.php');
|
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * |
| 44 | 44 | * @since 1.8.0 |
| 45 | 45 | */ |
| 46 | - function Sensei(){
|
|
| 46 | + function Sensei() {
|
|
| 47 | 47 | |
| 48 | 48 | return Sensei_Main::instance(); |
| 49 | 49 | |
@@ -59,16 +59,16 @@ discard block |
||
| 59 | 59 | /** |
| 60 | 60 | * Hook in WooCommerce functionality |
| 61 | 61 | */ |
| 62 | - if( Sensei_WC::is_woocommerce_active() ){
|
|
| 63 | - add_action('init', array( 'Sensei_WC', 'load_woocommerce_integration_hooks' ) );
|
|
| 62 | + if (Sensei_WC::is_woocommerce_active()) {
|
|
| 63 | + add_action('init', array('Sensei_WC', 'load_woocommerce_integration_hooks'));
|
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * Load all Template hooks |
| 68 | 68 | */ |
| 69 | - if(! is_admin() ){
|
|
| 69 | + if ( ! is_admin()) {
|
|
| 70 | 70 | |
| 71 | - require_once( 'includes/hooks/template.php' ); |
|
| 71 | + require_once('includes/hooks/template.php');
|
|
| 72 | 72 | |
| 73 | 73 | } |
| 74 | 74 | |
@@ -76,13 +76,13 @@ discard block |
||
| 76 | 76 | * Plugin updates |
| 77 | 77 | * @since 1.0.1 |
| 78 | 78 | */ |
| 79 | - woothemes_queue_update( plugin_basename( __FILE__ ), 'bad2a02a063555b7e2bee59924690763', 152116 ); |
|
| 79 | + woothemes_queue_update(plugin_basename(__FILE__), 'bad2a02a063555b7e2bee59924690763', 152116); |
|
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | 82 | * Sensei Activation Hook registration |
| 83 | 83 | * @since 1.8.0 |
| 84 | 84 | */ |
| 85 | - register_activation_hook( __FILE__, 'activate_sensei' ); |
|
| 85 | + register_activation_hook(__FILE__, 'activate_sensei'); |
|
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | 88 | * Activate_sensei |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * All the activation checks needed to ensure Sensei is ready for use |
| 91 | 91 | * @since 1.8.0 |
| 92 | 92 | */ |
| 93 | - function activate_sensei () {
|
|
| 93 | + function activate_sensei() {
|
|
| 94 | 94 | |
| 95 | 95 | // create the teacher role on activation and ensure that it has all the needed capabilities |
| 96 | 96 | Sensei()->teacher->create_role(); |
@@ -101,9 +101,9 @@ discard block |
||
| 101 | 101 | Sensei()->updates->assign_role_caps(); |
| 102 | 102 | |
| 103 | 103 | //Flush rules |
| 104 | - add_action( 'activated_plugin' , array( 'Sensei_Main','activation_flush_rules' ), 10 ); |
|
| 104 | + add_action('activated_plugin', array('Sensei_Main', 'activation_flush_rules'), 10);
|
|
| 105 | 105 | |
| 106 | 106 | //Load the Welcome Screen |
| 107 | - add_action( 'activated_plugin' , array( 'Sensei_Welcome','redirect' ), 20 ); |
|
| 107 | + add_action('activated_plugin', array('Sensei_Welcome', 'redirect'), 20);
|
|
| 108 | 108 | |
| 109 | 109 | }// end activate_sensei |
@@ -28,7 +28,10 @@ |
||
| 28 | 28 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 29 | 29 | */ |
| 30 | 30 | |
| 31 | - if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
| 31 | + if ( ! defined( 'ABSPATH' ) ) { |
|
| 32 | + exit; |
|
| 33 | + } |
|
| 34 | + // Exit if accessed directly |
|
| 32 | 35 | |
| 33 | 36 | require_once( 'includes/class-sensei-autoloader.php' ); |
| 34 | 37 | require_once( 'includes/lib/woo-functions.php' ); |