Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mor10 committed Dec 11, 2015
1 parent beace87 commit 39da0ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
</main><!-- #main -->
</div><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
16 changes: 8 additions & 8 deletions template-parts/content-none.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
<header class="page-header">
<h1 class="page-title">
<?php
if ( is_404() ) { _e( 'Page not available', 'popper' );
if ( is_404() ) { esc_html_e( 'Page not available', 'popper' );
} else if ( is_search() ) {
/* translators: %s = search query */
printf( __( 'Nothing found for &ldquo;%s&rdquo;', 'popper'), '<em>' . get_search_query() . '</em>' );
printf( esc_html_e( 'Nothing found for &ldquo;%s&rdquo;', 'popper'), '<em>' . get_search_query() . '</em>' );
} else {
_e( 'Nothing Found', 'popper' );
esc_html_e( 'Nothing Found', 'popper' );
}
?>
</h1>
Expand All @@ -33,10 +33,10 @@

<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'popper' ); ?></p>
<?php get_search_form(); ?>

<?php elseif ( is_404() ) : ?>

<p><?php _e( 'You seem to be lost. To find what you are looking for check out the most recent articles below or try a search:', 'popper' ); ?></p>
<p><?php esc_html_e( 'You seem to be lost. To find what you are looking for check out the most recent articles below or try a search:', 'popper' ); ?></p>
<?php get_search_form(); ?>

<?php else : ?>
Expand All @@ -46,11 +46,11 @@

<?php endif; ?>
</div><!-- .page-content -->

<?php
if ( is_404() || is_search() ) {
?>
<h1 class="page-title secondary-title"><?php _e( 'Most recent posts:', 'popper' ); ?></h1>
<h1 class="page-title secondary-title"><?php esc_html_e( 'Most recent posts:', 'popper' ); ?></h1>
<?php
// Get the 6 latest posts
$args = array(
Expand All @@ -67,6 +67,6 @@
}
/* Restore original Post Data */
wp_reset_postdata();
} // endif
} // endif
?>
</section><!-- .no-results -->

0 comments on commit 39da0ea

Please sign in to comment.