Add PHPCS config, lint files
This commit is contained in:
parent
3c30f664b8
commit
c5a41ae9ea
24 changed files with 1686 additions and 1427 deletions
19
search.php
19
search.php
|
@ -20,7 +20,8 @@ get_header(); ?>
|
|||
|
||||
<?php
|
||||
// Start the loop.
|
||||
while ( have_posts() ) : the_post();
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
|
||||
/**
|
||||
* Run the loop for the search to output the results.
|
||||
|
@ -29,17 +30,19 @@ get_header(); ?>
|
|||
*/
|
||||
get_template_part( 'template-parts/content', 'search' );
|
||||
|
||||
// End the loop.
|
||||
// End the loop.
|
||||
endwhile;
|
||||
|
||||
// Previous/next page navigation.
|
||||
the_posts_pagination( array(
|
||||
'prev_text' => __( 'Previous page', 'twentysixteen' ),
|
||||
'next_text' => __( 'Next page', 'twentysixteen' ),
|
||||
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
|
||||
) );
|
||||
the_posts_pagination(
|
||||
array(
|
||||
'prev_text' => __( 'Previous page', 'twentysixteen' ),
|
||||
'next_text' => __( 'Next page', 'twentysixteen' ),
|
||||
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
|
||||
)
|
||||
);
|
||||
|
||||
// If no content, include the "No posts found" template.
|
||||
// If no content, include the "No posts found" template.
|
||||
else :
|
||||
get_template_part( 'template-parts/content', 'none' );
|
||||
|
||||
|
|
Reference in a new issue