twentyeleven code tidy up. Props dd32, lancewillett. fixes #17748

git-svn-id: http://svn.automattic.com/wordpress/trunk@18385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-06-30 21:57:50 +00:00
parent bd2e887655
commit fdc7409251
8 changed files with 101 additions and 83 deletions

View File

@ -16,6 +16,8 @@
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->

View File

@ -26,17 +26,22 @@
<footer class="entry-meta">
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
/* translators: used between list items, there is a space after the comma */
$tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
if ( '' != $tag_list ) {
$utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
} else {
} elseif ( '' != $categories_list ) {
$utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
} else {
$utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
}
printf(
$utility_text,
/* translators: used between list items, there is a space after the comma */
get_the_category_list( __( ', ', 'twentyeleven' ) ),
$categories_list,
$tag_list,
esc_url( get_permalink() ),
the_title_attribute( 'echo=0' ),

View File

@ -500,7 +500,7 @@ function twentyeleven_comment( $comment, $args, $depth ) {
case 'trackback' :
?>
<li class="post pingback">
<p><?php _e( 'Pingback:', 'twentyeleven' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyeleven' ), ' ' ); ?></p>
<p><?php _e( 'Pingback:', 'twentyeleven' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?></p>
<?php
break;
default :
@ -528,7 +528,7 @@ function twentyeleven_comment( $comment, $args, $depth ) {
);
?>
<?php edit_comment_link( __( '[Edit]', 'twentyeleven' ), ' ' ); ?>
<?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .comment-author .vcard -->
<?php if ( $comment->comment_approved == '0' ) : ?>

View File

@ -265,11 +265,11 @@ body {
}
.one-column.singular .entry-meta .edit-link a {
position: absolute;
left: 0px;
left: 0;
top: 40px;
}
.one-column.singular #author-info {
margin: 2.2em -8.8% 0px;
margin: 2.2em -8.8% 0;
padding: 20px 8.8%;
}
/* Make sure we have room for our comment avatars */
@ -822,18 +822,21 @@ dl.gallery-item {
.page-link span {
margin-right: 6px;
}
.entry-meta .edit-link a {
.entry-meta .edit-link a,
.commentlist .edit-link a {
background: #eee;
-moz-border-radius: 3px;
border-radius: 3px;
color: #666;
float: right;
font-size: 12px;
line-height: 1.5em;
font-weight: 300;
text-decoration: none;
padding: 0px 8px;
padding: 0 8px;
}
.entry-meta .edit-link a:hover {
.entry-meta .edit-link a:hover,
.commentlist .edit-link a:hover {
background: #888;
color: #fff;
}
@ -890,7 +893,7 @@ p img,
}
.wp-caption .wp-caption-text {
margin-bottom: 0.6em;
padding: 10px 0px 5px 40px;
padding: 10px 0 5px 40px;
position: relative;
}
.wp-caption .wp-caption-text:before {
@ -1223,7 +1226,7 @@ blockquote.pull {
margin-bottom: 0;
}
.indexed.format-image footer.entry-meta {
background: #e0e6e8;
background: #ddd;
margin-top: -7px;
padding: 20px 30px;
overflow: hidden;
@ -1245,6 +1248,9 @@ blockquote.pull {
.indexed.format-image footer.entry-meta a {
color: #444;
}
.indexed.format-image footer.entry-meta a:hover {
color: #fff;
}
#content .indexed.format-image img {
border: none;
max-width: 100%;
@ -1328,7 +1334,7 @@ article.intro .entry-title {
article.intro .entry-content {
color: #111;
font-size: 16px;
padding: 1.625em 0px 0.625em;
padding: 1.625em 0 0.625em;
}
article.intro .edit-link a {
background: #aaa;
@ -1336,7 +1342,7 @@ article.intro .edit-link a {
border-radius: 3px;
color: #fff;
font-size: 12px;
padding: 0px 8px;
padding: 0 8px;
position: absolute;
top: 30px;
right: 20px;
@ -1966,7 +1972,7 @@ a.comment-reply-link {
color: #666;
display: inline-block;
font-size: 12px;
padding: 0px 8px;
padding: 0 8px;
text-decoration: none;
}
a.comment-reply-link:hover,
@ -2104,10 +2110,10 @@ a.comment-reply-link > span {
color: #eee;
cursor: pointer;
font-size: 15px;
left: 30px;
margin: 20px 0;
padding: 5px 42px 5px 22px;
position: relative;
left: 30px;
text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}
#respond input#submit:active {
@ -2308,12 +2314,12 @@ p.comment-form-comment {
margin: 0 0 0 1.625em;
}
.singular .entry-meta .edit-link a {
left: 0px;
left: 0;
position: absolute;
top: 40px;
}
.singular #author-info {
margin: 2.2em -8.8% 0px;
margin: 2.2em -8.8% 0;
padding: 20px 8.8%;
}
/* Make sure we have room for our comment avatars */
@ -2346,6 +2352,7 @@ p.comment-form-comment {
object {
max-width: 100%;
}
}
@media (max-width: 650px) {
/* @media (max-width: 650px) Reduce font-sizes for better readability on smaller devices */
@ -2446,6 +2453,7 @@ p.comment-form-comment {
width: 100%;
height: auto;
}
}
@media (max-width: 450px) {
#content .gallery-columns-2 .gallery-item {
@ -2456,6 +2464,7 @@ p.comment-form-comment {
width: 100%;
height: auto;
}
}
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
body {
@ -2467,6 +2476,7 @@ p.comment-form-comment {
#branding {
border-top: none;
}
}
@ -2635,6 +2645,7 @@ p.comment-form-comment {
.commentlist .children > li.bypostauthor > article .comment-meta {
color: #666;
}
}