| @@ 10-38 (lines=29) @@ | ||
| 7 | * @package bitsy |
|
| 8 | */ |
|
| 9 | ||
| 10 | if ( have_posts() ) : ?> |
|
| 11 | ||
| 12 | <header class="page-header"> |
|
| 13 | <?php |
|
| 14 | the_archive_title( '<h1 class="page-title">', '</h1>' ); |
|
| 15 | the_archive_description( '<div class="archive-description">', '</div>' ); |
|
| 16 | ?> |
|
| 17 | </header><!-- .page-header --> |
|
| 18 | ||
| 19 | <?php |
|
| 20 | /* Start the Loop */ |
|
| 21 | while ( have_posts() ) : the_post(); |
|
| 22 | ||
| 23 | /* |
|
| 24 | * Include the Post-Format-specific template for the content. |
|
| 25 | * If you want to override this in a child theme, then include a file |
|
| 26 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
|
| 27 | */ |
|
| 28 | get_template_part( 'components/post/content', get_post_format() ); |
|
| 29 | ||
| 30 | endwhile; |
|
| 31 | ||
| 32 | the_posts_navigation(); |
|
| 33 | ||
| 34 | else : |
|
| 35 | ||
| 36 | get_template_part( 'components/post/content', 'none' ); |
|
| 37 | ||
| 38 | endif; |
|
| @@ 10-35 (lines=26) @@ | ||
| 7 | * @package bitsy |
|
| 8 | */ |
|
| 9 | ||
| 10 | if ( have_posts() ) : ?> |
|
| 11 | ||
| 12 | <header class="page-header"> |
|
| 13 | <h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'bitsy' ), '<span>' . get_search_query() . '</span>' ); ?></h1> |
|
| 14 | </header><!-- .page-header --> |
|
| 15 | ||
| 16 | <?php |
|
| 17 | /* Start the Loop */ |
|
| 18 | while ( have_posts() ) : the_post(); |
|
| 19 | ||
| 20 | /** |
|
| 21 | * Run the loop for the search to output the results. |
|
| 22 | * If you want to overload this in a child theme then include a file |
|
| 23 | * called content-search.php and that will be used instead. |
|
| 24 | */ |
|
| 25 | get_template_part( 'components/post/content', 'search' ); |
|
| 26 | ||
| 27 | endwhile; |
|
| 28 | ||
| 29 | the_posts_navigation(); |
|
| 30 | ||
| 31 | else : |
|
| 32 | ||
| 33 | get_template_part( 'components/post/content', 'none' ); |
|
| 34 | ||
| 35 | endif; |
|
| 36 | ||