From b61a3b0285add8daa740ac2b803c746987e79c12 Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Wed, 19 Sep 2012 13:58:57 -0400 Subject: [PATCH] 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 --- lib/template-tags.php | 7 ------- templates/content-single.php | 4 ++-- templates/content.php | 2 +- templates/entry-meta.php | 2 ++ 4 files changed, 5 insertions(+), 10 deletions(-) delete mode 100644 lib/template-tags.php create mode 100644 templates/entry-meta.php diff --git a/lib/template-tags.php b/lib/template-tags.php deleted file mode 100644 index 1de1a7a..0000000 --- a/lib/template-tags.php +++ /dev/null @@ -1,7 +0,0 @@ -'. sprintf(__('Posted on %s at %s.', 'roots'), get_the_date(), get_the_time()) .''; - echo '

'. __('Written by', 'roots') .'

'; -} diff --git a/templates/content-single.php b/templates/content-single.php index 52e6b17..eb8c310 100644 --- a/templates/content-single.php +++ b/templates/content-single.php @@ -2,7 +2,7 @@
id="post-">

- +
@@ -13,4 +13,4 @@
- \ No newline at end of file + diff --git a/templates/content.php b/templates/content.php index 00252cd..52c6ca9 100644 --- a/templates/content.php +++ b/templates/content.php @@ -10,7 +10,7 @@
>

- +
diff --git a/templates/entry-meta.php b/templates/entry-meta.php new file mode 100644 index 0000000..5fc338d --- /dev/null +++ b/templates/entry-meta.php @@ -0,0 +1,2 @@ + +