From 1596a6a50bbeb8d6f54c3ca5f6e48c27117ab8ad Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Mon, 30 Jun 2014 08:17:33 -0700 Subject: [PATCH] Revert "_s: Simplify entry meta output" --- content-page.php | 3 +-- content-search.php | 30 ++++++++++++++++++++++++++++-- content-single.php | 35 ++++++++++++++++++++++++++++++++++- content.php | 30 ++++++++++++++++++++++++++++-- inc/template-tags.php | 30 ------------------------------ 5 files changed, 91 insertions(+), 37 deletions(-) diff --git a/content-page.php b/content-page.php index fde16f7e..119896b8 100644 --- a/content-page.php +++ b/content-page.php @@ -20,8 +20,7 @@ ) ); ?> - diff --git a/content-search.php b/content-search.php index f1426040..c565c04f 100644 --- a/content-search.php +++ b/content-search.php @@ -24,6 +24,32 @@ - + \ No newline at end of file diff --git a/content-single.php b/content-single.php index 20c5d7df..252e7941 100644 --- a/content-single.php +++ b/content-single.php @@ -24,6 +24,39 @@ diff --git a/content.php b/content.php index 200bcc6a..869afce0 100644 --- a/content.php +++ b/content.php @@ -26,6 +26,32 @@ - + \ No newline at end of file diff --git a/inc/template-tags.php b/inc/template-tags.php index bbf68a20..0ff39e25 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -133,33 +133,3 @@ function _s_category_transient_flusher() { } add_action( 'edit_category', '_s_category_transient_flusher' ); add_action( 'save_post', '_s_category_transient_flusher' ); - -if ( ! function_exists( '_s_entry_meta' ) ) : -/** - * Prints HTML with meta information for the categories, tags, comments and edit link. - */ -function _s_entry_meta() { - /* Hide category and tag text for pages */ - if ( 'post' == get_post_type() ) { - /* translators: used between list items, there is a space after the comma */ - $categories_list = get_the_category_list( __( ', ', '_s' ) ); - if ( $categories_list && _s_categorized_blog() ) { - printf( '' . __( 'Posted in %1$s', '_s' ) . '', $categories_list ); - } - - /* translators: used between list items, there is a space after the comma */ - $tags_list = get_the_tag_list( '', __( ', ', '_s' ) ); - if ( $tags_list ) { - printf( '' . __( 'Tagged %1$s', '_s' ) . '', $tags_list ); - } - } - - if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) { - echo ''; - comments_popup_link( __( 'Leave a comment', '_s' ), __( '1 Comment', '_s' ), __( '% Comments', '_s' ) ); - echo ''; - } - - edit_post_link( __( 'Edit', '_s' ), '', '' ); -} -endif; \ No newline at end of file