-
Notifications
You must be signed in to change notification settings - Fork 1
/
single-courses.php
47 lines (35 loc) · 1 KB
/
single-courses.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* The template for displaying all single courses
*
* @package Understrap
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
get_header();
$container = get_theme_mod( 'understrap_container_type' );
?>
<div class="wrapper" id="single-course-wrapper">
<header class="entry-header">
<div class="entry-header-wrapper">
<h2 class="entry-subtitle">Courses</h2>
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</div>
</header><!-- .entry-header -->
<div class="<?php echo esc_attr( $container ); ?>" id="content" tabindex="-1">
<main class="site-main" id="main">
<?php
while ( have_posts() ) {
the_post();
get_template_part( 'loop-templates/content', 'single-course' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
}
?>
</main><!-- #main -->
</div><!-- #content -->
</div><!-- #single-wrapper -->
<?php
get_footer();