-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php get_template_part('templates/page', 'header'); ?> | ||
|
||
<?php if (!have_posts()) : ?> | ||
<div class="alert alert-warning"> | ||
<?php _e('Sorry, no results were found.', 'sage'); ?> | ||
</div> | ||
<?php get_search_form(); ?> | ||
<?php endif; ?> | ||
|
||
<?php while (have_posts()) : the_post(); ?> | ||
<?php get_template_part('templates/content', 'search'); ?> | ||
<?php endwhile; ?> | ||
|
||
<?php the_posts_navigation(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<article <?php post_class(); ?>> | ||
<header> | ||
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> | ||
<?php if (get_post_type() === 'post') { get_template_part('templates/entry-meta'); } ?> | ||
</header> | ||
<div class="entry-summary"> | ||
<?php the_excerpt(); ?> | ||
</div> | ||
</article> |