WordPress.org

Make WordPress Core

Changeset 21674


Ignore:
Timestamp:
08/30/12 19:27:27 (20 months ago)
Author:
lancewillett
Message:

Twenty Twelve: add a better permalink markup structure to content-image.php template, for usability when image posts have no title. Props obenland, fixes #21723.

Location:
trunk/wp-content/themes/twentytwelve
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/content-image.php

    r21670 r21674  
    1515 
    1616        <footer class="entry-meta"> 
    17             <h1><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> 
    18             <h2><?php echo get_the_date(); ?></h2> 
     17            <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"> 
     18                <h1><?php the_title(); ?></h1> 
     19                <h2><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>" pubdate><?php the_date(); ?></time></h2> 
     20            </a> 
    1921        </footer><!-- .entry-meta --> 
    2022    </article><!-- #post --> 
  • trunk/wp-content/themes/twentytwelve/style.css

    r21668 r21674  
    976976    line-height: 2.181818182; 
    977977} 
     978article.format-image footer a h2 { 
     979    font-weight: normal; 
     980} 
    978981 
    979982/* Link posts */ 
Note: See TracChangeset for help on using the changeset viewer.