now outputting the post meta information from a function (similar to twentyeleven)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php // https://github.com/retlehs/roots/wiki
|
||||
|
||||
require_once get_template_directory() . '/inc/roots-activation.php'; // activation
|
||||
require_once get_template_directory() . '/inc/roots-options.php'; // theme options
|
||||
@@ -76,4 +76,10 @@ foreach ($sidebars as $sidebar) {
|
||||
));
|
||||
}
|
||||
|
||||
// return post entry meta information
|
||||
function roots_entry_meta() {
|
||||
echo '<time class="updated" datetime="'. get_the_time('c') .'" pubdate>'. sprintf(__('Posted on %s at %s.', 'roots'), get_the_time('l, F jS, Y'), get_the_time()) .'</time>';
|
||||
echo '<p class="byline author vcard">'. __('Written by', 'roots') .' <a href="'. get_author_posts_url(get_the_author_meta('id')) .'" rel="author" class="fn">'. get_the_author() .'</a></p>';
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user