mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@21674 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
56b3860a86
commit
b9c884ed97
@ -14,7 +14,9 @@
|
|||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
|
|
||||||
<footer class="entry-meta">
|
<footer class="entry-meta">
|
||||||
<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>
|
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
|
||||||
<h2><?php echo get_the_date(); ?></h2>
|
<h1><?php the_title(); ?></h1>
|
||||||
|
<h2><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>" pubdate><?php the_date(); ?></time></h2>
|
||||||
|
</a>
|
||||||
</footer><!-- .entry-meta -->
|
</footer><!-- .entry-meta -->
|
||||||
</article><!-- #post -->
|
</article><!-- #post -->
|
||||||
|
@ -975,6 +975,9 @@ article.format-image footer h2 {
|
|||||||
font-size: 0.785714286rem;
|
font-size: 0.785714286rem;
|
||||||
line-height: 2.181818182;
|
line-height: 2.181818182;
|
||||||
}
|
}
|
||||||
|
article.format-image footer a h2 {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
/* Link posts */
|
/* Link posts */
|
||||||
article.format-link header {
|
article.format-link header {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user