skt_black_posted_on
Prints HTML with meta information for the current post-date/time and author.
Description
skt_black_posted_on();
Usage
if ( !function_exists( 'skt_black_posted_on' ) ) { require_once '/inc/template-tags.php'; } // NOTICE! Understand what this does before running. $result = skt_black_posted_on();
Defined (1)
The function is defined in the following location(s).
- /inc/template-tags.php
- function skt_black_posted_on() {
- $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time>';
- if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) )
- $time_string .= '<time class="updated" datetime="%3$s">%4$s</time>';
- $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( __( '<span class="posted-on">Published %1$s</span><span class="byline"> by %2$s</span>', 'skt-black' ),
- sprintf( '<a href="%1$s" rel="bookmark">%2$s</a>',
- esc_url( get_permalink() ),
- $time_string
- ),
- sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s">%2$s</a></span>',
- esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
- esc_html( get_the_author() )
- )
- );
- }