Created
July 14, 2013 00:51
-
-
Save scottnix/5992758 to your computer and use it in GitHub Desktop.
Remove "Posted" from Thematic Comment Meta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// modifying the comment-meta | |
// yanked out the translation stuff (for ease of use) | |
// reference http://thematictheme.com/forums/topic/customize-how-comments-appear/ | |
function childtheme_override_commentmeta($print = TRUE) { | |
$content = '<div class="comment-meta">'; | |
$content .= '<a href="' . get_permalink() . '#comment-' . get_comment_ID() . '" title="Link to comment">'; | |
$content .= get_comment_date() . ' at ' . get_comment_time(); | |
$content .= '</a>'; | |
if ( get_edit_comment_link() ) { | |
$content .= sprintf(' <span class="meta-sep">|</span><span class="edit-link"> <a class="comment-edit-link" href="%1$s" title="%2$s">%3$s</a></span>', | |
get_edit_comment_link(), | |
__( 'Edit comment' , 'thematic' ), | |
__( 'Edit', 'thematic' ) ); | |
} | |
$content .= '</div>' . "\n"; | |
return $print ? print(apply_filters('thematic_commentmeta', $content)) : apply_filters('thematic_commentmeta', $content); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool Code!!!