Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function puffin_entry_footer() {
if ( ! is_single() ) {
global $post;
if ( strpos( $post->post_content, '<!--more-->' ) ) {
echo '<a class="read-more" href="' . esc_url( get_the_permalink() ) . '">' . esc_html( apply_filters( 'puffin_readmore_button_text', esc_html__( 'Read More', 'puffin' ) ) ) . '</a>';
}
}
$time_string = '<time datetime="%1$s">%2$s</time>';
$time_string = sprintf( $time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
echo '<span class="entry-date">';
echo '<a href="' . esc_url( get_the_permalink() ) . '">' . $time_string . '</a>';
if ( is_front_page() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
comments_popup_link( '<i class="fa fa-comment-o"></i> 0', '<i class="fa fa-comment-o"></i> 1', '<i class="fa fa-comment-o"></i> %', 'entry-comment' );
}
echo '</span>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.