Twenty Twelve: tag and category descriptions should not be part of h1 element. Props obenland, see #21255.
git-svn-id: http://core.svn.wordpress.org/trunk@21331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
50fc51d8d2
commit
f6b8c4779a
|
@ -18,29 +18,38 @@ get_header(); ?>
|
|||
<div id="content" role="main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<h1 class="archive-title"><?php
|
||||
if ( is_day() ) {
|
||||
printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
|
||||
} elseif ( is_month() ) {
|
||||
printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
|
||||
} elseif ( is_year() ) {
|
||||
printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
|
||||
} elseif ( is_tag() ) {
|
||||
printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' );
|
||||
// Show an optional tag description
|
||||
$tag_description = tag_description();
|
||||
if ( $tag_description )
|
||||
echo '<div class="tag-archive-meta">' . $tag_description . '</div>';
|
||||
} elseif ( is_category() ) {
|
||||
printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
||||
// Show an optional category description
|
||||
$category_description = category_description();
|
||||
if ( $category_description )
|
||||
echo '<div class="category-archive-meta">' . $category_description . '</div>';
|
||||
} else {
|
||||
_e( 'Blog Archives', 'twentytwelve' );
|
||||
}
|
||||
?></h1>
|
||||
<header class="archive-header">
|
||||
<h1 class="archive-title"><?php
|
||||
if ( is_day() ) {
|
||||
printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
|
||||
} elseif ( is_month() ) {
|
||||
printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
|
||||
} elseif ( is_year() ) {
|
||||
printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
|
||||
} elseif ( is_tag() ) {
|
||||
printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' );
|
||||
} elseif ( is_category() ) {
|
||||
printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
||||
} else {
|
||||
_e( 'Blog Archives', 'twentytwelve' );
|
||||
}
|
||||
?></h1>
|
||||
|
||||
<?php
|
||||
// Show an optional tag description.
|
||||
if ( is_tag() ) {
|
||||
$tag_description = tag_description();
|
||||
if ( $tag_description )
|
||||
echo '<div class="archive-meta">' . $tag_description . '</div>';
|
||||
}
|
||||
// Show an optional category description.
|
||||
if ( is_category() ) {
|
||||
$category_description = category_description();
|
||||
if ( $category_description )
|
||||
echo '<div class="archive-meta">' . $category_description . '</div>';
|
||||
}
|
||||
?>
|
||||
</header><!-- /. archive-header -->
|
||||
|
||||
<?php
|
||||
/* Start the Loop */
|
||||
|
|
|
@ -1072,7 +1072,7 @@ footer .edit-link {
|
|||
/* =Styling for the archive view
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
.archive #content .archive-title,
|
||||
.archive #content .archive-header,
|
||||
.search .page-header {
|
||||
margin-bottom: 48px;
|
||||
margin-bottom: 3.428571429rem;
|
||||
|
@ -1080,6 +1080,15 @@ footer .edit-link {
|
|||
padding-bottom: 1.571428571rem;
|
||||
border-bottom: 1px solid #ededed;
|
||||
}
|
||||
.archive-meta {
|
||||
color: #636363;
|
||||
font-size: 11px;
|
||||
font-size: 0.785714286rem;
|
||||
line-height: 2.181818182;
|
||||
margin-top: 22px;
|
||||
margin-top: 1.571428571rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
|
||||
/* =Styling for the single image attachment view
|
||||
|
|
Loading…
Reference in New Issue