Move roots_entry_meta into its own template

No need for this HTML to be in a function. Now instead of calling the
function, just use get_template_part
This commit is contained in:
Scott Walkinshaw
2012-09-19 13:58:57 -04:00
parent 267e24e9a3
commit b61a3b0285
4 changed files with 5 additions and 10 deletions

2
templates/entry-meta.php Normal file
View File

@@ -0,0 +1,2 @@
<time class="updated" datetime="<?php echo get_the_time('c'); ?>" pubdate><?php echo sprintf(__('Posted on %s at %s.', 'roots'), get_the_date(), get_the_time()); ?></time>
<p class="byline author vcard"><?php echo __('Written by', 'roots'); ?> <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" rel="author" class="fn"><?php echo get_the_author(); ?></a></p>