2018-03-21 18:19:20 +00:00
< ? php
2021-01-22 16:19:51 +00:00
/**
* The template for displaying portfolio archives .
*
* @ package Omphaloskepsis
* @ since Omphaloskepsis 1.0
*/
2018-03-21 18:19:20 +00:00
2021-01-22 16:19:51 +00:00
get_header (); ?>
2018-03-21 18:19:20 +00:00
< main id = " list-page " class = " col-10 col-m-12 " role = " main " >
2021-01-23 13:54:14 +00:00
< header >
< h1 >< ? php echo wp_kses_post ( ( 'post' === get_post_type () ) ? single_cat_title () : ucfirst ( get_post_type () ) . 's' ); ?> .</h1>
< ? php
2021-01-22 16:19:51 +00:00
echo wp_kses_post (
get_the_posts_pagination (
array (
'screen_reader_text' => ' ' ,
'mid_size' => 20 ,
'prev_text' => '' ,
'next_text' => '' ,
)
2021-01-09 11:13:06 +00:00
)
);
?>
2021-01-23 13:54:14 +00:00
</ header >
< section id = " grid " class = " row " >
< ? php
2021-01-09 11:13:06 +00:00
if ( have_posts () ) :
// Start the loop.
while ( have_posts () ) :
the_post ();
2021-01-22 16:19:51 +00:00
2021-01-09 11:13:06 +00:00
/*
* Include the Post - Format - specific template for the content .
* If you want to override this in a child theme , then include a file
* called content - ___ . php ( where ___ is the Post Format name ) and that will be used instead .
*/
get_template_part ( 'template-parts/content' , get_post_format () );
// End the loop.
2021-01-23 13:54:14 +00:00
endwhile ;
2021-01-09 11:13:06 +00:00
// If no content, include the "No posts found" template.
2021-01-23 13:54:14 +00:00
else :
get_template_part ( 'template-parts/content' , 'none' );
endif ;
?>
</ section ><!-- . site - main -->
< footer >
< ? php
2021-01-22 16:19:51 +00:00
echo wp_kses_post (
get_the_posts_pagination (
array (
'screen_reader_text' => ' ' ,
'mid_size' => 20 ,
'prev_text' => '' ,
'next_text' => '' ,
)
2021-01-09 11:13:06 +00:00
)
);
?>
2021-01-23 13:54:14 +00:00
</ footer >
2018-03-21 18:19:20 +00:00
</ main ><!-- . content - area -->
< ? php get_footer (); ?>