Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( ! function_exists( 'heatmapthemead_posted_on' ) ) :
- // Prints HTML with meta information for the current post-date/time and author.
- function heatmapthemead_posted_on() {
- $options = heatmapthemead_get_theme_options();
- print '<div class="heatmapthemead-header-entry-meta entry-meta">';
- if (( $options['meta_date'] == 'on' ) || ( $options['meta_author'] == 'on' )) {
- print '<span class="heatmapthemead-post-details">';
- _e ('Posted','heatmapthemead');
- }
- if ( $options['meta_date'] == 'on' ) {
- print ' ';
- _e ('on','heatmapthemead');
- print ' ';
- print '<a href="'. esc_url( get_permalink() ) . '" title="' . esc_attr( get_the_time() ) . '" rel="bookmark">';
- print '<time class="entry-date updated" datetime="' . esc_attr( get_the_date( 'c' ) ) . '">' . esc_html( get_the_date() ) . '</time>';
- print '</a>';
- }
- if ( $options['meta_author'] == 'on' ) {
- print '<span class="byline">';
- print ' ';
- _e ('by','heatmapthemead');
- print ' ';
- print '<span class="author vcard">';
- print '<a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( sprintf( __( 'View all posts by %s', 'heatmapthemead' ), get_the_author() ) ) . '" rel="author">' . esc_html( get_the_author() ) . '</a>';
- print '</span>';
- print '</span>';
- }
- if (( $options['meta_date'] == 'on' ) || ( $options['meta_author'] == 'on' )) print '</span>';
- if ( $options['meta_comments'] == 'on' ) {
- if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) : ?>
- <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'heatmapthemead' ), __( '1 Comment', 'heatmapthemead' ), __( '% Comments', 'heatmapthemead' ) ); ?></span>
- <?php
- endif;
- }
- ?>
- </div><!-- .heatmapthemead-entry-meta -->
- <?php
- }
- endif;
Add Comment
Please, Sign In to add comment