You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
455 B
21 lines
455 B
<?php |
|
/** |
|
* Legacy template for the AMP post date. |
|
* |
|
* @package AMP |
|
*/ |
|
|
|
?> |
|
<li class="amp-wp-posted-on"> |
|
<time datetime="<?php echo esc_attr( date( 'c', $this->get( 'post_publish_timestamp' ) ) ); ?>"> |
|
<?php |
|
echo esc_html( |
|
sprintf( |
|
/* translators: %s: the human-readable time difference. */ |
|
__( '%s ago', 'amp' ), |
|
human_time_diff( $this->get( 'post_publish_timestamp' ), current_time( 'timestamp' ) ) |
|
) |
|
); |
|
?> |
|
</time> |
|
</li>
|
|
|