This repository has been archived by the owner on Aug 10, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add category and tag templates. Resolves #24
- Loading branch information
1 parent
4ac3ead
commit c432a93
Showing
2 changed files
with
102 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
/** | ||
* The template for displaying Category pages. | ||
* | ||
* Learn more: http://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package accessiblezen | ||
* @since accessiblezen 1.0 | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<section id="primary" class="content-area cf"> | ||
<main id="content" role="main"> | ||
|
||
<?php if ( have_posts() ) : ?> | ||
|
||
<header class="page-header"> | ||
<h1 class="page-title"> | ||
<?php accessiblezen_archive_page_title_etc(); ?> | ||
</header><!-- .page-header --> | ||
|
||
<?php rewind_posts(); ?> | ||
|
||
<?php accessiblezen_content_nav( 'nav-above' ); ?> | ||
|
||
<?php /* Start the Loop */ ?> | ||
<?php while ( have_posts() ) : the_post(); ?> | ||
|
||
<?php | ||
/* Include the Post-Format-specific template for the content. | ||
* If you want to overload 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( 'content', get_post_format() ); | ||
?> | ||
|
||
<?php endwhile; ?> | ||
|
||
<?php accessiblezen_content_nav( 'nav-below' ); ?> | ||
|
||
<?php else : ?> | ||
|
||
<?php get_template_part( 'no-results', 'archive' ); ?> | ||
|
||
<?php endif; ?> | ||
|
||
</main><!-- #content --> | ||
</section><!-- #primary .content-area --> | ||
|
||
<?php get_footer(); ?> |
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,51 @@ | ||
<?php | ||
/** | ||
* The template for displaying Tag pages. | ||
* | ||
* Learn more: http://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package accessiblezen | ||
* @since accessiblezen 1.0 | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<section id="primary" class="content-area cf"> | ||
<main id="content" role="main"> | ||
|
||
<?php if ( have_posts() ) : ?> | ||
|
||
<header class="page-header"> | ||
<h1 class="page-title"> | ||
<?php accessiblezen_archive_page_title_etc(); ?> | ||
</header><!-- .page-header --> | ||
|
||
<?php rewind_posts(); ?> | ||
|
||
<?php accessiblezen_content_nav( 'nav-above' ); ?> | ||
|
||
<?php /* Start the Loop */ ?> | ||
<?php while ( have_posts() ) : the_post(); ?> | ||
|
||
<?php | ||
/* Include the Post-Format-specific template for the content. | ||
* If you want to overload 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( 'content', get_post_format() ); | ||
?> | ||
|
||
<?php endwhile; ?> | ||
|
||
<?php accessiblezen_content_nav( 'nav-below' ); ?> | ||
|
||
<?php else : ?> | ||
|
||
<?php get_template_part( 'no-results', 'archive' ); ?> | ||
|
||
<?php endif; ?> | ||
|
||
</main><!-- #content --> | ||
</section><!-- #primary .content-area --> | ||
|
||
<?php get_footer(); ?> |