/** * Prints HTML with meta information for the date. */ function boardwalk_entry_meta() { $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())); if (is_single()) { $posted_on = $time_string; } else { if (is_sticky() && !is_paged()) { $posted_on = '<a href="' . esc_url(boardwalk_get_link_url()) . '" rel="bookmark">' . __('Featured', 'boardwalk') . '</a>'; } else { $posted_on = '<a href="' . esc_url(boardwalk_get_link_url()) . '" rel="bookmark">' . $time_string . '</a>'; } } echo '<span class="posted-on">' . $posted_on . '</span>'; }
</div><!-- .entry-thumbnail --> <?php } ?> <header class="entry-header"> <?php if ('post' == get_post_type()) { ?> <div class="entry-meta"> <?php boardwalk_entry_meta(); ?> </div><!-- .entry-meta --> <?php } ?> <?php the_title(sprintf('<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url(boardwalk_get_link_url())), '</a></h1>'); ?> </header><!-- .entry-header --> <a href="<?php echo esc_url(boardwalk_get_link_url()); ?> " class="entry-link"><span class="screen-reader-text"><?php _e('Continue reading <span class="meta-nav">→</span>', 'boardwalk'); ?> </span></a> </article><!-- #post-## -->