Пример #1
0
<div id="content" class="row">

	<div id="main" class="<?php 
simple_boostrap_main_classes();
?>
" role="main">

		<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
		
		<?php 
        simple_boostrap_display_post(false);
        ?>
		
		<?php 
        comments_template('', true);
        ?>
		
		<?php 
    }
    ?>
		
		
		<?php 
} else {
    ?>
		
echo get_the_archive_title();
?>
			</h1>
		</div>

		<?php 
if (have_posts()) {
    ?>

		<?php 
    while (have_posts()) {
        the_post();
        ?>
		
		<?php 
        simple_boostrap_display_post(true);
        ?>
		
		<?php 
    }
    ?>
	
		
		<?php 
    simple_boostrap_page_navi();
    ?>
	
		
		<?php 
} else {
    ?>
<?php

get_template_part('content', 'standard-top');
?>

<?php 
if (have_posts()) {
    ?>

  <?php 
    while (have_posts()) {
        the_post();
        ?>

    <?php 
        simple_boostrap_display_post(['show_meta' => true]);
        ?>

    <?php 
        comments_template('', true);
        ?>

    <?php 
        if (get_next_post() || get_previous_post()) {
            ?>
    <nav class="section">
      <ul class="pager pager-unspaced">
        <li class="previous"><?php 
            previous_post_link('%link', '<span class="glyphicon glyphicon-chevron-left"></span> ' . __('Previous Post', "default"));
            ?>
</li>
<?php 
get_template_part('content', 'standard-top');
?>

<?php 
if (have_posts()) {
    ?>

  <?php 
    while (have_posts()) {
        the_post();
        ?>

    <?php 
        simple_boostrap_display_post(['multiple_on_page' => true]);
        ?>

  <?php 
    }
    ?>
	

  <?php 
    simple_boostrap_page_navi();
    ?>
	

<?php 
} else {
    ?>
    <div class="row">

      <div id="main" role="main" class="col-sm-12">

        <?php 
if (have_posts()) {
    ?>

          <?php 
    while (have_posts()) {
        the_post();
        ?>

            <?php 
        simple_boostrap_display_post(['show_meta' => false]);
        ?>

            <?php 
        comments_template();
        ?>

          <?php 
    }
    ?>

        <?php 
} else {
    ?>

          <?php