Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( ! function_exists( 'ultra_posted_on' ) ) :
- /**
- * Prints HTML with meta information for the current post-date/time, author, comment count and categories.
- */
- function ultra_posted_on() {
- echo '<div class="entry-meta-inner">';
- if ( is_sticky() && is_home() && ! is_paged() ) {
- echo '<span class="featured-post">' . esc_html__( 'Sticky', 'ultra' ) . '</span>';
- }
- if ( ! in_category( '1' ) ) {
- 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 ( comments_open() && siteorigin_setting( 'blog_post_comment_count' ) ) {
- echo '<span class="comments-link">';
- comments_popup_link( esc_html__( 'Leave a comment', 'ultra' ), esc_html__( '1 Comment', 'ultra' ), esc_html__( '% Comments', 'ultra' ) );
- echo '</span>';
- }
- echo '</div>';
- if ( is_single() && siteorigin_setting( 'navigation_post_nav' ) ) {
- the_post_navigation( $args = array( 'prev_text' => '', 'next_text' => '', ) );
- }
- }
- endif;
Advertisement
RAW Paste Data
Copied
Advertisement