Whitespace fixes
Replaced all hard tabs with spaces. Removed all trailing whitespace.
This commit is contained in:
58
loop.php
58
loop.php
@@ -1,39 +1,39 @@
|
||||
<?php /* If there are no posts to display, such as an empty archive page */ ?>
|
||||
<?php if (!have_posts()) : ?>
|
||||
<div class="notice">
|
||||
<p class="bottom"><?php _e('Sorry, no results were found.', 'roots'); ?></p>
|
||||
</div>
|
||||
<?php get_search_form(); ?>
|
||||
<div class="notice">
|
||||
<p class="bottom"><?php _e('Sorry, no results were found.', 'roots'); ?></p>
|
||||
</div>
|
||||
<?php get_search_form(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php /* Start loop */ ?>
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<?php roots_post_before(); ?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<?php roots_post_inside_before(); ?>
|
||||
<header>
|
||||
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
|
||||
<?php roots_entry_meta(); ?>
|
||||
</header>
|
||||
<div class="entry-content">
|
||||
<?php if (is_archive() || is_search()) : // Only display excerpts for archives and search ?>
|
||||
<?php the_excerpt(); ?>
|
||||
<?php else : ?>
|
||||
<?php the_content(); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<footer>
|
||||
<?php $tag = get_the_tags(); if (!$tag) { } else { ?><p><?php the_tags(); ?></p><?php } ?>
|
||||
</footer>
|
||||
<?php roots_post_inside_after(); ?>
|
||||
</article>
|
||||
<?php roots_post_after(); ?>
|
||||
<?php roots_post_before(); ?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<?php roots_post_inside_before(); ?>
|
||||
<header>
|
||||
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
|
||||
<?php roots_entry_meta(); ?>
|
||||
</header>
|
||||
<div class="entry-content">
|
||||
<?php if (is_archive() || is_search()) : // Only display excerpts for archives and search ?>
|
||||
<?php the_excerpt(); ?>
|
||||
<?php else : ?>
|
||||
<?php the_content(); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<footer>
|
||||
<?php $tag = get_the_tags(); if (!$tag) { } else { ?><p><?php the_tags(); ?></p><?php } ?>
|
||||
</footer>
|
||||
<?php roots_post_inside_after(); ?>
|
||||
</article>
|
||||
<?php roots_post_after(); ?>
|
||||
<?php endwhile; // End the loop ?>
|
||||
|
||||
<?php /* Display navigation to next/previous pages when applicable */ ?>
|
||||
<?php if ($wp_query->max_num_pages > 1) : ?>
|
||||
<nav id="post-nav">
|
||||
<div class="post-previous"><?php next_posts_link( __( '← Older posts', 'roots' ) ); ?></div>
|
||||
<div class="post-next"><?php previous_posts_link( __( 'Newer posts →', 'roots' ) ); ?></div>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
<nav id="post-nav">
|
||||
<div class="post-previous"><?php next_posts_link( __( '← Older posts', 'roots' ) ); ?></div>
|
||||
<div class="post-next"><?php previous_posts_link( __( 'Newer posts →', 'roots' ) ); ?></div>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user