[wp-hackers] Comment date and time styling

scribu scribu at gmail.com
Mon Nov 24 09:15:47 GMT 2008


How about some TLC for the comment date and time? Right now, in
comment_template.php it's like this:

<?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?>

A filter on the whole string would be an elegant approach:

Using the "at" as a separator, I could get something like this in the
markup:

<span class="comment-time">
  <span class="commentdate">November 24th, 2008</span>
  <span class="commenttime">14:13</span>
</span>

This way I can style any element.

-- 
http://scribu.net


More information about the wp-hackers mailing list