* @copyright Copyright (c) 2020, AeonWP
* @link https://aeonwp.com/aeonaccess
* @license http://www.gnu.org/licenses/gpl-2.0.html
*
* Custom template tags for this theme
*/
/**
* Prints HTML with meta information for the current post-date/time.
*/
function aeonaccess_posted_on() {
$time_string = '';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '';
}
$time_string = sprintf(
$time_string,
esc_attr( get_the_date( DATE_W3C ) ),
esc_html( get_the_date() ),
esc_attr( get_the_modified_date( DATE_W3C ) ),
esc_html( get_the_modified_date() )
);
$posted_on = ' ' . $time_string . '';
echo '' . $posted_on . ''; // WPCS: XSS OK.
}
/**
* Prints HTML with meta information for the current author.
*/
function aeonaccess_posted_by() {
$byline = '' . esc_html( get_the_author() ) . '';
echo ' ' . $byline . ''; // WPCS: XSS OK.
}