public/wordpress/wp-content/themes/puro/inc/template-tags.php
/**
 * Prints HTML with meta information for the current post-date/time, author, comment count and categories.
 */
Prints HTML with meta information for the current post-date/time, author, comment count and categories.
Prints HTML with meta information for the current post - date / time author comment count and categories .
function puro_posted_on() {
	if ( is_sticky() && is_home() && ! is_paged() ) {
		echo '<span class="featured-post">' . __( 'Sticky', 'puro' ) . '</span>';
	}
	if ( is_home() && siteorigin_setting( 'blog_post_date' ) || is_archive() && siteorigin_setting( 'blog_post_date' ) || is_search() && siteorigin_setting( 'blog_post_date' ) ) {
		echo '<span class="entry-date"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark"><time class="published" datetime="' . esc_attr( get_the_date( 'c' ) ) . '">' . esc_html( get_the_date( 'j F Y' ) ) . '</time><time class="updated" datetime="' . esc_attr( get_the_modified_date( 'c' ) ) . '">' . esc_html( get_the_modified_date() ) . '</time></span></a>';
	}
	if ( is_single() && siteorigin_setting( 'blog_post_date' ) ) {
		echo '<span class="entry-date"><time class="published" datetime="' . esc_attr( get_the_date( 'c' ) ) . '">' . esc_html( get_the_date( 'j F Y' ) ) . '</time><time class="updated" datetime="' . esc_attr( get_the_modified_date( 'c' ) ) . '">' . esc_html( get_the_modified_date() ) . '</time></span>';
	}
	if ( siteorigin_setting( 'blog_post_author' ) ) {
		echo '<span class="byline"><span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" rel="author">' . esc_html( get_the_author() ) . '</a></span></span>';
	}
	if ( has_category() && siteorigin_setting( 'blog_post_cats' ) ) {
		echo '<span class="cat-links">' . get_the_category_list( __( ', ', 'puro' ) ) . '</span>';
	}
	if ( has_tag() && siteorigin_setting( 'blog_post_tags' ) ) {
		echo '<span class="tags-links">' . get_the_tag_list( '', __( ', ', 'puro' ) ) . '</span>';
	}
	if ( comments_open() && siteorigin_setting( 'blog_post_comment_count' ) ) { 
		echo '<span class="comments-link">';
  		comments_popup_link( __( 'Leave a comment', 'puro' ), __( '1 Comment', 'puro' ), __( '% Comments', 'puro' ) );
  		echo '</span>';
	}
}
function puro_posted_on ( ) { if ( is_sticky ( ) && is_home ( ) && ! is_paged ( ) ) { echo '<span class="featured-post">' . __ ( 'Sticky' , 'puro' ) . '</span>' ; } if ( is_home ( ) && siteorigin_setting ( 'blog_post_date' ) || is_archive ( ) && siteorigin_setting ( 'blog_post_date' ) || is_search ( ) && siteorigin_setting ( 'blog_post_date' ) ) { echo '<span class="entry-date"><a href="' . esc_url ( get_permalink ( ) ) . '" rel="bookmark"><time class="published" datetime="' . esc_attr ( get_the_date ( 'c' ) ) . '">' . esc_html ( get_the_date ( 'j F Y' ) ) . '</time><time class="updated" datetime="' . esc_attr ( get_the_modified_date ( 'c' ) ) . '">' . esc_html ( get_the_modified_date ( ) ) . '</time></span></a>' ; } if ( is_single ( ) && siteorigin_setting ( 'blog_post_date' ) ) { echo '<span class="entry-date"><time class="published" datetime="' . esc_attr ( get_the_date ( 'c' ) ) . '">' . esc_html ( get_the_date ( 'j F Y' ) ) . '</time><time class="updated" datetime="' . esc_attr ( get_the_modified_date ( 'c' ) ) . '">' . esc_html ( get_the_modified_date ( ) ) . '</time></span>' ; } if ( siteorigin_setting ( 'blog_post_author' ) ) { echo '<span class="byline"><span class="author vcard"><a class="url fn n" href="' . esc_url ( get_author_posts_url ( get_the_author_meta ( 'ID' ) ) ) . '" rel="author">' . esc_html ( get_the_author ( ) ) . '</a></span></span>' ; } if ( has_category ( ) && siteorigin_setting ( 'blog_post_cats' ) ) { echo '<span class="cat-links">' . get_the_category_list ( __ ( ', ' , 'puro' ) ) . '</span>' ; } if ( has_tag ( ) && siteorigin_setting ( 'blog_post_tags' ) ) { echo '<span class="tags-links">' . get_the_tag_list ( '' , __ ( ', ' , 'puro' ) ) . '</span>' ; } if ( comments_open ( ) && siteorigin_setting ( 'blog_post_comment_count' ) ) { echo '<span class="comments-link">' ; comments_popup_link ( __ ( 'Leave a comment' , 'puro' ) , __ ( '1 Comment' , 'puro' ) , __ ( '% Comments' , 'puro' ) ) ; echo '</span>' ; } }
Prints HTML with meta information for the current post-date/time, author, comment count and categories.
Prints HTML with meta information for the current post - date / time author comment count and categories .