[Bb-trac] Re: [bbPress] #943: add ability to filter topic_time()'s
output as well as its input time
bbPress
bb-trac at lists.bbpress.org
Tue Sep 9 04:38:17 GMT 2008
#943: add ability to filter topic_time()'s output as well as its input time
-------------------------+--------------------------------------------------
Reporter: fel64 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Back-end | Version: 1.0-beta (trunk)
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by sambauers):
I would suggest that the theme developer write their own topic_time() like
function and add it to their functions.php file then apply it where
required.
Something like:
{{{
function my_topic_time(args='')
{
$time = get_topic_time($args);
echo 'The time is: ' . $time;
}
}}}
I think we should expect time functions to return a string which is of a
consistent group.
--
Ticket URL: <http://trac.bbpress.org/ticket/943#comment:1>
bbPress <http://bbpress.org/>
Innovative forum development
More information about the Bb-trac
mailing list