public_html/wp-content/themes/LocalTwo/inc/template-tags.php
/**
	 * Prints HTML with meta information for the current post-date/time and author.
	 */
Prints HTML with meta information for the current post-date/time and author.
Prints HTML with meta information for the current post - date / time and author .
function divertheme_posted_on() {
		if ( is_sticky() && is_home() && ! is_paged() ) {
			echo '<span class="featured-post"><i class="fa fa-thumb-tack"></i>' . __( 'Sticky', 'divertheme' ) . '</span>';
		}
		$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
		if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
			$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><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() )
		);
		$posted_on = sprintf(
			_x( '<i class="fa fa-clock-o"></i> %s', 'post date', 'divertheme' ),
			'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
		);
		$categories_list = get_the_category_list( __( ', ', 'divertheme' ) );
		if ( $categories_list ) {
			echo '<span class="categories-links"><i class="fa fa-folder"></i>' . $categories_list . '</span>';
		}
		$tag_list = get_the_tag_list( '', __( ', ', 'divertheme' ) );
		if ( $tag_list ) {
			echo '<span class="tags-links"><i class="fa fa-tags"></i>' . $tag_list . '</span>';
		}
		$byline = sprintf(
			_x( '<i class="fa fa-user"></i> %s', 'post author', 'divertheme' ),
			'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
		);
		echo '<span class="posted-on">' . $posted_on . '</span><span class="byline"> ' . $byline . '</span>';
	}
function divertheme_posted_on ( ) { if ( is_sticky ( ) && is_home ( ) && ! is_paged ( ) ) { echo '<span class="featured-post"><i class="fa fa-thumb-tack"></i>' . __ ( 'Sticky' , 'divertheme' ) . '</span>' ; } $ time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>' ; if ( get_the_time ( 'U' ) !== get_the_modified_time ( 'U' ) ) { $ time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><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 ( ) ) ) ; $ posted_on = sprintf ( _x ( '<i class="fa fa-clock-o"></i> %s' , 'post date' , 'divertheme' ) , '<a href="' . esc_url ( get_permalink ( ) ) . '" rel="bookmark">' . $ time_string . '</a>' ) ; $ categories_list = get_the_category_list ( __ ( ', ' , 'divertheme' ) ) ; if ( $ categories_list ) { echo '<span class="categories-links"><i class="fa fa-folder"></i>' . $ categories_list . '</span>' ; } $ tag_list = get_the_tag_list ( '' , __ ( ', ' , 'divertheme' ) ) ; if ( $ tag_list ) { echo '<span class="tags-links"><i class="fa fa-tags"></i>' . $ tag_list . '</span>' ; } $ byline = sprintf ( _x ( '<i class="fa fa-user"></i> %s' , 'post author' , 'divertheme' ) , '<span class="author vcard"><a class="url fn n" href="' . esc_url ( get_author_posts_url ( get_the_author_meta ( 'ID' ) ) ) . '">' . esc_html ( get_the_author ( ) ) . '</a></span>' ) ; echo '<span class="posted-on">' . $ posted_on . '</span><span class="byline"> ' . $ byline . '</span>' ; }
Prints HTML with meta information for the current post-date/time and author.
Prints HTML with meta information for the current post - date / time and author .
// Translators: used between list items, there is a space after the comma.