Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/28/2004 10:22:54 PM (17 years ago)
Author:
matt
Message:

Emphasize topics with no replies yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/template-functions.php

    r21 r22  
    196196
    197197function topic_posts() {
    198     global $topic;
    199     echo bb_apply_filters('topic_posts', $topic->topic_posts);
     198    echo bb_apply_filters('topic_posts', get_topic_posts() );
     199}
     200
     201function get_topic_posts() {
     202    global $topic;
     203    return bb_apply_filters('get_topic_posts', $topic->topic_posts);
     204}
     205
     206function topic_noreply( $title ) {
     207    if ( 1 == get_topic_posts() )
     208        $title = "<strong>$title</strong>";
     209    return $title;
    200210}
    201211
Note: See TracChangeset for help on using the changeset viewer.