[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Template used to display Tag 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 <?php if ( have_posts() ) : ?> 16 17 <header class="page-header"> 18 <h1 class="page-title"> 19 <?php 20 /* translators: %s: Tag title. */ 21 printf( __( 'Tag Archives: %s', 'twentyeleven' ), '<span>' . single_tag_title( '', false ) . '</span>' ); 22 ?> 23 </h1> 24 25 <?php 26 $tag_description = tag_description(); 27 if ( ! empty( $tag_description ) ) { 28 /** 29 * Filters the default Twenty Eleven tag description. 30 * 31 * @since Twenty Eleven 1.0 32 * 33 * @param string The default tag description. 34 */ 35 echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' ); 36 } 37 ?> 38 </header> 39 40 <?php twentyeleven_content_nav( 'nav-above' ); ?> 41 42 <?php 43 // Start the Loop. 44 while ( have_posts() ) : 45 the_post(); 46 ?> 47 48 <?php 49 /* 50 * Include the Post-Format-specific template for the content. 51 * If you want to overload this in a child theme then include a file 52 * called content-___.php (where ___ is the Post Format name) and that 53 * will be used instead. 54 */ 55 get_template_part( 'content', get_post_format() ); 56 ?> 57 58 <?php endwhile; ?> 59 60 <?php twentyeleven_content_nav( 'nav-below' ); ?> 61 62 <?php else : ?> 63 64 <article id="post-0" class="post no-results not-found"> 65 <header class="entry-header"> 66 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1> 67 </header><!-- .entry-header --> 68 69 <div class="entry-content"> 70 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p> 71 <?php get_search_form(); ?> 72 </div><!-- .entry-content --> 73 </article><!-- #post-0 --> 74 75 <?php endif; ?> 76 77 </div><!-- #content --> 78 </section><!-- #primary --> 79 80 <?php get_sidebar(); ?> 81 <?php get_footer(); ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Sun Dec 22 08:20:01 2024 | Cross-referenced by PHPXref |