@@ 308-321 (lines=14) @@ | ||
305 | ||
306 | Sensei_Templates::get_template( 'globals/pagination-posts.php' ); |
|
307 | ||
308 | } elseif( is_singular('lesson') ) { |
|
309 | ||
310 | // backwards compatibility check for old location under the wrappers directory of the active theme |
|
311 | $template = locate_template( array( Sensei()->template_url . 'wrappers/pagination-lesson.php' ) ); |
|
312 | if( !empty( $template ) ){ |
|
313 | ||
314 | Sensei_Templates::get_template( 'wrappers/pagination-lesson.php' ); |
|
315 | return; |
|
316 | ||
317 | } |
|
318 | ||
319 | Sensei_Templates::get_template( 'globals/pagination-lesson.php' ); |
|
320 | ||
321 | } elseif( is_singular('quiz') ) { |
|
322 | ||
323 | // backwards compatibility check for old location under the wrappers directory of the active theme |
|
324 | $template = locate_template( array( Sensei()->template_url . 'wrappers/pagination-quiz.php' ) ); |
|
@@ 334-347 (lines=14) @@ | ||
331 | ||
332 | Sensei_Templates::get_template( 'globals/pagination-quiz.php' ); |
|
333 | ||
334 | } else { |
|
335 | ||
336 | // backwards compatibility check for old location under the wrappers directory of the active theme |
|
337 | $template = locate_template( array( Sensei()->template_url . 'wrappers/pagination.php' ) ); |
|
338 | if( !empty( $template ) ){ |
|
339 | ||
340 | Sensei_Templates::get_template( 'wrappers/pagination.php' ); |
|
341 | return; |
|
342 | ||
343 | } |
|
344 | ||
345 | Sensei_Templates::get_template( 'globals/pagination.php' ); |
|
346 | ||
347 | } // End If Statement |
|
348 | ||
349 | } // End sensei_output_content_pagination() |
|
350 |