Make WordPress Core

Ticket #17748: 17748.2.diff

File 17748.2.diff, 5.5 KB (added by dd32, 14 years ago)
  • wp-content/themes/twentyeleven/content-page.php

     
    1616        <div class="entry-content">
    1717                <?php the_content(); ?>
    1818                <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
     19        </div><!-- .entry-content -->
     20        <footer class="entry-meta">
    1921                <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
    20         </div><!-- .entry-content -->
     22        </footer><!-- .entry-meta -->
    2123</article><!-- #post-<?php the_ID(); ?> -->
  • wp-content/themes/twentyeleven/content-single.php

     
    2727        <footer class="entry-meta">
    2828                <?php
    2929                        /* translators: used between list items, there is a space after the comma */
     30                        $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
     31
     32                        /* translators: used between list items, there is a space after the comma */
    3033                        $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
    3134                        if ( '' != $tag_list ) {
    3235                                $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' );
     36                        } elseif ( '' != $categories_list ) {
     37                                $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' );
    3338                        } else {
    34                                 $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' );
     39                                $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' );
    3540                        }
     41
    3642                        printf(
    3743                                $utility_text,
    38                                 /* translators: used between list items, there is a space after the comma */
    39                                 get_the_category_list( __( ', ', 'twentyeleven' ) ),
     44                                $categories_list,
    4045                                $tag_list,
    4146                                esc_url( get_permalink() ),
    4247                                the_title_attribute( 'echo=0' ),
  • wp-content/themes/twentyeleven/functions.php

     
    500500                case 'trackback' :
    501501        ?>
    502502        <li class="post pingback">
    503                 <p><?php _e( 'Pingback:', 'twentyeleven' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyeleven' ), ' ' ); ?></p>
     503                <p><?php _e( 'Pingback:', 'twentyeleven' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?></p>
    504504        <?php
    505505                        break;
    506506                default :
     
    528528                                                );
    529529                                        ?>
    530530
    531                                         <?php edit_comment_link( __( '[Edit]', 'twentyeleven' ), ' ' ); ?>
     531                                        <?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
    532532                                </div><!-- .comment-author .vcard -->
    533533
    534534                                <?php if ( $comment->comment_approved == '0' ) : ?>
  • wp-content/themes/twentyeleven/rtl.css

     
    446446        float: left;
    447447}
    448448#respond input#submit {
    449         left: auto;
    450         right: 30px;
     449        left: 0px;
     450        right: auto;
    451451        padding: 5px 22px 5px 42px;
    452452}
    453453#respond #cancel-comment-reply-link {
  • wp-content/themes/twentyeleven/style.css

     
    822822.page-link span {
    823823        margin-right: 6px;
    824824}
    825 .entry-meta .edit-link a {
     825.entry-meta .edit-link a,
     826.commentlist .edit-link a {
    826827        background: #eee;
    827828        -moz-border-radius: 3px;
    828829        border-radius: 3px;
    829830        color: #666;
    830831        float: right;
    831832        font-size: 12px;
     833        line-height: 1.5em;
    832834        font-weight: 300;
    833835        text-decoration: none;
    834836        padding: 0px 8px;
    835837}
    836 .entry-meta .edit-link a:hover {
     838
     839.entry-meta .edit-link a:hover,
     840.commentlist .edit-link a:hover {
    837841        background: #888;
    838         color: #fff;
     842        color: #fff !important; /* for the Edit link on the Image post format */
    839843}
    840844.entry-content .edit-link {
    841845        clear: both;
    842846        display: block;
    843847}
     848.commentlist .edit-link a {
     849        float: none;
     850}
    844851
    845852/* Images */
    846853.entry-content img,
     
    12231230        margin-bottom: 0;
    12241231}
    12251232.indexed.format-image footer.entry-meta {
    1226         background: #e0e6e8;
     1233        background: #ddd;
    12271234        margin-top: -7px;
    12281235        padding: 20px 30px;
    12291236        overflow: hidden;
     
    20232030        border-radius: 3px;
    20242031        margin: 0 auto 1.625em;
    20252032        padding: 1.625em;
     2033        padding-bottom: 2.5em;
    20262034        position: relative;
    20272035        width: 68.9%;
    20282036}
     
    21032111        color: #eee;
    21042112        cursor: pointer;
    21052113        font-size: 15px;
    2106         left: 30px;
    2107         margin: 20px 0;
    21082114        padding: 5px 42px 5px 22px;
    2109         position: relative;
     2115        position: absolute;
     2116        right: 0px;
     2117        bottom: 0px;
    21102118        text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    21112119}
    21122120#respond input#submit:active {