Make WordPress Core

Ticket #25859: 25859.diff

File 25859.diff, 16.3 KB (added by iamtakashi, 11 years ago)
  • wp-content/themes/twentyfourteen/content-aside.php

     
    1616                <div class="entry-meta">
    1717                        <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
    1818                </div><!-- .entry-meta -->
    19                 <?php endif; ?>
     19                <?php
     20                        endif;
    2021
    21                 <?php
    2222                        if ( is_single() ) :
    2323                                the_title( '<h1 class="entry-title">', '</h1>' );
    2424                        else :
     
    5353                ?>
    5454        </div><!-- .entry-content -->
    5555
     56        <?php if ( has_tag() ) : ?>
    5657        <footer class="entry-meta">
    57                 <?php if ( has_tag() ) : ?>
    58                 <span class="tag-links"><?php echo get_the_tag_list(); ?></span>
    59                 <?php endif; ?>
     58                <span class="tag-links">
     59                        <?php echo get_the_tag_list(); ?>
     60                </span>
    6061        </footer><!-- .entry-meta -->
     62        <?php endif; ?>
    6163</article><!-- #post-## -->
  • wp-content/themes/twentyfourteen/content-audio.php

     
    4343
    4444        <div class="entry-content">
    4545                <?php
    46                         the_content();
     46                        the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
    4747                        wp_link_pages( array(
    4848                                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    4949                                'after'       => '</div>',
  • wp-content/themes/twentyfourteen/content-gallery.php

     
    3333
    3434                        <?php twentyfourteen_posted_on(); ?>
    3535
    36                         <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
     36                        <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>
    3737                        <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
    3838                        <?php endif; ?>
    3939
     
    5555
    5656        <?php if ( has_tag() ) : ?>
    5757        <footer class="entry-meta">
    58                 <span class="tag-links"><?php echo get_the_tag_list(); ?></span>
     58                <span class="tag-links">
     59                        <?php echo get_the_tag_list(); ?>
     60                </span>
    5961        </footer><!-- .entry-meta -->
    6062        <?php endif; ?>
    6163</article><!-- #post-## -->
  • wp-content/themes/twentyfourteen/content-image.php

     
    4343
    4444        <div class="entry-content">
    4545                <?php
    46                         the_content();
     46                        the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
    4747                        wp_link_pages( array(
    4848                                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    4949                                'after'       => '</div>',
  • wp-content/themes/twentyfourteen/content-link.php

     
    1616                <div class="entry-meta">
    1717                        <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
    1818                </div><!-- .entry-meta -->
    19                 <?php endif; ?>
     19                <?php
     20                        endif;
    2021
    21                 <?php
    2222                        if ( is_single() ) :
    2323                                the_title( '<h1 class="entry-title">', '</h1>' );
    2424                        else :
     
    4343
    4444        <div class="entry-content">
    4545                <?php
    46                         the_content();
     46                        the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
    4747                        wp_link_pages( array(
    4848                                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    4949                                'after'       => '</div>',
  • wp-content/themes/twentyfourteen/content-quote.php

     
    1616                <div class="entry-meta">
    1717                        <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
    1818                </div><!-- .entry-meta -->
    19                 <?php endif; ?>
     19                <?php
     20                        endif;
    2021
    21                 <?php
    2222                        if ( is_single() ) :
    2323                                the_title( '<h1 class="entry-title">', '</h1>' );
    2424                        else :
     
    5353                ?>
    5454        </div><!-- .entry-content -->
    5555
     56        <?php if ( has_tag() ) : ?>
    5657        <footer class="entry-meta">
    57                 <?php if ( has_tag() ) : ?>
    58                 <span class="tag-links"><?php echo get_the_tag_list(); ?></span>
    59                 <?php endif; ?>
     58                <span class="tag-links">
     59                        <?php echo get_the_tag_list(); ?>
     60                </span>
    6061        </footer><!-- .entry-meta -->
     62        <?php endif; ?>
    6163</article><!-- #post-## -->
  • wp-content/themes/twentyfourteen/content-video.php

     
    4343
    4444        <div class="entry-content">
    4545                <?php
    46                         the_content();
     46                        the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
    4747                        wp_link_pages( array(
    4848                                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    4949                                'after'       => '</div>',
  • wp-content/themes/twentyfourteen/content.php

     
    1818                <div class="entry-meta">
    1919                        <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
    2020                </div>
    21                 <?php endif; ?>
     21                <?php
     22                        endif;
    2223
    23                 <?php
    2424                        if ( is_single() ) :
    2525                                the_title( '<h1 class="entry-title">', '</h1>' );
    2626                        else :
  • wp-content/themes/twentyfourteen/inc/template-tags.php

     
    165165 * @return void
    166166*/
    167167function twentyfourteen_post_thumbnail() {
    168         if ( post_password_required() )
     168        if ( post_password_required() || ! has_post_thumbnail() )
    169169                return;
    170170
    171171        if ( is_singular() ) :
    172172        ?>
    173173
    174174        <div class="post-thumbnail">
    175                 <?php
    176                         if ( is_active_sidebar( 'sidebar-2' ) || wp_is_mobile() )
    177                                 the_post_thumbnail( 'post-thumbnail' );
    178                         else
    179                                 the_post_thumbnail( 'post-thumbnail-full-width' );
    180                 ?>
     175        <?php
     176                if ( is_active_sidebar( 'sidebar-2' ) || wp_is_mobile() )
     177                        the_post_thumbnail( 'post-thumbnail' );
     178                else
     179                        the_post_thumbnail( 'post-thumbnail-full-width' );
     180        ?>
    181181        </div>
    182182
    183183        <?php else : ?>
    184184
    185185        <a class="post-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
    186         <?php if ( has_post_thumbnail() && ( is_active_sidebar( 'sidebar-2' ) || wp_is_mobile() ) ) :
    187                 the_post_thumbnail( 'post-thumbnail' );
    188         elseif ( has_post_thumbnail() ) :
    189                 the_post_thumbnail( 'post-thumbnail-full-width' );
    190         else : ?>
    191                 <p class="screen-reader-text"><?php _e( 'No featured image.', 'twentyfourteen' ); ?></p>
    192         <?php endif; ?>
     186        <?php
     187                if ( is_active_sidebar( 'sidebar-2' ) || wp_is_mobile() )
     188                        the_post_thumbnail( 'post-thumbnail' );
     189                else
     190                        the_post_thumbnail( 'post-thumbnail-full-width' );
     191        ?>
    193192        </a>
    194193
    195194        <?php endif; // End is_singular()
  • wp-content/themes/twentyfourteen/style.css

     
    998998}
    999999
    10001000.hentry {
    1001         margin-bottom: 36px;
     1001        margin-bottom: 48px;
    10021002        max-width: 672px;
    10031003}
    10041004
     
    10111011        max-width: 474px;
    10121012}
    10131013
     1014.page-content {
     1015        margin-bottom: 48px;
     1016}
    10141017
     1018.hentry > :last-child {
     1019        margin-bottom: 0
     1020}
     1021
     1022
    10151023/**
    10161024 * 6.1 Post Thumbnail
    10171025 * -----------------------------------------------------------------------------
    10181026 */
    10191027
    1020  .post-thumbnail {
    1021         background: #767676 url(images/pattern-light.svg) repeat fixed;
    1022         display: none;
    1023         height: auto;
    1024         margin: 0;
    1025         min-height: 192px;
     1028.post-thumbnail {
     1029        background: #b2b2b2 url(images/pattern-light.svg) repeat fixed;
     1030        display: block;
    10261031        position: relative;
    10271032        width: 100%;
    10281033        z-index: 0;
    10291034}
    10301035
    10311036a.post-thumbnail:hover {
    1032         background-color: #919191;
     1037        background-color: #999;
    10331038}
    10341039
    1035 .post-thumbnail img {
     1040.full-width .post-thumbnail img {
    10361041        display: block;
    10371042        margin: 0 auto;
    10381043}
    10391044
    1040 .has-post-thumbnail .post-thumbnail,
    1041 .format-standard .post-thumbnail {
    1042         display: block;
    1043 }
    10441045
    1045 
    10461046/**
    10471047 * 6.2 Entry Header
    10481048 * -----------------------------------------------------------------------------
     
    10751075        padding: 0 10px 12px;
    10761076}
    10771077
    1078 .site-content .has-post-thumbnail .entry-header,
    1079 .site-content .format-standard .entry-header {
     1078.site-content .has-post-thumbnail .entry-header {
    10801079        padding-top: 24px;
    10811080}
    10821081
    1083 .site-content .format-standard.post-password-required .entry-header {
    1084         padding-top: 0;
    1085 }
    10861082
    1087 
    10881083/**
    10891084 * 6.3 Entry Meta
    10901085 * -----------------------------------------------------------------------------
     
    11441139}
    11451140
    11461141.site-content footer.entry-meta:empty {
    1147         margin-top: 0;
    1148         margin-bottom: 0;
     1142        margin: 0;
    11491143}
    11501144
    11511145
     
    11591153        font-size: 11px;
    11601154        font-weight: 700;
    11611155        line-height: 1.2727272727;
    1162         margin: 0 4px 4px 10px;
     1156        margin: 2px 4px 2px 10px;
    11631157        padding: 3px 7px;
    11641158        position: relative;
    11651159        text-transform: uppercase;
     
    13201314        font-size: 12px;
    13211315        font-weight: 900;
    13221316        line-height: 2;
    1323         margin-bottom: 24px;
     1317        margin: 24px 0;
    13241318        text-transform: uppercase;
    13251319}
    13261320
     
    15781572
    15791573.paging-navigation {
    15801574        border-top: 5px solid #000;
    1581         margin: 36px 0;
     1575        margin: 48px 0;
    15821576}
    15831577
    15841578.paging-navigation .loop-pagination {
     
    16401634
    16411635.archive-header,
    16421636.page-header {
    1643         margin: 0 auto 12px;
     1637        margin: 24px auto;
    16441638        max-width: 474px;
    16451639}
    16461640
     
    16561650        color: #767676;
    16571651        font-size: 14px;
    16581652        line-height: 1.2857142857;
     1653}
     1654
     1655.taxonomy-description p {
    16591656        margin-bottom: 18px;
    16601657}
    16611658
     1659.taxonomy-description p:last-child {
     1660        margin-bottom: 0;
     1661}
    16621662
     1663
    16631664/**
    16641665 * 6.10 Contributor Page
    16651666 * -----------------------------------------------------------------------------
     
    17451746 * -----------------------------------------------------------------------------
    17461747 */
    17471748
    1748 .singular .hentry.format-standard,
    17491749.singular .hentry.has-post-thumbnail {
    17501750        margin-top: -24px;
    17511751}
    17521752
    1753 .singular .hentry.format-standard.post-password-required {
    1754         margin-top: 0
    1755 }
    17561753
    1757 
    17581754/**
    17591755 * 6.14 Comments
    17601756 * -----------------------------------------------------------------------------
     
    26972693
    26982694.featured-content .post-thumbnail {
    26992695        display: block;
    2700         min-height: 0;
    27012696        position: relative;
    27022697        padding-top: 55.357142857%;
    27032698}
     
    28682863@media screen and (max-width: 400px) {
    28692864        .list-view .site-content .post-thumbnail {
    28702865                background: none;
    2871                 min-height: 0;
    28722866                width: auto;
    28732867                z-index: 2;
    28742868        }
     
    29272921        .archive-header,
    29282922        .page-header {
    29292923                border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    2930                 padding-top: 12px;
     2924                margin: 24px auto 0;
     2925                padding-bottom: 24px;
    29312926        }
    29322927
    29332928        .error404 .page-header {
    29342929                border-bottom: 0;
     2930                margin: 0 auto 24px;
    29352931                padding: 0 10px;
    29362932        }
    29372933}
     
    30463042                margin: -1px 2px 0 0;
    30473043        }
    30483044
    3049         .list-view .site-content .has-post-thumbnail .post-thumbnail,
    3050         .list-view .site-content .format-standard .post-thumbnail {
    3051                 margin-top: -49px;
    3052         }
    3053 
    30543045        .list-view .site-content .hentry {
    30553046                border-top: 1px solid rgba(0, 0, 0, 0.1);
    3056                 padding-top: 48px;
     3047                padding-top: 60px;
    30573048        }
    30583049
     3050        .list-view .site-content .hentry:first-child,
     3051        .list-view .site-content .hentry:first-of-type,
     3052        .list-view .site-content .hentry.has-post-thumbnail {
     3053                border-top: 0;
     3054                padding-top: 0;
     3055        }
     3056
    30593057        .archive-header,
    30603058        .page-header {
    3061                 margin-bottom: 24px;
     3059                margin: 0 auto 60px;
    30623060                padding: 0 10px;
    30633061        }
     3062
     3063        .error404 .page-header {
     3064                margin-bottom: 24px;
     3065        }
     3066
     3067        .featured-content {
     3068                margin-bottom: 48px;
     3069        }
    30643070}
    30653071
    30663072@media screen and (min-width: 594px) {
     
    30693075                padding-left: 30px;
    30703076        }
    30713077
    3072         .site-content .has-post-thumbnail .entry-header,
    3073         .site-content .format-standard .entry-header {
     3078        .site-content .has-post-thumbnail .entry-header {
    30743079                margin-top: -48px;
    30753080        }
    3076 
    3077         .site-content .format-standard.post-password-required .entry-header {
    3078                 margin-top: 0;
    3079         }
    30803081}
    30813082
    30823083@media screen and (min-width: 673px) {
     
    30943095
    30953096        .content-area {
    30963097                float: left;
    3097                 padding-top: 36px;
     3098                padding-top: 48px;
    30983099                width: 100%;
    30993100        }
    31003101
     
    31023103                margin-right: 33.33333333%;
    31033104        }
    31043105
    3105         .site-content .has-post-thumbnail .entry-header,
    3106         .site-content .format-standard .entry-header {
     3106        .site-content .has-post-thumbnail .entry-header {
    31073107                margin-top: 0;
    31083108        }
    31093109
     
    31203120                padding-left: 30px;
    31213121        }
    31223122
    3123         .singular .hentry.format-standard,
    3124         .singular .hentry.has-post-thumbnail,
    3125         .singular .hentry.format-standard.post-password-required {
     3123        .singular .hentry.has-post-thumbnail {
    31263124                margin-top: 0
    31273125        }
    31283126
     
    31303128                margin-right: 0;
    31313129        }
    31323130
    3133         .full-width .site-content .has-post-thumbnail .entry-header,
    3134         .full-width .site-content .format-standard .entry-header {
     3131        .full-width .site-content .has-post-thumbnail .entry-header {
    31353132                margin-top: -48px;
    31363133        }
    31373134
    3138         .full-width .site-content .format-standard.post-password-required .entry-header {
    3139                 margin-top: 0
    3140         }
    3141 
    3142         .full-width.singular .hentry.format-standard,
    31433135        .full-width.singular .hentry.has-post-thumbnail {
    3144                 margin-top: -36px;
     3136                margin-top: -48px;
    31453137        }
    31463138
    3147         .full-width.singular .hentry.format-standard.post-password-required {
    3148                 margin-top: 0
    3149         }
    3150 
    31513139        #secondary,
    31523140        #supplementary {
    31533141                padding: 0 30px;
     
    31573145                border: 0;
    31583146                float: right;
    31593147                margin-left: -33.33333333%;
    3160                 padding: 36px 30px 24px;
     3148                padding: 48px 30px 24px;
    31613149                width: 33.33333333%;
    31623150        }
    31633151
     3152        .featured-content {
     3153                margin-bottom: 24px;
     3154        }
     3155
    31643156        .grid .featured-content .hentry {
    31653157                float: left;
    31663158                width: 50%;
     
    34063398                padding-top: 72px;
    34073399        }
    34083400
    3409         .site-content .has-post-thumbnail .entry-header,
    3410         .site-content .format-standard .entry-header {
     3401        .site-content .has-post-thumbnail .entry-header {
    34113402                margin-top: -48px;
    34123403        }
    34133404
    3414         .site-content .format-standard.post-password-required .entry-header {
    3415                 margin-top: 0;
    3416         }
    3417 
    34183405        .comment-list .trackback,
    34193406        .comment-list .pingback,
    34203407        .comment-list article {
     
    34393426                margin-left: 35px;
    34403427        }
    34413428
    3442         .full-width.singular .hentry.format-standard,
    34433429        .full-width.singular .hentry.has-post-thumbnail {
    34443430                margin-top: -72px;
    34453431        }
    34463432
    3447         .full-width.singular .hentry.format-standard.post-password-required {
    3448                 margin-top: 0
    3449         }
    3450 
    34513433        .featured-content {
    3452                 margin-bottom: -24px;
     3434                margin-bottom: 0
    34533435        }
    34543436}
    34553437
     
    34713453                margin-top: 0;
    34723454        }
    34733455
    3474         .site-content .has-post-thumbnail .entry-header,
    3475         .site-content .format-standard .entry-header {
     3456        .site-content .has-post-thumbnail .entry-header {
    34763457                margin-top: 0;
    34773458        }
    34783459
     
    37273708}
    37283709
    37293710@media screen and (min-width: 1040px) {
    3730         .site-content .has-post-thumbnail .entry-header,
    3731         .site-content .format-standard .entry-header {
     3711        .site-content .has-post-thumbnail .entry-header {
    37323712                margin-top: -48px;
    37333713        }
    37343714
    3735         .site-content .format-standard.post-password-required .entry-header {
    3736                 margin-top: 0;
    3737         }
    3738 
    37393715        .archive-header,
    37403716        .comments-area,
    37413717        .image-navigation,
     
    39883964                padding-bottom: 24px;
    39893965        }
    39903966
    3991         .post-thumbnail {
    3992                 min-height: 0;
    3993         }
    3994 
    39953967        .post-thumbnail img {
    39963968                margin: 0 10px 24px;
    39973969        }
    39983970
    3999         .site-content .has-post-thumbnail .entry-header,
    4000         .site-content .format-standard .entry-header {
     3971        .site-content .has-post-thumbnail .entry-header {
    40013972                padding-top: 0;
    40023973        }
    40033974
     
    40093980                color: #fff;
    40103981        }
    40113982
    4012         .singular .hentry.format-standard,
    40133983        .singular .hentry.has-post-thumbnail {
    40143984                margin-top: 0;
    40153985        }