Skip to:
Content

bbPress.org

Changeset 22


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

Emphasize topics with no replies yet.

Location:
trunk/bb-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/default-filters.php

    r20 r22  
    99bb_add_filter('pre_topic_title', 'bb_specialchars');
    1010bb_add_filter('get_forum_name', 'bb_specialchars');
     11bb_add_filter('topic_title', 'topic_noreply');
    1112
    1213bb_add_filter('pre_post', 'trim');
  • 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.