Consistent use of PHP alternative syntax
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<?php if (!have_posts()) { ?>
|
||||
<?php if (!have_posts()) : ?>
|
||||
<div class="alert alert-block fade in">
|
||||
<a class="close" data-dismiss="alert">×</a>
|
||||
<p><?php _e('Sorry, no results were found.', 'roots'); ?></p>
|
||||
</div>
|
||||
<?php get_search_form(); ?>
|
||||
<?php } ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
@@ -21,9 +21,9 @@
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php if ($wp_query->max_num_pages > 1) { ?>
|
||||
<?php if ($wp_query->max_num_pages > 1) : ?>
|
||||
<nav id="post-nav" class="pager">
|
||||
<div class="previous"><?php next_posts_link(__('← Older posts', 'roots')); ?></div>
|
||||
<div class="next"><?php previous_posts_link(__('Newer posts →', 'roots')); ?></div>
|
||||
</nav>
|
||||
<?php } ?>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user