Permalink
Browse files

Improve code readability in no-results.php

It's difficult to get around php if () {} statements when mixed with markup, so using if () : endif; syntax instead.
  • Loading branch information...
1 parent 7a4aa04 commit 5bf85736bc4cce84db5a2412551b78449e1f7728 @kovshenin kovshenin committed Aug 14, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 no-results.php
View
@@ -15,20 +15,20 @@
</header><!-- .entry-header -->
<div class="entry-content">
- <?php if ( is_home() ) { ?>
+ <?php if ( is_home() ) : ?>
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', '_s' ), admin_url( 'post-new.php' ) ); ?></p>
- <?php } elseif ( is_search() ) { ?>
+ <?php elseif ( is_search() ) : ?>
<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', '_s' ); ?></p>
<?php get_search_form(); ?>
- <?php } else { ?>
+ <?php else : ?>
<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', '_s' ); ?></p>
<?php get_search_form(); ?>
- <?php } ?>
+ <?php endif; ?>
</div><!-- .entry-content -->
</article><!-- #post-0 .post .no-results .not-found -->

0 comments on commit 5bf8573

Please sign in to comment.