From 39d8f7ad617bc890c0dddeb7bddcbb439a5ab24e Mon Sep 17 00:00:00 2001 From: obenland Date: Thu, 27 Jun 2013 06:54:02 -0700 Subject: [PATCH] _s: Include "entry updated" as part of the hAtom. Props @michiecat. See #131, fixes #170. --- inc/template-tags.php | 16 +++++++++++++--- style.css | 3 ++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index fec7533..8b06a31 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -163,11 +163,21 @@ if ( ! function_exists( '_s_posted_on' ) ) : * Prints HTML with meta information for the current post-date/time and author. */ function _s_posted_on() { - printf( __( 'Posted on by ', '_s' ), - esc_url( get_permalink() ), - esc_attr( get_the_time() ), + $time_string = ''; + if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) + $time_string .= ''; + + $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), + esc_attr( get_the_modified_date( 'c' ) ), + esc_html( get_the_modified_date() ) + ); + + printf( __( 'Posted on %3$s by ', '_s' ), + esc_url( get_permalink() ), + esc_attr( get_the_time() ), + $time_string, esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', '_s' ), get_the_author() ) ), get_the_author() diff --git a/style.css b/style.css index 3236272..682841a 100644 --- a/style.css +++ b/style.css @@ -461,7 +461,8 @@ a:active { .hentry { margin: 0 0 1.5em; } -.byline { +.byline, +.updated { display: none; } .single .byline,