Beispiel #1
0
/**
 * Template that displays all pages by default.
 *
 * @package Leean
 * @since 1.0.0
 */
get_header();
use Leean\Load;
?>
<div class="wrap">
	<main class="site__main" role="main">

		<?php 
while (have_posts()) {
    the_post();
    Load::partial('content');
    // If comments are open or we have at least one comment.
    if (comments_open() || 0 !== intval(get_comments_number())) {
        comments_template();
    }
}
?>

	</main>
	<?php 
get_sidebar();
?>
</div>

<?php 
get_footer();
Beispiel #2
0
/**
 * The Template for displaying all single posts.
 *
 * @package Leean
 * @since 1.0.0
 */
get_header();
use Leean\Load;
?>

<div class="wrap">
	<main class="site__main" role="main">
	<?php 
while (have_posts()) {
    the_post();
    Load::partial('content-single');
    wp_link_pages();
    the_post_navigation();
    // If comments are open or we have at least one comment.
    if (comments_open() || 0 !== absint(get_comments_number())) {
        comments_template();
    }
}
?>
	</main>
	<?php 
get_sidebar();
?>
</div>

<?php