Twenty Eleven: Show tag descriptions on tag archive pages if they exist; Props zeo; Fixes #17438
git-svn-id: http://svn.automattic.com/wordpress/trunk@18058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7692708e25
commit
7fe55a3443
|
@ -17,7 +17,11 @@ get_header(); ?>
|
|||
printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
||||
?></h1>
|
||||
|
||||
<?php $categorydesc = category_description(); if ( ! empty( $categorydesc ) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?>
|
||||
<?php
|
||||
$category_description = category_description();
|
||||
if ( ! empty( $category_description ) )
|
||||
echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
|
||||
?>
|
||||
</header>
|
||||
|
||||
<?php twentyeleven_content_nav( 'nav-above' ); ?>
|
||||
|
@ -41,4 +45,4 @@ get_header(); ?>
|
|||
</section><!-- #primary -->
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
<?php get_footer(); ?>
|
||||
<?php get_footer(); ?>
|
||||
|
|
|
@ -18,6 +18,12 @@ get_header(); ?>
|
|||
<h1 class="page-title"><?php
|
||||
printf( __( 'Tag Archives: %s', 'twentyeleven' ), '<span>' . single_tag_title( '', false ) . '</span>' );
|
||||
?></h1>
|
||||
|
||||
<?php
|
||||
$tag_description = tag_description();
|
||||
if ( ! empty( $tag_description ) )
|
||||
echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' );
|
||||
?>
|
||||
</header>
|
||||
|
||||
<?php rewind_posts(); ?>
|
||||
|
@ -43,4 +49,4 @@ get_header(); ?>
|
|||
</section><!-- #primary -->
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
<?php get_footer(); ?>
|
||||
<?php get_footer(); ?>
|
||||
|
|
Loading…
Reference in New Issue