~sinzui/+junk/essence-wp

« back to all changes in this revision

Viewing changes to themes/samsara2/tag.php

  • Committer: Curtis Hovey
  • Date: 2013-02-06 04:46:10 UTC
  • Revision ID: sinzui.is@verizon.net-20130206044610-nww7ftr1xxfy3aj8
Added rudimentary new samara2 theme based on Twenty Twelve 1.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * The template for displaying Tag pages.
 
4
 *
 
5
 * Used to display archive-type pages for posts in a tag.
 
6
 *
 
7
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 
8
 *
 
9
 * @package WordPress
 
10
 * @subpackage Twenty_Twelve
 
11
 * @since Twenty Twelve 1.0
 
12
 */
 
13
 
 
14
get_header(); ?>
 
15
 
 
16
        <section id="primary" class="site-content">
 
17
                <div id="content" role="main">
 
18
 
 
19
                <?php if ( have_posts() ) : ?>
 
20
                        <header class="archive-header">
 
21
                                <h1 class="archive-title"><?php printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?></h1>
 
22
 
 
23
                        <?php if ( tag_description() ) : // Show an optional tag description ?>
 
24
                                <div class="archive-meta"><?php echo tag_description(); ?></div>
 
25
                        <?php endif; ?>
 
26
                        </header><!-- .archive-header -->
 
27
 
 
28
                        <?php
 
29
                        /* Start the Loop */
 
30
                        while ( have_posts() ) : the_post();
 
31
 
 
32
                                /* Include the post format-specific template for the content. If you want to
 
33
                                 * this in a child theme then include a file called called content-___.php
 
34
                                 * (where ___ is the post format) and that will be used instead.
 
35
                                 */
 
36
                                get_template_part( 'content', get_post_format() );
 
37
 
 
38
                        endwhile;
 
39
 
 
40
                        twentytwelve_content_nav( 'nav-below' );
 
41
                        ?>
 
42
 
 
43
                <?php else : ?>
 
44
                        <?php get_template_part( 'content', 'none' ); ?>
 
45
                <?php endif; ?>
 
46
 
 
47
                </div><!-- #content -->
 
48
        </section><!-- #primary -->
 
49
 
 
50
<?php get_sidebar(); ?>
 
51
<?php get_footer(); ?>
 
 
b'\\ No newline at end of file'