| | 1 | <?php |
| | 2 | /** |
| | 3 | * The default template for displaying Term Archive pages. |
| | 4 | * |
| | 5 | * @package WordPress |
| | 6 | * @subpackage Twenty_Eleven |
| | 7 | * @since Twenty Eleven 1.0 |
| | 8 | */ |
| | 9 | |
| | 10 | get_header(); ?> |
| | 11 | |
| | 12 | <section id="primary"> |
| | 13 | <div id="content" role="main"> |
| | 14 | |
| | 15 | <header class="page-header"> |
| | 16 | <h1 class="page-title"><?php |
| | 17 | $taxonomy = get_taxonomy( get_query_var( 'taxonomy' ) ); |
| | 18 | $taxonomy_name = __( 'Taxonomy', 'twentyeleven' ); |
| | 19 | if ( isset( $taxonomy->labels->singular_name ) ) { |
| | 20 | $taxonomy_name = $taxonomy->labels->singular_name; |
| | 21 | } |
| | 22 | printf( __( '%1$s Archives: %2$s', 'twentyeleven' ), $taxonomy_name, '<span>' . single_term_title( '', false ) . '</span>' ); |
| | 23 | ?></h1> |
| | 24 | |
| | 25 | <?php $description = term_description(); if ( ! empty( $description ) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $description . '</div>' ); ?> |
| | 26 | </header> |
| | 27 | |
| | 28 | <?php twentyeleven_content_nav( 'nav-above' ); ?> |
| | 29 | |
| | 30 | <?php /* Start the Loop */ ?> |
| | 31 | <?php while ( have_posts() ) : the_post(); ?> |
| | 32 | |
| | 33 | <?php |
| | 34 | /* Include the Post-Format-specific template for the content. |
| | 35 | * If you want to overload this in a child theme then include a file |
| | 36 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
| | 37 | */ |
| | 38 | get_template_part( 'content', get_post_format() ); |
| | 39 | ?> |
| | 40 | |
| | 41 | <?php endwhile; ?> |
| | 42 | |
| | 43 | <?php twentyeleven_content_nav( 'nav-below' ); ?> |
| | 44 | |
| | 45 | </div><!-- #content --> |
| | 46 | </section><!-- #primary --> |
| | 47 | |
| | 48 | <?php get_sidebar(); ?> |
| | 49 | <?php get_footer(); ?> |
| | 50 | No newline at end of file |