Theme: Initial commit.

This was forked from `pub/wporg-main` and `pub/wporg-plugins`, and then customized.
This commit is contained in:
Ian Dunn 2019-09-24 14:37:41 -07:00
commit de191e098b
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
38 changed files with 4532 additions and 0 deletions

View file

@ -0,0 +1,52 @@
<?php
namespace WordPressdotorg\Five_for_the_Future\Theme;
// If we don't have any posts to display for the archive, then send a 404 status. See #meta4151
if ( ! have_posts() ) {
status_header( 404 );
nocache_headers();
}
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>
</header><!-- .page-header -->
<?php
while ( have_posts() ) :
the_post();
/*
* 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', 'page' );
endwhile;
the_posts_pagination();
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();