|
5 | 5 |
|
6 | 6 | get_header(); ?>
|
7 | 7 |
|
8 |
| - <section id="primary"> |
9 |
| - <div id="content" role="main"> |
| 8 | +<div class="content-right twelve columns"> |
| 9 | + <div id="content"> |
| 10 | + <?php if ( have_posts() ) : ?> |
| 11 | + |
| 12 | + <header class="page-header"> |
| 13 | + <h1 class="page-title"><?php |
| 14 | + printf( __( 'Tagged: %s', 'twentyeleven' ), '<span>' . single_tag_title( '', false ) . '</span>' ); |
| 15 | + ?></h1> |
| 16 | + <hr> |
| 17 | + <?php |
| 18 | + $tag_description = tag_description(); |
| 19 | + if ( ! empty( $tag_description ) ) { |
| 20 | + echo apply_filters( 'tag_archive_meta', |
| 21 | + '<div class="tag-archive-meta">' . $tag_description . '</div>' ); |
| 22 | + } |
| 23 | + ?> |
| 24 | + </header> |
| 25 | + |
| 26 | + <?php |
| 27 | + while ( have_posts() ) : the_post(); |
| 28 | + get_template_part( 'content', 'listing' ); |
| 29 | + endwhile; |
| 30 | + ?> |
| 31 | + |
| 32 | + <?php twentyeleven_content_nav( 'nav-below' ); ?> |
| 33 | + |
| 34 | + <?php else : ?> |
| 35 | + |
| 36 | + <article id="post-0" class="post no-results not-found"> |
| 37 | + <header class="entry-header"> |
| 38 | + <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1> |
| 39 | + </header> |
| 40 | + |
| 41 | + <div class="entry-content"> |
| 42 | + <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p> |
| 43 | + <?php get_search_form(); ?> |
| 44 | + </div> |
| 45 | + </article> |
| 46 | + |
| 47 | + <?php endif; ?> |
| 48 | + </div> |
| 49 | + |
| 50 | + <?php get_sidebar(); ?> |
| 51 | +</div> |
10 | 52 |
|
11 |
| - <?php if ( have_posts() ) : ?> |
12 |
| - |
13 |
| - <header class="page-header"> |
14 |
| - <h1 class="page-title"><?php |
15 |
| - printf( __( 'Tag Archives: %s', 'twentyeleven' ), '<span>' . single_tag_title( '', false ) . '</span>' ); |
16 |
| - ?></h1> |
17 |
| - |
18 |
| - <?php |
19 |
| - $tag_description = tag_description(); |
20 |
| - if ( ! empty( $tag_description ) ) |
21 |
| - echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' ); |
22 |
| - ?> |
23 |
| - </header> |
24 |
| - |
25 |
| - <?php twentyeleven_content_nav( 'nav-above' ); ?> |
26 |
| - |
27 |
| - <?php /* Start the Loop */ ?> |
28 |
| - <?php while ( have_posts() ) : the_post(); ?> |
29 |
| - |
30 |
| - <?php |
31 |
| - get_template_part( 'content' ); |
32 |
| - ?> |
33 |
| - |
34 |
| - <?php endwhile; ?> |
35 |
| - |
36 |
| - <?php twentyeleven_content_nav( 'nav-below' ); ?> |
37 |
| - |
38 |
| - <?php else : ?> |
39 |
| - |
40 |
| - <article id="post-0" class="post no-results not-found"> |
41 |
| - <header class="entry-header"> |
42 |
| - <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1> |
43 |
| - </header><!-- .entry-header --> |
44 |
| - |
45 |
| - <div class="entry-content"> |
46 |
| - <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p> |
47 |
| - <?php get_search_form(); ?> |
48 |
| - </div><!-- .entry-content --> |
49 |
| - </article><!-- #post-0 --> |
50 |
| - |
51 |
| - <?php endif; ?> |
52 |
| - |
53 |
| - </div><!-- #content --> |
54 |
| - </section><!-- #primary --> |
55 |
| - |
56 |
| -<?php get_sidebar(); ?> |
57 | 53 | <?php get_footer(); ?>
|
0 commit comments