@@ 27-40 (lines=14) @@ | ||
24 | * @access public |
|
25 | * @return void |
|
26 | */ |
|
27 | function course_single_lessons() { |
|
28 | ||
29 | // load backwards compatible template name if it exists in the users theme |
|
30 | $located_template= locate_template( Sensei()->template_url . 'single-course/course-lessons.php' ); |
|
31 | if( $located_template ){ |
|
32 | ||
33 | Sensei_Templates::get_template( 'single-course/course-lessons.php' ); |
|
34 | return; |
|
35 | ||
36 | } |
|
37 | ||
38 | Sensei_Templates::get_template( 'single-course/lessons.php' ); |
|
39 | ||
40 | } // End course_single_lessons() |
|
41 | ||
42 | ||
43 | /** |
|
@@ 1130-1141 (lines=12) @@ | ||
1127 | * |
|
1128 | * @since 1.9.0 |
|
1129 | */ |
|
1130 | function sensei_the_course_results_lessons(){ |
|
1131 | // load backwards compatible template name if it exists in the users theme |
|
1132 | $located_template= locate_template( Sensei()->template_url . 'course-results/course-lessons.php' ); |
|
1133 | if( $located_template ){ |
|
1134 | ||
1135 | Sensei_Templates::get_template( 'course-results/course-lessons.php' ); |
|
1136 | return; |
|
1137 | ||
1138 | } |
|
1139 | ||
1140 | Sensei_Templates::get_template( 'course-results/lessons.php' ); |
|
1141 | } |
|
1142 | ||
1143 | /** |
|
1144 | * Echo the number of columns (also number of items per row) on the |
@@ 1355-1372 (lines=18) @@ | ||
1352 | * @since 1.8.0 |
|
1353 | * @return void |
|
1354 | */ |
|
1355 | public function load_course_module_content_template(){ |
|
1356 | ||
1357 | if ( ! is_singular( 'course' ) ) { |
|
1358 | return; |
|
1359 | } |
|
1360 | ||
1361 | // load backwards compatible template name if it exists in the users theme |
|
1362 | $located_template= locate_template( Sensei()->template_url . 'single-course/course-modules.php' ); |
|
1363 | if( $located_template ){ |
|
1364 | ||
1365 | Sensei_Templates::get_template( 'single-course/course-modules.php' ); |
|
1366 | return; |
|
1367 | ||
1368 | } |
|
1369 | ||
1370 | Sensei_Templates::get_template( 'single-course/modules.php' ); |
|
1371 | ||
1372 | } // end course_module_content |
|
1373 | ||
1374 | /** |
|
1375 | * Returns all lessons for the given module ID |