Make WordPress Core

Changeset 25969


Ignore:
Timestamp:
10/28/2013 05:48:46 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: display titles for aside, link, and quote format on small screens. Props iamtakashi, fixes #25694.

Location:
trunk/src/wp-content/themes/twentyfourteen
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/content-aside.php

    r25802 r25969  
    1818                </div><!-- .entry-meta -->
    1919                <?php endif; ?>
     20
     21                <?php
     22                        if ( is_single() ) :
     23                                the_title( '<h1 class="entry-title">', '</h1>' );
     24                        else :
     25                                the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
     26                        endif;
     27                ?>
    2028
    2129                <div class="entry-meta">
    … …  
    4755
    4856        <footer class="entry-meta">
    49                 <div class="entry-meta">
    50                         <?php
    51                                 if ( is_single() ) :
    52                                         the_title( '<h1 class="entry-title">', '</h1>' );
    53                                 else :
    54                                         the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
    55                                 endif;
    56                         ?>
    57                 </div>
    58 
    5957                <?php if ( has_tag() ) : ?>
    6058                <span class="tag-links"><?php echo get_the_tag_list(); ?></span>
  • trunk/src/wp-content/themes/twentyfourteen/content-link.php

    r25802 r25969  
    1818                </div><!-- .entry-meta -->
    1919                <?php endif; ?>
     20
     21                <?php
     22                        if ( is_single() ) :
     23                                the_title( '<h1 class="entry-title">', '</h1>' );
     24                        else :
     25                                the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
     26                        endif;
     27                ?>
    2028
    2129                <div class="entry-meta">
  • trunk/src/wp-content/themes/twentyfourteen/content-quote.php

    r25802 r25969  
    1818                </div><!-- .entry-meta -->
    1919                <?php endif; ?>
     20
     21                <?php
     22                        if ( is_single() ) :
     23                                the_title( '<h1 class="entry-title">', '</h1>' );
     24                        else :
     25                                the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
     26                        endif;
     27                ?>
    2028
    2129                <div class="entry-meta">
    … …  
    4755
    4856        <footer class="entry-meta">
    49                 <div class="entry-meta">
    50                         <?php
    51                                 if ( is_single() ) :
    52                                         the_title( '<h1 class="entry-title">', '</h1>' );
    53                                 else :
    54                                         the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
    55                                 endif;
    56                         ?>
    57                 </div>
    58 
    5957                <?php if ( has_tag() ) : ?>
    6058                <span class="tag-links"><?php echo get_the_tag_list(); ?></span>
  • trunk/src/wp-content/themes/twentyfourteen/content.php

    r25802 r25969  
    2121                <?php endif; ?>
    2222
    23                 <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>
     23                <?php
     24                        if ( is_single() ) :
     25                                the_title( '<h1 class="entry-title">', '</h1>' );
     26                        else :
     27                                the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
     28                        endif;
     29                ?>
    2430
    2531                <div class="entry-meta">
  • trunk/src/wp-content/themes/twentyfourteen/style.css

    r25865 r25969  
    10591059        font-size: 15px;
    10601060        font-weight: 900;
    1061         line-height: 18px;
     1061        line-height: 1.2;
    10621062        margin: 0 0 6px 0;
    10631063}
    … …  
    10781078        color: #55d737;
    10791079}
    1080 
    10811080
    10821081
    … …  
    15071506}
    15081507
    1509 .site-content .entry-meta .entry-title {
    1510         font-size: 12px;
    1511         font-weight: 400;
    1512         line-height: 1.3333333333;
    1513         margin-bottom: 8px;
    1514         text-transform: none;
    1515 }
    1516 
    1517 .entry-meta .entry-title a {
    1518         color: #767676;
    1519 }
    1520 
    1521 .entry-meta .entry-title a:hover {
    1522         color: #2b2b2b;
     1508.site-content .format-link .entry-title,
     1509.site-content .format-aside .entry-title,
     1510.site-content .format-quote .entry-title {
     1511        display: none;
    15231512}
    15241513
Note: See TracChangeset for help on using the changeset viewer.