@@ -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,5 +1,8 @@ discard block |
||
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 Course Class |
@@ -616,7 +619,7 @@ discard block |
||
616 | 619 | |
617 | 620 | return $results_array; |
618 | 621 | |
619 | - }else{ |
|
622 | + } else{ |
|
620 | 623 | |
621 | 624 | //reset the pagination as this widgets do not need it |
622 | 625 | $post_args['paged'] = 1; |
@@ -837,7 +840,7 @@ discard block |
||
837 | 840 | |
838 | 841 | return $html; |
839 | 842 | |
840 | - }else{ |
|
843 | + } else{ |
|
841 | 844 | |
842 | 845 | echo $html; |
843 | 846 | |
@@ -984,8 +987,7 @@ discard block |
||
984 | 987 | $has_questions = get_post_meta( $lesson_id, '_quiz_has_questions', true ); |
985 | 988 | if ( $has_questions && $boolean_check ) { |
986 | 989 | return true; |
987 | - } |
|
988 | - elseif ( $has_questions ) { |
|
990 | + } elseif ( $has_questions ) { |
|
989 | 991 | $quiz_id = Sensei()->lesson->lesson_quizzes( $lesson_id ); |
990 | 992 | // $questions = Sensei()->lesson->lesson_quiz_questions( $quiz_id ); |
991 | 993 | // if( count( $questions ) > 0 ) { |
@@ -1798,11 +1800,11 @@ discard block |
||
1798 | 1800 | |
1799 | 1801 | $course_id = $email['course_id']; |
1800 | 1802 | |
1801 | - }elseif( isset( $email['lesson_id'] ) ){ |
|
1803 | + } elseif( isset( $email['lesson_id'] ) ){ |
|
1802 | 1804 | |
1803 | 1805 | $course_id = Sensei()->lesson->get_course_id( $email['lesson_id'] ); |
1804 | 1806 | |
1805 | - }elseif( isset( $email['quiz_id'] ) ){ |
|
1807 | + } elseif( isset( $email['quiz_id'] ) ){ |
|
1806 | 1808 | |
1807 | 1809 | $lesson_id = Sensei()->quiz->get_lesson_id( $email['quiz_id'] ); |
1808 | 1810 | $course_id = Sensei()->lesson->get_course_id( $lesson_id ); |
@@ -1863,7 +1865,7 @@ discard block |
||
1863 | 1865 | |
1864 | 1866 | if( isset( $_POST['disable_sensei_course_notification'] ) && 'on'== $_POST['disable_sensei_course_notification'] ) { |
1865 | 1867 | $new_val = true; |
1866 | - }else{ |
|
1868 | + } else{ |
|
1867 | 1869 | $new_val = false; |
1868 | 1870 | } |
1869 | 1871 | |
@@ -1996,7 +1998,7 @@ discard block |
||
1996 | 1998 | |
1997 | 1999 | $classes[] = 'user-status-completed'; |
1998 | 2000 | |
1999 | - }else{ |
|
2001 | + } else{ |
|
2000 | 2002 | |
2001 | 2003 | $classes[] = 'user-status-active'; |
2002 | 2004 | |
@@ -2516,7 +2518,7 @@ discard block |
||
2516 | 2518 | |
2517 | 2519 | $title = __('Lessons', 'woothemes-sensei'); |
2518 | 2520 | |
2519 | - }elseif( empty( $none_module_lessons ) ){ // if the none module lessons are simply empty the title should not be shown |
|
2521 | + } elseif( empty( $none_module_lessons ) ){ // if the none module lessons are simply empty the title should not be shown |
|
2520 | 2522 | |
2521 | 2523 | $title = ''; |
2522 | 2524 | } |
@@ -2844,7 +2846,7 @@ discard block |
||
2844 | 2846 | |
2845 | 2847 | $title = $term->name; |
2846 | 2848 | |
2847 | - }else{ |
|
2849 | + } else{ |
|
2848 | 2850 | |
2849 | 2851 | $title = 'Course Category'; |
2850 | 2852 |
@@ -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 | * |