<?php /** * The template for displaying all single posts * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post * * @package Education_LMS */ get_header(); $post_layout = esc_attr( get_theme_mod('post_layout', 'right-sidebar') ); $col = ( $post_layout == 'no-sidebar' ) ? 12 : 9; ?> <div id="primary" class="content-area"> <div class="container"> <div class="row"> <?php if ( $post_layout != 'no-sidebar' && $post_layout == 'left-sidebar' ) { get_sidebar(); } ?> <main id="main" class="site-main col-md-<?php echo intval($col) ?>"> <div class="blog-content"> <?php while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content', 'single' ); // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : comments_template(); endif; endwhile; // End of the loop. ?> </div> </main><!-- #main --> <?php if ( $post_layout != 'no-sidebar' && $post_layout == 'right-sidebar' ) { get_sidebar(); } ?> </div> </div> </div><!-- #primary --> <?php get_footer();
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
assets | Folder | 0755 |
|
|
inc | Folder | 0755 |
|
|
learnpress | Folder | 0755 |
|
|
template-parts | Folder | 0755 |
|
|
404.php | File | 898 B | 0644 |
|
archive.php | File | 1.32 KB | 0644 |
|
comments.php | File | 2.01 KB | 0644 |
|
footer.php | File | 3.31 KB | 0644 |
|
fullwidth-template.php | File | 531 B | 0644 |
|
functions.php | File | 10.15 KB | 0644 |
|
header.php | File | 1.37 KB | 0644 |
|
index.php | File | 1.57 KB | 0644 |
|
page.php | File | 1.22 KB | 0644 |
|
readme.txt | File | 2.77 KB | 0644 |
|
screenshot.png | File | 230.88 KB | 0644 |
|
search.php | File | 1.77 KB | 0644 |
|
sidebar.php | File | 589 B | 0644 |
|
single.php | File | 1.51 KB | 0644 |
|
style.css | File | 63.09 KB | 0644 |
|
woocommerce.php | File | 408 B | 0644 |
|