Skip to:
Content

bbPress.org

Ticket #2759: 2759.diff

File 2759.diff, 1.7 KB (added by netweb, 11 years ago)
  • src/includes/forums/template.php

     
    763763
    764764        // Parse arguments against default values
    765765        $r = bbp_parse_args( $args, array(
    766                 'before'            => '<ul class="bbp-forums-list">',
    767                 'after'             => '</ul>',
    768                 'link_before'       => '<li class="bbp-forum">',
    769                 'link_after'        => '</li>',
    770                 'count_before'      => ' (',
    771                 'count_after'       => ')',
    772                 'count_sep'         => ', ',
    773                 'separator'         => ', ',
    774                 'forum_id'          => '',
    775                 'show_topic_count'  => true,
    776                 'show_reply_count'  => true,
     766                'before'               => '<ul class="bbp-forums-list">',
     767                'after'                => '</ul>',
     768                'link_before'          => '<li class="bbp-forum">',
     769                'link_after'           => '</li>',
     770                'count_before'         => ' (',
     771                'count_after'          => ')',
     772                'count_sep'            => ', ',
     773                'separator'            => ', ',
     774                'forum_id'             => '',
     775                'sub_forum_link_class' => 'bbp-forum-link',
     776                'show_topic_count'     => true,
     777                'show_reply_count'     => true,
    777778        ), 'list_forums' );
    778779
    779780        // Loop through forums and create a list
     
    807808                        }
    808809
    809810                        // Build this sub forums link
    810                         $output .= $r['link_before'] . '<a href="' . esc_url( $permalink ) . '" class="bbp-forum-link">' . $title . $counts . '</a>' . $show_sep . $r['link_after'];
     811                        $output .= $r['link_before'] . '<a href="' . esc_url( $permalink ) . '" class="' . $r['sub_forum_link_class'] . '">' . $title . $counts . '</a>' . $show_sep . $r['link_after'];
    811812                }
    812813
    813814                // Output the list